Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 11:07 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: AGI script not executing correctly
PostPosted: Sun Jun 13, 2010 3:29 am 
Offline

Joined: Wed Mar 31, 2010 2:57 am
Posts: 2
When I have a call coming into the a2billing system, it executes the script, the following is the output on the CLI. However, the script runs "all at once", ie there are no delays between commands being executed. Immediately after this all scrolls by, it hangs up. This all happens almost instantaneously. Is this an Asterisk or an a2billing problem?


Thanks.

Code:
   -- Executing [8675309@from-internal:2] Goto("SIP/4000-b6104318", "ivr-2|s|1") in new stack
    -- Goto (ivr-2,s,1)
    -- Executing [s@ivr-2:1] Set("SIP/4000-b6104318", "MSG=wait-moment") in new stack
    -- Executing [s@ivr-2:2] Set("SIP/4000-b6104318", "LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-2:3] Set("SIP/4000-b6104318", "__DIR-CONTEXT=default") in new stack
    -- Executing [s@ivr-2:4] Set("SIP/4000-b6104318", "_IVR_CONTEXT_ivr-2=") in new stack
    -- Executing [s@ivr-2:5] Set("SIP/4000-b6104318", "_IVR_CONTEXT=ivr-2") in new stack
    -- Executing [s@ivr-2:6] GotoIf("SIP/4000-b6104318", "0?begin") in new stack
    -- Executing [s@ivr-2:7] Answer("SIP/4000-b6104318", "") in new stack
    -- Executing [s@ivr-2:8] Wait("SIP/4000-b6104318", "1") in new stack
    -- Executing [s@ivr-2:9] Set("SIP/4000-b6104318", "TIMEOUT(digit)=3") in new stack
    -- Digit timeout set to 3
    -- Executing [s@ivr-2:10] Set("SIP/4000-b6104318", "TIMEOUT(response)=5") in new stack
    -- Response timeout set to 5
    -- Executing [s@ivr-2:11] Set("SIP/4000-b6104318", "__IVR_RETVM=") in new stack
    -- Executing [s@ivr-2:12] ExecIf("SIP/4000-b6104318", "1|Background|wait-moment") in new stack
    -- <SIP/4000-b6104318> Playing 'wait-moment' (language 'en')
  == CDR updated on SIP/4000-b6104318
    -- Executing [1@ivr-2:1] DBdel("SIP/4000-b6104318", "") in new stack
    -- Executing [1@ivr-2:2] Set("SIP/4000-b6104318", "__NODEST=") in new stack
    -- Executing [1@ivr-2:3] Goto("SIP/4000-b6104318", "a2billing-tfn|9876|1") in new stack
    -- Goto (a2billing-tfn,9876,1)
    -- Executing [9876@a2billing-tfn:1] Answer("SIP/4000-b6104318", "") in new stack
    -- Executing [9876@a2billing-tfn:2] Wait("SIP/4000-b6104318", "1") in new stack
    -- Executing [9876@a2billing-tfn:3] DeadAGI("SIP/4000-b6104318", "a2billing.php") in new stack
    -- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php
AGI Tx >> agi_request: a2billing.php
AGI Tx >> agi_channel: SIP/4000-b6104318
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: asterisk-5326-1276398970.98
AGI Tx >> agi_callerid: 4000
AGI Tx >> agi_calleridname: device
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 8675309
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: a2billing-tfn
AGI Tx >> agi_extension: 9876
AGI Tx >> agi_priority: 3
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE IDCONF
AGI Tx >> 200 result=0
AGI Rx << ANSWER
AGI Tx >> 200 result=0
AGI Rx << GET DATA prepaid-enter-pin-number 6000 15
AGI Tx >> 200 result=-1
AGI Rx << STREAM FILE prepaid-invalid-digits "#" 0
AGI Tx >> 200 result=0 endpos=0
AGI Rx << GET DATA prepaid-enter-pin-number 6000 15
AGI Tx >> 200 result=-1
AGI Rx << STREAM FILE prepaid-invalid-digits "#" 0
AGI Tx >> 200 result=0 endpos=0
AGI Rx << GET DATA prepaid-enter-pin-number 6000 15
AGI Tx >> 200 result=-1
AGI Rx << HANGUP
AGI Tx >> 200 result=1
    -- AGI Script a2billing.php completed, returning 0
Really destroying SIP dialog 'MWQxNjRmZTJjNWY3NzY3ZjM5NGIxMDIwMDJmYzFmZjc.' Method: ACK



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group