Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 2:45 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Wholesale Customer Setup
PostPosted: Mon Mar 03, 2014 2:08 pm 
Offline

Joined: Tue Feb 04, 2014 7:48 pm
Posts: 6
Hi,

I would like to setup a customer who will have a range of extensions. The customer has his own SIP server and I want to deliver service to him via a SIP trunk between his server and my a2billing. I have setup incoming service so that calls are delivered to his server with a configuration in extensions_custom.conf below:

exten => _09778600X,1,Dial(SIP/customer_trunk/${EXTEN})

i.e. extensions (097)786000 up to (097)7860009 will be sent to his trunk.

Now, what I am not sure of is how to configure outbound service for him. The idea is for his outbound calls to use my outbound trunks and to be billed by A2billing.

Can anyone help me with ideas on how to set this up?


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Tue Mar 04, 2014 3:04 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
I think you need to create SIP credentials (in the A2Billing admin GUI) for his A2Billing customer account, and then use those details to configure the outbound trunk on his server.

There's a full walkthrough here - http://sysadminman.net/blog/2011/a2b100 ... lling-3127 - but I think you're only missing that one bit.


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Tue Mar 25, 2014 11:07 pm 
Offline

Joined: Tue Jun 18, 2013 2:30 pm
Posts: 6
Hello,
I'm on the same situation as you. I've been trying to setup IP auth to his server via account, but that not working. Can you provide some additional information how you are setup this if you are done it step by step please.

Thanks !


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Wed Mar 26, 2014 9:25 am 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
Do you mean using IP authentication to authenticate a SIP customer to a2billing? If so there's some instructions here - http://sysadminman.net/blog/2012/ip-aut ... g-sip-4205

Read the comments though as you also need PORT=5060


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Wed Mar 26, 2014 12:34 pm 
Offline

Joined: Tue Jun 18, 2013 2:30 pm
Posts: 6
No I mean that what I'm doing is that one:

On a2billing machine:
1) Setup a new one call plan and rates for my client according as http://sysadminman.net/blog/2011/using-a2billing-for-wholesale-or-residential-services-1920
2) Create customer assigned to that Call plan.
3) Edit customer to use ip authentication
4) Add Inbound DID and Destination to that customer ( destination is a like that SIP/customer-id/customer-server-ip-address
5) Give a minimal peer setting context to the client in sip.conf:

[30407]
type=peer
accountcode=30407
regexten=30407
amaflags=billing
nat=yes
dtmfmode=RFC2833
qualify=yes
canreinvite=yes
disallow=all
allow=alaw
allow=ulaw
allow=gsm
allow=g729
host=xxx.xxx.xxx.xxx
insecure=port,invite
context=a2billing
regseconds=0
cancallforward=yes

On client Asterisk machine:
1) sip.conf

[MAXLAN]
deny = 0.0.0.0/0.0.0.0
disallow = all
allow = alaw
type = peer
trustrpid = yes
sendrpid = yes
permit = my a2billing machine host ip
host = my a2billing machine host ip
insecure = invite,port
context = from-maxlan

; ### LOCAL ###

[056940776]
type = friend
host = dynamic
nat = yes
defaultuser = 056940776
secret = boyan123
disallow = all
allow = alaw
canreinvite = no
context = to-maxlan

2) extension.conf

[to-maxlan]
exten => _[+0-9]X.,1,Set(CALLFILENAME=${EXTEN}-${STRFTIME(,,%H:%M)})
exten => _[+0-9]X.,2,Monitor(wav,${CALLERID(num)}-${CALLFILENAME},m)
exten => _[+0-9]X.,3,Dial(SIP/MAXLAN/${EXTEN})

[from-maxlan]
exten => 30407,1,Progress()
exten => 30407,2,Set(CALLFILENAME=${EXTEN}-${STRFTIME(,,%H:%M)})
exten => 30407,3,Monitor(wav,${CALLERID(num)}-${CALLFILENAME},m)
exten => 30407,4,Dial(SIP/056940776)
exten => 30407,5,Hangup

Now with one account added with IP auth to client server and DID to him everything is working ok, but when I add second account to a2billing wit ip auth to client IP and give him peer setting context to in sip.conf (point 5 above). When second account is trying to dial outside is exit with first account CID number 30407 (point 5 above) because I have two same IP auth host with same IP addresses in sip.conf on my machine. I want the second, third .....etc account that I was create on a2billing and assign them to client IP based on auth to exit outbound with their CID or even more I want to assign multiple CID on 1 account and use IP auth to my client based only on 1 account in a2billing.

Thanks !


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Wed Mar 26, 2014 1:15 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
So 2 remote a2billing SIP customers connecting from the same IP?

I agree, I could't get that working either so gave up and used IAX trunks instead :-) That works.

Maybe a cop out, and maybe there's a way, but for me it was easier just to switch to IAX.

Maybe Joe knows?


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Wed Mar 26, 2014 7:53 pm 
Offline

Joined: Tue Jun 18, 2013 2:30 pm
Posts: 6
Any help would be useful.


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Tue Apr 08, 2014 7:01 am 
Offline

Joined: Tue Feb 04, 2014 7:48 pm
Posts: 6
Hi,

I got this from a helpful guru. This will set up a wholesale customer with IP authentication rather than SIP registration.

1) Setup a trunk for the customer in Freepbx, specifying their host IP and their own context, e.g.

host=10.11.12.13
type=peer
qualify=yes
disallow=all
allow=g729&ulaw&alaw&gsm
context=wholesale_customer

2) Create a customer account in A2billing the normal way. For the Voip settings, I used 's' for the username.

3) Define the customer's context in extensions_custom.conf, specifying the account number generated by A2billing as so:

[wholesale_customer]
exten => _X.,1,set(CDR(accountcode)=1234567890)
exten => _X.,n,DeadAgi(a2billing.php)
exten => h,1,hangup(1)

Use the appropriate accountcode for your setting. This works for me and outbound dialing for the customer.


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Tue Apr 08, 2014 11:17 am 
Offline

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

in VOIP settings in A2Billing, set the host to the IP address of your customer, set the type to peer, and set insecure as port,invite now reload Asterisk.

Joe


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Wed Apr 16, 2014 4:40 am 
Offline

Joined: Thu Jun 14, 2007 5:24 am
Posts: 2
Hi,

IP based authentication never worked for me with Real-Time. So, gotta make sure you have set "use_realtime" to "no".

Regards


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Wed Apr 16, 2014 7:25 am 
Offline

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

Quote:
IP based authentication never worked for me with Real-Time. So, gotta make sure you have set "use_realtime" to "no".


This is not our experience.

Joe


Top
 Profile  
 
 Post subject: Re: Wholesale Customer Setup
PostPosted: Thu Apr 17, 2014 11:35 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
jroper wrote:
Hi

Quote:
IP based authentication never worked for me with Real-Time. So, gotta make sure you have set "use_realtime" to "no".


This is not our experience.

Joe


I agree. We use IP authentication + Asterisk realtime just fine.


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


All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 21 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