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')|