Hi, everyone here. I got a problem with a2billing outbound call from SIP softphone.
I configured everything in a2billing and a cusotm with sip config. I setup a NEC phone connected to Linksys SP 3000 linked to a2billing. WHen i make a call from the phone, the a2billing tell me the amount and then prompt me to dial dest phone number. After I entered a number the a2billing simply tell me the minutes avilable and ask me to input the number again. As a result, I can't make any outbound call.
Can anyone here help me out? Thanks in advance
my debug info is :
Asterisk 1.6.0.10-FONCORE-r40, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <
[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.0.10-FONCORE-r40 currently running on trixbox1 (pid = 3102)
trixbox1*CLI>
Verbosity is at least 10
Core debug is at least 10
[Ktrixbox1*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
[Ktrixbox1*CLI>
== Using SIP VRTP TOS bits 136
[Ktrixbox1*CLI>
== Using SIP VRTP CoS mark 6
[Ktrixbox1*CLI>
-- Executing [693@a2billing:1] [1;36;40mAnswer[0;37;40m("[1;35;40mSIP/2629990043-0906da48[0;37;40m", "[1;35;40m1[0;37;40m") in new stack
[Ktrixbox1*CLI>
-- Executing [693@a2billing:2] [1;36;40mDeadAGI[0;37;40m("[1;35;40mSIP/2629990043-0906da48[0;37;40m", "[1;35;40ma2billing.php,1[0;37;40m") in new stack
[Ktrixbox1*CLI>
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
<SIP/2629990043-0906da48>AGI Tx >> agi_request: a2billing.php
<SIP/2629990043-0906da48>AGI Tx >> agi_channel: SIP/2629990043-0906da48
<SIP/2629990043-0906da48>AGI Tx >> agi_language: en
<SIP/2629990043-0906da48>AGI Tx >> agi_type: SIP
<SIP/2629990043-0906da48>AGI Tx >> agi_uniqueid: 1263156112.2
<SIP/2629990043-0906da48>AGI Tx >> agi_version: 1.6.0.10-FONCORE-r40
<SIP/2629990043-0906da48>AGI Tx >> agi_callerid: 2629990043
<SIP/2629990043-0906da48>AGI Tx >> agi_calleridname: lizijian
<SIP/2629990043-0906da48>AGI Tx >> agi_callingpres: 0
<SIP/2629990043-0906da48>AGI Tx >> agi_callingani2: 0
<SIP/2629990043-0906da48>AGI Tx >> agi_callington: 0
<SIP/2629990043-0906da48>AGI Tx >> agi_callingtns: 0
<SIP/2629990043-0906da48>AGI Tx >> agi_dnid: 693
<SIP/2629990043-0906da48>AGI Tx >> agi_rdnis: unknown
<SIP/2629990043-0906da48>AGI Tx >> agi_context: a2billing
<SIP/2629990043-0906da48>AGI Tx >> agi_extension: 693
<SIP/2629990043-0906da48>AGI Tx >> agi_priority: 2
<SIP/2629990043-0906da48>AGI Tx >> agi_enhanced: 0.0
<SIP/2629990043-0906da48>AGI Tx >> agi_accountcode: 2629990043
<SIP/2629990043-0906da48>AGI Tx >> agi_threadid: -1218634864
<SIP/2629990043-0906da48>AGI Tx >> agi_arg_1: 1
<SIP/2629990043-0906da48>AGI Tx >>
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE IDCONF
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << ANSWER
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << SET VARIABLE CHANNEL(language) "en"
<SIP/2629990043-0906da48>AGI Tx >> 200 result=1
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-you-have "#" 0
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=9440
<SIP/2629990043-0906da48>AGI Rx << SAY NUMBER 10 ""
[Ktrixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/10.gsm' (language 'en')
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE dollars "#" 0
[Ktrixbox1*CLI>
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=7200
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << SET CALLERID 2629990043
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=1
<SIP/2629990043-0906da48>AGI Rx << CHANNEL STATUS SIP/2629990043-0906da48
<SIP/2629990043-0906da48>AGI Tx >> 200 result=6
<SIP/2629990043-0906da48>AGI Rx << GET DATA prepaid-enter-dest 6000 20
[Ktrixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'prepaid-enter-dest.gsm' (language 'en')
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=00861095588
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-you-have "#" 0
[Ktrixbox1*CLI>
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=9440
<SIP/2629990043-0906da48>AGI Rx << SAY NUMBER 500 ""
[Ktrixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/5.gsm' (language 'en')
[Ktrixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/hundred.gsm' (language 'en')
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-minutes "#" 0
[Ktrixbox1*CLI>
-- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=6240
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE ANSWEREDTIME
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE DIALSTATUS
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << CHANNEL STATUS SIP/2629990043-0906da48
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=6
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET DATA prepaid-enter-dest 6000 20
[Ktrixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'prepaid-enter-dest.gsm' (language 'en')
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=00861095588
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-you-have "#" 0
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=9440
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << SAY NUMBER 500 ""
[Ktrixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/5.gsm' (language 'en')
[Ktrixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/hundred.gsm' (language 'en')
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-minutes "#" 0
-- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=6240
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE ANSWEREDTIME
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE DIALSTATUS
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << CHANNEL STATUS SIP/2629990043-0906da48
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=6
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET DATA prepaid-enter-dest 6000 20
[Ktrixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'prepaid-enter-dest.gsm' (language 'en')
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=-1
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-invalid-digits "#" 0
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 511 Command Not Permitted on a dead channel
<SIP/2629990043-0906da48>AGI Rx << HANGUP
[Ktrixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 511 Command Not Permitted on a dead channel
[Ktrixbox1*CLI>
-- <SIP/2629990043-0906da48>AGI Script a2billing.php completed, returning -1
[Ktrixbox1*CLI> quit