Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 6:15 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: sip friend doesn't launch a2b
PostPosted: Mon Mar 20, 2006 8:42 am 
Hi all,

I've got a2b working if i call an incoming number and have it forwarded to a2billing.php but i can't seem to get the sip friends to make a connection to a2b.

When i dial out with the sip friend that was set up in the a2b admin interface, it just dials straight out. When i use the same calling card by calling a number first, everything works just fine.

Does anyone have any thoughts?

Thanks in advance,
bb


Top
  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 7:34 pm 
Offline

Joined: Tue Mar 21, 2006 7:17 pm
Posts: 141
Location: Washington DC
Check the context defined for your sip friend. It should be set on the context where you have a2billing defined.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 12:06 am 
Yes, i've tried playing with all of that but so far no luck. I've tried it as "callingcard" as well as "custom-callingcard". Not too sure why it doesn't debit from the card but i'm hoping that one day, it will just magically start working. :)

Can anyone else think of something to try?

Cheers.


Top
  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 12:10 am 
Offline

Joined: Tue Mar 21, 2006 7:17 pm
Posts: 141
Location: Washington DC
Can you post an example of a sip friend from the configuration files? Also the context with a2billing.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 25, 2006 6:53 am 
hi marcelbarbulescu,

Thanks for your persistence... :)

Here is what i think are the important sections... am i missing something glaringly obvious?

Thanks.
bb


sip.conf has:
#include additional_a2billing_sip.conf

An exerpt from extensions.conf:

[from-internal]
;allow phones to use applications
include => custom_callingcard
include => callingcard


An exerpt from extensions_custom.conf:

; CallingCard application
;add an incoming route for the DID to Custom App: (un-comment next line)
custom-callingcard,s,1

; un-comment the 6 lines below to work on incoming DIDs
[custom-callingcard]
include => outbound-allroutes
exten => s,1,Answer
exten => s,2,Wait,2
exten => s,3,DeadAGI,a2billing.php
exten => s,4,Wait,2
exten => s,5,Hangup

;callingcard,s,1

; un-comment the 6 lines below to work on incoming DIDs
[callingcard]
include => outbound-allroutes
exten => s,1,Answer
exten => s,2,Wait,2
exten => s,3,DeadAGI,a2billing.php
exten => s,4,Wait,2
exten => s,5,Hangup


An exerpt from additional_a2billing_sip.conf:

[5043549877]
type=friend
username=5043549877
accountcode=5043549877
regexten=5043549877
callerid=5043549877
amaflags=billing
secret=secretpassword
nat=no
dtmfmode=RFC2833
qualify=no
canreinvite=no
host=dynamic
context=custom-callingcard
port=5060
regseconds=0
cancallforward=yes


Top
  
 
 Post subject:
PostPosted: Sat Mar 25, 2006 7:04 am 
Offline

Joined: Tue Mar 21, 2006 7:17 pm
Posts: 141
Location: Washington DC
When your sip friends calls somebody, the extension will not match the "s" extension. Change it like this:

[custom-callingcard]
include => outbound-allroutes
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 25, 2006 9:09 am 
That did the trick! Thank-you so much!!! Now to go read up some more on s vs _X. :)

Cheers,
bb


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 15 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group