asterisk2billing.org http://forum.asterisk2billing.org/ |
|
SIP calls being answered and asked to enter Card code http://forum.asterisk2billing.org/viewtopic.php?f=33&t=12405 |
Page 1 of 1 |
Author: | thewoose [ Sun May 01, 2016 11:11 pm ] |
Post subject: | SIP calls being answered and asked to enter Card code |
Hi, I am trying to get a new installation of a2billing up and running. Most things seem to be working, but I'm unclear of exactly what entries should be in extensions_custom.conf (I'm using PIAF/FreePBX.) I saw on old post to add this section: Code: [a2billing-sip] exten => _X.,1,DeadAGI(a2billing.php,2) exten => _X.,n,Hangup But after adding the SIP calls just go into the main [a2billing] context and ask for authentication. Here is my entire a2b context entries I got from a website: Code: [a2billing] exten => _X.,1,Answer exten => _X.,n,Wait(1) exten => _X.,n,deadAGI(a2billing.php,1) exten => _X.,n,Hangup [a2billing-sip] exten => _X.,1,DeadAGI(a2billing.php,2) exten => _X.,n,Hangup [a2billing-callback] exten => _X.,1,deadAGI(a2billing.php,1,callback) exten => _X.,n,Hangup [a2billing-cid-callback] exten => _X.,1,deadAGI(a2billing.php,1,cid-callback,34) ;last parameter is the callback area code exten => _X.,n,Hangup [a2billing-all-callback] exten => _X.,1,deadAGI(a2billing.php,1,all-callback,34) ;last parameter is the callback area code exten => _X.,n,Hangup [a2billing-did] exten => _X.,1,deadAGI(a2billing.php,1,did) exten => _X.,2,Hangup [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|voucher|44) ; will add 44 in front of the callerID exten => _X.,n,Hangup I added the a2billing-sip context from some old post here. Does anyone know if this is correct or am I missing something? Running Asterisk 13.8.2 with Incredible PBX / FreePBX. I know that SIP calls should not be answered but dial directly. Thanks, Steve EDIT: I just tried the Asterisk 1.8 config sample in addons/asterisk-conf and got the same results. |
Author: | thewoose [ Mon May 02, 2016 2:32 pm ] |
Post subject: | Re: SIP calls being answered and asked to enter Card code |
I just figured out most of the problem. In the tutorial I first read, it said to make a custom trunk in FreePBX and the dial string be A2B/1 .. apparently that's wrong. I found a video which said to make it Code: Local/$OUTNUM$@a2billing/n Now when I place a SIP call it still answers and tells me my balance, but doesn't ask me to enter the card number. So I think it's working I don't know what the correct behavior is supposed to be, but this seems to work pretty well whether it's right or not |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |