asterisk2billing.org http://forum.asterisk2billing.org/ |
|
Unable to dial out http://forum.asterisk2billing.org/viewtopic.php?f=33&t=11705 |
Page 1 of 1 |
Author: | mase2hot [ Sat Jun 13, 2015 7:46 am ] |
Post subject: | Unable to dial out |
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 [447842444123@a2billing_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 [447842444123@a2billing_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 |
Author: | jroper [ Sun Jun 14, 2015 12:00 pm ] |
Post subject: | Re: Unable to dial out |
Hi Is your client authenticated, and has a context of a2billing. Check by doing sip show peer <<a2billing account number>> Joe |
Author: | mase2hot [ Sun Jun 14, 2015 3:28 pm ] |
Post subject: | Re: Unable to dial out |
Hi, I'm using IP auth and sip show peer looks fine shows all my settings. This mean its authorised? Thanks |
Author: | mase2hot [ Sun Jun 14, 2015 3:54 pm ] |
Post subject: | Re: Unable to dial out |
To note on my PBX I get Got SIP response 603 "Declined" back from 58.21.9.40:5060 |
Author: | mase2hot [ Sun Jun 14, 2015 8:26 pm ] |
Post subject: | Re: Unable to dial out |
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 |
Author: | JonnE [ Mon Jun 15, 2015 1:57 am ] |
Post subject: | Re: Unable to dial out |
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. |
Author: | mase2hot [ Mon Jun 15, 2015 9:32 pm ] |
Post subject: | Re: Unable to dial out |
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! |
Author: | celangoni [ Sat Jul 18, 2015 3:35 pm ] |
Post subject: | Re: Unable to dial out |
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 |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |