Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Feb 16, 2019 11:41 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Unable to dial out
PostPosted: Sat Jun 13, 2015 7:46 am 
Offline

Joined: Wed May 07, 2014 12:03 pm
Posts: 10
Hi

Installed form scratch I've had a working setup before without issue. But for some reason on this fresh install when I connect a PBX to make a call its being linked to the general sip.conf context and A2billing is seeing it as an inbound call and not a call from a card. It's not linking to my customer and thus dialling out. FYI in my general for sip.conf I have a2billing_did. In extensions.conf I have
Code:
[a2billing]
include => a2billing_callingcard
include => a2billing_monitoring
include => a2billing_voucher

[a2billing_callingcard]
; CallingCard application
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,n,DeadAgi(a2billing.php,1)
exten => _X.,n,Hangup

[a2billing_voucher]
exten => _X.,1,Answer(1)
exten => _X.,n,DeadAgi(a2billing.php,1,voucher)
;exten => _X.,n,AGI(a2billing.php,1,voucher44) ; will add 44 in front of the callerID for the CID authentication
exten => _X.,n,Hangup

[a2billing_did]
exten => _X.,1,DeadAgi(a2billing.php,1,did)
exten => _X.,2,Hangup

[a2billing-sip]
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,n,DeadAgi(a2billing.php,2)
exten => _X.,1,Hangup()


Code:
-- Executing [[email protected]_did:1] DeadAGI("SIP/52.7.2.21-00000000", "a2billing.php,1,did") in new stack
[Jun 13 07:33:58] WARNING[5525][C-00000000]: res_agi.c:4006 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
<SIP/52.7.2.21-00000000>AGI Tx >> agi_request: a2billing.php
<SIP/52.7.2.21-00000000>AGI Tx >> agi_channel: SIP/52.7.2.21-00000000
<SIP/52.7.2.21-00000000>AGI Tx >> agi_language: en
<SIP/52.7.2.21-00000000>AGI Tx >> agi_type: SIP
<SIP/52.7.2.21-00000000>AGI Tx >> agi_uniqueid: 1434180838.0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_version: 11.17.1
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callerid: 01613214312
<SIP/52.7.2.21-00000000>AGI Tx >> agi_calleridname: unknown
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callingpres: 0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callingani2: 0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callington: 0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_callingtns: 0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_dnid: 447842444123
<SIP/52.7.2.21-00000000>AGI Tx >> agi_rdnis: unknown
<SIP/52.7.2.21-00000000>AGI Tx >> agi_context: a2billing_did
<SIP/52.7.2.21-00000000>AGI Tx >> agi_extension: 447842444123
<SIP/52.7.2.21-00000000>AGI Tx >> agi_priority: 1
<SIP/52.7.2.21-00000000>AGI Tx >> agi_enhanced: 0.0
<SIP/52.7.2.21-00000000>AGI Tx >> agi_accountcode:
<SIP/52.7.2.21-00000000>AGI Tx >> agi_threadid: 140055975163648
<SIP/52.7.2.21-00000000>AGI Tx >> agi_arg_1: 1
<SIP/52.7.2.21-00000000>AGI Tx >> agi_arg_2: did
<SIP/52.7.2.21-00000000>AGI Tx >>
    -- <SIP/52.7.2.21-00000000>AGI Script a2billing.php completed, returning 0
    -- Executing [[email protected]_did:2] Hangup("SIP/52.7.2.21-00000000", "") in new stack
  == Spawn extension (a2billing_did, 447842444123, 2) exited non-zero on 'SIP/52.7.2.21-00000000'


Asterisk Version : 1.11
PHP Version : 5.3.29
A2B DataBase Version : 2.1.0


Top
 Profile  
 
 Post subject: Re: Unable to dial out
PostPosted: Sun Jun 14, 2015 12:00 pm 
Offline

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

Is your client authenticated, and has a context of a2billing. Check by doing sip show peer <<a2billing account number>>

Joe


Top
 Profile  
 
 Post subject: Re: Unable to dial out
PostPosted: Sun Jun 14, 2015 3:28 pm 
Offline

Joined: Wed May 07, 2014 12:03 pm
Posts: 10
Hi,

I'm using IP auth and sip show peer looks fine shows all my settings. This mean its authorised?

Thanks


Top
 Profile  
 
 Post subject: Re: Unable to dial out
PostPosted: Sun Jun 14, 2015 3:54 pm 
Offline

Joined: Wed May 07, 2014 12:03 pm
Posts: 10
To note on my PBX I get

Got SIP response 603 "Declined" back from 58.21.9.40:5060


Top
 Profile  
 
 Post subject: Re: Unable to dial out
PostPosted: Sun Jun 14, 2015 8:26 pm 
Offline

Joined: Wed May 07, 2014 12:03 pm
Posts: 10
Noticed the below error from php when I make a call, also verbose debug 4 doesn't generate any output in the log files.

PHP Fatal error: Call to undefined function NewADOConnection() in /var/lib/asterisk/agi-bin/lib/Class.A2Billing.php on line 3616


Top
 Profile  
 
 Post subject: Re: Unable to dial out
PostPosted: Mon Jun 15, 2015 1:57 am 
Offline

Joined: Sat Jun 13, 2015 12:39 am
Posts: 3
mase2hot wrote:
Noticed the below error from php when I make a call, also verbose debug 4 doesn't generate any output in the log files.

PHP Fatal error: Call to undefined function NewADOConnection() in /var/lib/asterisk/agi-bin/lib/Class.A2Billing.php on line 3616



you have the SVN version, download the latest stable version! that is what I did to solve it, even though composer had it, it would not load the libraries for a reason.


Top
 Profile  
 
 Post subject: Re: Unable to dial out
PostPosted: Mon Jun 15, 2015 9:32 pm 
Offline

Joined: Wed May 07, 2014 12:03 pm
Posts: 10
JonnE wrote:
mase2hot wrote:
Noticed the below error from php when I make a call, also verbose debug 4 doesn't generate any output in the log files.

PHP Fatal error: Call to undefined function NewADOConnection() in /var/lib/asterisk/agi-bin/lib/Class.A2Billing.php on line 3616



you have the SVN version, download the latest stable version! that is what I did to solve it, even though composer had it, it would not load the libraries for a reason.


All the pissing around I've been doing and it was a flipping dodgy SVN source. Killing me.....lol Well sorted now thanks!


Top
 Profile  
 
 Post subject: Re: Unable to dial out
PostPosted: Sat Jul 18, 2015 3:35 pm 
Offline

Joined: Fri Sep 12, 2008 2:42 am
Posts: 1
I get the same error, but I'm using stable version 2.1.1 as downloaded on a2billing site.

Testing the AGI code I think there is missing an include to adodb.
I made a symlink from vendor/adodb/adodb-php on common/lib (called adodb) and on line 49 at AGI/a2billing.php I added the following line:
include(dirname(__FILE__) . "/lib/adodb/adodb.inc.php");

Now is working!

Hope it help other users :)


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


All times are UTC


Who is online

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