FastAGI_log.pl deosnt get the right dialstatus

Discussions about development of VICIDIAL and astGUIclient

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

FastAGI_log.pl deosnt get the right dialstatus

Postby bobbymc » Wed Feb 25, 2009 5:53 pm

i would say 9 out of 10 times it doesn't get the right dialstatus or should i say it deosnt get anything at all.. i made sure my switch sends CHANUNAVAIL and hangup_cause sends 27 in this line

if ( ($PRI =~ /^PRI$/) && ($callerid =~ /\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d\d/) && ( ($dialstatus =~ /BUSY/) || ( ($dialstatus =~ /CHANUNAVAIL/)
&& ($hangup_cause =~ /^1$|^27$|^18$/) ) ) )


but FastAGI_log.pl deosnt get is most of the time.. i evne checked the debug log and i dont see thps axe dialstatus continue being passed after a certain section.. here is the debug log..





2009-02-25 14:50:58|TEST_VDfastAGI|call_log|-- VD_hangup Local DEBUG: |PRI|V0225145034106592229|NOANSWER|16|
2009-02-25 14:50:58|TEST_VDfastAGI|call_log|+++++ VDAD START LOCAL CHANNEL: EXITING- 1
2009-02-25 14:50:58|TEST_VDfastAGI|begin|+++++++++++++++++ FastAGI Start ++++++++++++++++++++++++++++++++++++++++
2009-02-25 14:50:58|TEST_VDfastAGI|begin|Perl Environment Dump:
2009-02-25 14:50:58|TEST_VDfastAGI|begin|0|--debug
2009-02-25 14:50:58|TEST_VDfastAGI|begin|URL HVcauses: |PRI|NODEBUG|16|NOANSWER|||
2009-02-25 14:50:58|TEST_VDfastAGI|begin|| CHECK DIALSTATUS VARIABLE 2 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:58|TEST_VDfastAGI|begin|AGI Environment Dump:
2009-02-25 14:50:58|TEST_VDfastAGI|begin|| CHECK DIALSTATUS VARIABLE 3 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- accountcode =
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- callerid = 2472244851
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- calleridname = V0225145034106592229
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- callingani2 = 0
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- callingpres = 0
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- callingtns = 0
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- callington = 0
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- channel = Local/024118174669665@vicidial-ed49,2
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- context = vicidial
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- dnid = unknown
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- enhanced = 0.0
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- extension = h
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- language = en
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- network = yes
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- network_script = VD_hangup--HVcauses--PRI-----NODEBUG-----27-----CHANUNAVAIL----------
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- priority = 2
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- rdnis = unknown
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- request = agi://127.0.0.1:4577/VD_hangup--HVcause ... ----------
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- type = Local
2009-02-25 14:50:58|TEST_VDfastAGI|begin| -- uniqueid = 1235602235.102
2009-02-25 14:50:58|TEST_VDfastAGI|begin|| CHECK DIALSTATUS VARIABLE 4 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:58|TEST_VDfastAGI|begin|AGI Variables: |1235602235.102|Local/024118174669665@vicidial-ed49,2|h|Local|V0225145034106592229|
2009-02-25 14:50:58|TEST_VDfastAGI|begin|| CHECK DIALSTATUS VARIABLE 5 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:58|TEST_VDfastAGI|VD_hangup|Process to run: |agi://127.0.0.1:4577/VD_hangup--HVcauses--PRI-----NODEBUG-----27-----CHANUNAVAIL----------|VD_hangup|END|
2009-02-25 14:50:58|TEST_VDfastAGI|VD_hangup|| CHECK DIALSTATUS VARIABLE 6 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:59|TEST_VDfastAGI|begin|+++++++++++++++++ FastAGI Start ++++++++++++++++++++++++++++++++++++++++
2009-02-25 14:50:59|TEST_VDfastAGI|begin|Perl Environment Dump:
2009-02-25 14:50:59|TEST_VDfastAGI|begin|0|--debug
2009-02-25 14:50:59|TEST_VDfastAGI|begin|| CHECK DIALSTATUS VARIABLE 2 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:59|TEST_VDfastAGI|begin|AGI Environment Dump:
2009-02-25 14:50:59|TEST_VDfastAGI|begin|| CHECK DIALSTATUS VARIABLE 3 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- accountcode =
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- callerid = 2472244851
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- calleridname = V0225145059106592233
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- callingani2 = 0
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- callingpres = 0
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- callingtns = 0
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- callington = 0
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- channel = Local/024118175688399@vicidial-5171,2
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- context = vicidial
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- dnid = unknown
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- enhanced = 0.0
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- extension = 024118175688399
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- language = en
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- network = yes
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- network_script = call_log
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- priority = 1
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- rdnis = unknown
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- request = agi://127.0.0.1:4577/call_log
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- type = Local
2009-02-25 14:50:59|TEST_VDfastAGI|begin| -- uniqueid = 1235602259.105
2009-02-25 14:50:59|TEST_VDfastAGI|begin|| CHECK DIALSTATUS VARIABLE 4 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:59|TEST_VDfastAGI|begin|AGI Variables: |1235602259.105|Local/024118175688399@vicidial-5171,2|024118175688399|Local|V0225145059106592233|
2009-02-25 14:50:59|TEST_VDfastAGI|begin|| CHECK DIALSTATUS VARIABLE 5 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:59|TEST_VDfastAGI|call_log|Process to run: |agi://127.0.0.1:4577/call_log|call_log|START|
2009-02-25 14:50:59|TEST_VDfastAGI|call_log|| CHECK DIALSTATUS VARIABLE 6 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:59|TEST_VDfastAGI|call_log|+++++ CALL LOG START : 2009-02-25 14:50:59
2009-02-25 14:50:59|TEST_VDfastAGI|call_log|| CHECK DIALSTATUS VARIABLE 7 call log - NOANSWER - SELECT agi_output FROM servers where server_ip = '192.168.0.100';|
2009-02-25 14:50:59|TEST_VDfastAGI|call_log|| booooooooooooooooooooooooooooooooby - NOANSWER - INSERT INTO call_log (uniqueid,channel,channel_group,type,server_ip,
extension,number_dialed,start_time,start_epoch,end_time,end_epoch,length_in_sec,length_in_min,caller_code) values('1235602259.105','Local/024118175688399@vicidial-5171,2',''
,'Local','192.168.0.100','024118175688399','024118177889880','2009-02-25 14:50:59','1235602259','','','','','V0225145059106592233')|
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am

Postby bobbymc » Wed Feb 25, 2009 5:54 pm

as you can see it changes from CHANUNAVAIL to NOANSWER
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am

Postby mflorell » Wed Feb 25, 2009 6:03 pm

What is the last line of the changes section at the top of that FastAGI_log.pl version(in the source code)?

What version of VICIDIAL are you using?
mflorell
Site Admin
 
Posts: 18379
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby bobbymc » Wed Feb 25, 2009 6:10 pm

thx.. i found out im using a older version of it.. i updated it to the last fix u made.. thx again matt
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am

Postby bobbymc » Wed Feb 25, 2009 6:19 pm

its stilld eosnt work right =( i will give a debug in a minute
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am

Postby bobbymc » Wed Feb 25, 2009 6:26 pm

on the top isnt this
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}))

at the end have 1 too many ) ?
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am

Postby bobbymc » Wed Feb 25, 2009 6:38 pm

is this correct in my extnesion dialplan


exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log)
exten => h,2,DeadAGI(agi://127.0.0.1:4577/VD_hangup--HVcause ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
bobbymc
 
Posts: 425
Joined: Fri Jan 05, 2007 12:26 am


Return to Development

Who is online

Users browsing this forum: No registered users and 27 guests