Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed May 24, 2017 11:24 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SIP calls being answered and asked to enter Card code
PostPosted: Sun May 01, 2016 11:11 pm 
Offline

Joined: Tue Aug 24, 2010 9:14 am
Posts: 13
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. :)


Top
 Profile  
 
 Post subject: Re: SIP calls being answered and asked to enter Card code
PostPosted: Mon May 02, 2016 2:32 pm 
Offline

Joined: Tue Aug 24, 2010 9:14 am
Posts: 13
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:
[email protected]/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 :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group