AST_phone_update.pl timeout error

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

AST_phone_update.pl timeout error

Postby geoff3dmg » Tue Nov 26, 2013 5:11 am

I updated my vicibox 5.02 cluster to SVN trunk r2040 a few days ago (I know we're a bit past that revision now, but I like to test things!). Anyway i was trying out the 'AST_phone_update.pl' script and the new '--agent-lookup' option but it does not seem to work.

Code: Select all
vicidial-1:/usr/share/astguiclient # ./AST_phone_update.pl --agent-lookup --debugX

|SELECT telnet_host,telnet_port,ASTmgrUSERNAME,ASTmgrSECRET,ASTmgrUSERNAMEupdate,ASTmgrUSERNAMElisten,ASTmgrUSERNAMEsend,max_vicidial_trunks,answer_transfer_agent,local_gmt,ext_context FROM servers where server_ip = '192.168.0.12';|
|SELECT distinct server_phone from vicidial_user_log where server_ip='192.168.0.12' and phone_ip='LOOKUP' and event_date > "20131125095456" and extension LIKE "SIP%";|


SIP EXTENSIONS:
|SELECT extension,phone_ip,login from phones where server_ip='192.168.0.12' and protocol='SIP' and login IN('102','109','110','112','111','105','103','101','114','113','106');|
command timed-out at ./AST_phone_update.pl line 233


I am running this on the dialling server obviously. It seems to be having an issue when talking to the asterisk server. I've fixed the asterisk version issue in the server settings, so I don't think it's that. Everything else works just fine.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: AST_phone_update.pl timeout error

Postby DomeDan » Tue Nov 26, 2013 8:11 am

Just looked at the code and it seams like that script has not been modified to work with asterisk 1.8 yet.
You can do this for a quick and dirty fix in the wait for a proper update in the svn:
Code: Select all
sed -i 's/Response:\ Pong/Response:\ Success\\nPing:\ Pong/g' AST_phone_update.pl


added this to the issue tracker http://www.vicidial.org/VICIDIALmantis/view.php?id=724 so Matt will take a look at it
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: AST_phone_update.pl timeout error

Postby geoff3dmg » Tue Nov 26, 2013 8:46 am

Thanks Domedan, I figured it might be something like that. Unfortunately my Perl skills aren't up to scratch to fix it myself. :) It's not critical I have this functionality so I will wait for the official fix in SVN from matt.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: AST_phone_update.pl timeout error

Postby mflorell » Tue Nov 26, 2013 9:14 am

Please post this to the issue tracker and I will get to it before the next release.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: AST_phone_update.pl timeout error

Postby geoff3dmg » Tue Nov 26, 2013 9:24 am

Domedan has logged it as Issue #724 on the tracker matt.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: AST_phone_update.pl timeout error

Postby geoff3dmg » Wed Dec 11, 2013 4:18 am

I can confirm this is fixed in SVN r2047. I have left a note on the bugtracker too.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 148 guests