Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 2:06 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: help: outbound call problems
PostPosted: Sun Jan 10, 2010 9:30 pm 
Offline

Joined: Sat Dec 26, 2009 5:53 am
Posts: 42
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

trixbox1*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5

trixbox1*CLI>
== Using SIP VRTP TOS bits 136

trixbox1*CLI>
== Using SIP VRTP CoS mark 6

trixbox1*CLI>
-- Executing [693@a2billing:1] Answer("SIP/2629990043-0906da48", "1") in new stack

trixbox1*CLI>
-- Executing [693@a2billing:2] DeadAGI("SIP/2629990043-0906da48", "a2billing.php,1") in new stack

trixbox1*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 >>

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE IDCONF
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << ANSWER

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << SET VARIABLE CHANNEL(language) "en"
<SIP/2629990043-0906da48>AGI Tx >> 200 result=1

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-you-have "#" 0
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=9440
<SIP/2629990043-0906da48>AGI Rx << SAY NUMBER 10 ""

trixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/10.gsm' (language 'en')

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE dollars "#" 0

trixbox1*CLI>
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=7200

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << SET CALLERID 2629990043

trixbox1*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

trixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'prepaid-enter-dest.gsm' (language 'en')

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=00861095588

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-you-have "#" 0

trixbox1*CLI>
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=9440
<SIP/2629990043-0906da48>AGI Rx << SAY NUMBER 500 ""

trixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/5.gsm' (language 'en')

trixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/hundred.gsm' (language 'en')

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-minutes "#" 0

trixbox1*CLI>
-- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=6240

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE ANSWEREDTIME

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE DIALSTATUS

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << CHANNEL STATUS SIP/2629990043-0906da48

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=6

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET DATA prepaid-enter-dest 6000 20

trixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'prepaid-enter-dest.gsm' (language 'en')

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=00861095588

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-you-have "#" 0
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=9440

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << SAY NUMBER 500 ""

trixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/5.gsm' (language 'en')

trixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'digits/hundred.gsm' (language 'en')

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-minutes "#" 0
-- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0 endpos=6240

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE ANSWEREDTIME

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET VARIABLE DIALSTATUS

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << CHANNEL STATUS SIP/2629990043-0906da48

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=6

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << GET DATA prepaid-enter-dest 6000 20

trixbox1*CLI>
-- <SIP/2629990043-0906da48> Playing 'prepaid-enter-dest.gsm' (language 'en')

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 200 result=-1

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Rx << STREAM FILE prepaid-invalid-digits "#" 0

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 511 Command Not Permitted on a dead channel
<SIP/2629990043-0906da48>AGI Rx << HANGUP

trixbox1*CLI>
<SIP/2629990043-0906da48>AGI Tx >> 511 Command Not Permitted on a dead channel

trixbox1*CLI>
-- <SIP/2629990043-0906da48>AGI Script a2billing.php completed, returning -1

trixbox1*CLI> quit


Top
 Profile  
 
 Post subject: Re: help: outbound call problems
PostPosted: Mon Jan 11, 2010 9:26 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

It is difficult to tell from your debug info, but it may be that this number is unobtainable, or the dial to the carrier is failing.

Test the number in FreePBX, without the complexities of A2Billing, via the same trunk, using the same dialling string, and confirm it works.

Joe


Top
 Profile  
 
 Post subject: Re: help: outbound call problems
PostPosted: Mon Jan 11, 2010 7:55 pm 
Offline

Joined: Sat Dec 26, 2009 5:53 am
Posts: 42
Thx, Joe. Now I find the problem exists in trunk. In debug info, I find it executed EXEC DIAL ......

And " Call accepted by 64.21.13.43(format ulaw)
Format for call is ulaw "

Maybe the problem exists in the codec settings.

But, How to find the solution?


Top
 Profile  
 
 Post subject: Re: help: outbound call problems
PostPosted: Mon Jan 11, 2010 8:33 pm 
Offline

Joined: Sat Dec 26, 2009 5:53 am
Posts: 42
finally, I locate where the problem is: when I dial number on the NEC hard phone, the a2billing traps a differnent number from what I dial. That is why everytime I try a call, it always says that "the number you are calling is currently not available"

But I dont know how to fix it. anyone can help me?


Top
 Profile  
 
 Post subject: Re: help: outbound call problems
PostPosted: Mon Jan 11, 2010 8:34 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Is it removing the leading 1?

Joe


Top
 Profile  
 
 Post subject: Re: help: outbound call problems
PostPosted: Tue Jan 12, 2010 4:12 am 
Offline

Joined: Sat Dec 26, 2009 5:53 am
Posts: 42
To Joe, It is usually removing, but not regular. I concludes that the problem may exist with A2billing because when I make a call directly through Asterisk(in my case Trixbox), I can run it successfully. Still I don't know how to solve it.


Top
 Profile  
 
 Post subject: Re: help: outbound call problems
PostPosted: Tue Jan 12, 2010 8:21 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
There is setting, remove international prefix, which removes the 00, the 011, 09, and 1. These values are set in the agi-conf.

If the leading 1 is required for your carrier, then you would want to remove the 1 from the list of prefixes to be removed.

Without further logging, it is impossible to say where the problem lies.

Yours

Joe


Top
 Profile  
 
 Post subject: Re: help: outbound call problems
PostPosted: Wed Jan 13, 2010 5:28 am 
Offline

Joined: Sat Dec 26, 2009 5:53 am
Posts: 42
Thanks a lot, Joe. I sovled the mismatched number problem when I changed the DTMF mode from INFO to Auto in SPA 3000 configuration. But the outbound call problem exists as before. When I called out through VOIP trunk with the hard phone in the A2billing, it muted for around a minute, and then said "the number you are calling is currently unavilable".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 9 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