ViciBox v9.0.0 AMI login failure for Asterisk 13

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

ViciBox v9.0.0 AMI login failure for Asterisk 13

Postby roger.milligan » Tue Nov 26, 2019 10:52 am

Hello

Running ViciBox 9.0.0, Vici Version: 2.14b0.5 SVN 3179; Updated Asterisk from 13.27.0-vici to 13.27.1-vici. - so all the latest you can get.

The AST_manager_listen.pl screen ran, but did not connect to Asterisk AMI. Gave error "manager.c: [] == Client from 127.0.0.1, failed to authenticate in 30 seconds"

Did manual telnet from command line:
# telnet localhost 5038
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/2.10.5

Looks like telnet is waiting for a version that ends in a 0,1,2 or 3 (at the end of the line) for these 2 Perl scripts:
AST_manager_listen.pl: $tn->waitfor('/[0123]\n$/'); # print login
AST_update.pl: $t->waitfor('/[0123]\n$/'); # print login

I changed the line to this (which is how it is in the other Perl scripts) and it worked:
$tn->waitfor('/Asterisk Call Manager\//');

I don't know when the AMI_VERSION changed - but seems like it was at least 3 years ago. Don't understand how Vici has worked on Asterisk 13 with this code. Does this need a bug fix, or have we gotten the wrong version of something running??

Thanks

Roger
------------------------------------------------------------------------------------------------------
Roger Milligan
Thrive, Cape Town, South Africa.
Mobile: +27 791412325 rogerm(at)thrivedatasolutions(dot)com
roger.milligan
 
Posts: 58
Joined: Sun Jul 19, 2015 12:18 pm
Location: Cape Town, South Africa

Re: ViciBox v9.0.0 AMI login failure for Asterisk 13

Postby williamconley » Wed Nov 27, 2019 6:40 am

If your system is using /usr/share/astguiclient/AST_manager_listen.pl instead of /usr/share/astguiclient/AST_manager_listen_AMI2.pl, then it's likely your asterisk vesion is wrong somewhere. During installation there are two places that the asterisk version is stored.

Admin->Servers should have something akin to "13.21.1-vici"

/etc/astguiclient.conf should have "VARasterisk_version => 13.X" Note the ".X".

If you make a change to either, it may fix your problem, however: If either of these was wrong during "install.pl" being run, then you may need to re-run install.pl after (and be sure to copy the sample .conf files).

Happy Hunting! 8-)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: ViciBox v9.0.0 AMI login failure for Asterisk 13

Postby roger.milligan » Wed Nov 27, 2019 8:41 am

Thanks William for a very helpful answer

Turns out that the root cause was (I think) that the ViciBox server had IPv6 enabled and this was causing some funnies with the telnet authentication from :::1 for localhost. We've switched IPv6 off now. (Perhaps Kumba should add that to the ViciBox Network setup notes if you agree that this is a problem)

In the process of testing, I was running AST_manager_listen.pl from the command line rather than allowing ADMIN_keepalive_ALL.pl to do the startup. When I don't interfere, AST_manager_listen_AMI2.pl is running because it sees 13.27.1-vici.
------------------------------------------------------------------------------------------------------
Roger Milligan
Thrive, Cape Town, South Africa.
Mobile: +27 791412325 rogerm(at)thrivedatasolutions(dot)com
roger.milligan
 
Posts: 58
Joined: Sun Jul 19, 2015 12:18 pm
Location: Cape Town, South Africa

Re: ViciBox v9.0.0 AMI login failure for Asterisk 13

Postby williamconley » Wed May 18, 2022 10:26 pm

Confirm all asterisk versions are correct: /etc/astguiclient.conf should have "13.X" (not 13) or whatever the present version is AS OFFERED during install.pl. Exactly. Also confirm Admin->Servers->Asterisk Version matches.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 57 guests