Page 1 of 1

[HELP] AGI gets stuck when streaming files

PostPosted: Tue Nov 14, 2006 10:06 am
by AlexR
Hello All!


This is the weirdest thing. I've successfully installed Vicidial on a server. Yesterday I tried the SAME installation and i have this strange problem. For INBOUND campaings when executing agi-VDADcloser_inboundCIDlookup.agi I get in AGIOUT file:



Code: Select all
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi|Perl Environment Dump:
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi|0|SALESLINE-----23292702-----Closer---------------999-----1
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- accountcode =
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- callerid = 7724292900
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- calleridname = 24292900
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- callingani2 = 0
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- callingpres = 3
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- callingtns = 0
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- callington = 33
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- channel = Zap/1-1
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- context = default
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- dnid = 23292702
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- enhanced = 0.0
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- extension = 23292702
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- language = en
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- priority = 5
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- rdnis = unknown
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- request = agi-VDADcloser_inboundCIDlookup.agi
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- type = Zap
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi| -- uniqueid = 1163516380.50
2006-11-14 8:59:41|agi-VDADcloser_inboundCIDlookup.agi|AGI Variables: |1163516380.50|Zap/1-1|23292702|Zap|7724292900|



And the call just rings and rings forever.


However if I comment the


Code: Select all
$AGI->stream_file('beep');


in line 267 of agi-VDADcloser_inboundCIDlookup.agi

I get as far as:

Code: Select all
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi|Perl Environment Dump:
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi|0|SALESLINE-----23292702-----Closer---------------999-----1
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- accountcode =
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- callerid = 7724292900
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- calleridname = 24292900
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- callingani2 = 0
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- callingpres = 3
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- callingtns = 0
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- callington = 33
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- channel = Zap/1-1
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- context = default
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- dnid = 23292702
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- enhanced = 0.0
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- extension = 23292702
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- language = en
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- priority = 5
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- rdnis = unknown
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- request = agi-VDADcloser_inboundCIDlookup.agi
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- type = Zap
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi| -- uniqueid = 1163516593.51
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi|AGI Variables: |1163516593.51|Zap/1-1|23292702|Zap|7724292900|
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi|+++++ INBOUND CALL VDCL STARTED : |SALESLINE|7724292900-23292702|2006-11-14 9:03:14
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi||select LAST_INSERT_ID() LIMIT 1;|2|
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi|callerID changed: Y111490314000000002
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi||INSERT INTO vicidial_auto_calls values('','10.27.1.217','SALESLINE','LIVE','2','1163516593.51','Y111490314000000002','Zap/1-1','1','7724292900','2006-11-14 9:03:14','IN')|
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi||INSERT INTO vicidial_closer_log (lead_id,campaign_id,call_date,start_epoch,status,phone_code,phone_number,user,processed) values('2','SALESLINE','2006-11-14 9:03:14','1163516594','QUEUE','1','7724292900','VDCL','N')|
2006-11-14 9:03:14|agi-VDADcloser_inboundCIDlookup.agi|--    VDCL : |2|insert to vicidial_closer_log


However the call just keeps ringing and ringing and it is never transfered.


Im thinking about reinstalling the whole operating system, but I want to know if you have ANY ideas why this could be. The very same setup works wonderful on the first server.


Thank you


Alejandro

PostPosted: Tue Nov 14, 2006 10:08 am
by mflorell
Are you seeing any errors on the Asterisk CLI at all?

What version of Asterisk?

I have not run into this kind of problem before so it may just be something on your system.

PostPosted: Tue Nov 14, 2006 10:14 am
by AlexR
Thank you Matt, I think so too....

this is from asterisk CLI:

Code: Select all
  -- Executing Ringing("Zap/1-1", "") in new stack
    -- Executing Wait("Zap/1-1", "1") in new stack
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing Set("Zap/1-1", "CALLERID(all)=24292900<7724292900>") in new stack
    -- Executing AGI("Zap/1-1", "agi-VDADcloser_inboundCIDlookup.agi|SALESLINE-----23292702-----Closer---------------999-----1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCIDlookup.agi
AGI Tx >> agi_request: agi-VDADcloser_inboundCIDlookup.agi
AGI Tx >> agi_channel: Zap/1-1
AGI Tx >> agi_language: en
AGI Tx >> agi_type: Zap
AGI Tx >> agi_uniqueid: 1163517114.52
AGI Tx >> agi_callerid: 7724292900
AGI Tx >> agi_calleridname: 24292900
AGI Tx >> agi_callingpres: 3
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 33
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 23292702
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: default
AGI Tx >> agi_extension: 23292702
AGI Tx >> agi_priority: 5
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << SET CALLERID Y111491156000000002
AGI Tx >> 200 result=1



Without commenting the beep line i get as far as the last AGI Tx >>


Thank you, I only wanted to know if you had seen this issue before.


alejandro

PostPosted: Tue Nov 14, 2006 10:57 am
by mflorell
What version of the Asterisk perl module are you using?

PostPosted: Tue Nov 14, 2006 11:23 am
by AlexR
It is Asterisk::AGI, asterisk-perl-0.09 package.

Want to hear another weird thing...?

If I move the $AGI->stream_file a little higher in the code it DOES play the beep.

but I know for a fact that neither:

agi-VDADcloser_inboundCIDlookup.agi
or
agi-VDADcloser_inboundCID.agi

work. (btw i fail to see what is the different usage for this scripts?)

So im trying fresh Linux install.

Thank you Matt!

PostPosted: Tue Nov 14, 2006 11:31 am
by mflorell
Please use the 0.08 version as is specified in the SCRATCH_INSTALL:
http://asterisk.gnuinter.net/files/aste ... .08.tar.gz

The 0.09 version of asterisk-perl has a lot more in it, but some of the functions do not work right all of the time and it is not backward compatible with the 0.08 functions as we have written VICIDIAL to work with. Not to mention there is more code for it to run for every running of it's code.