asterisk2billing.org http://forum.asterisk2billing.org/ |
|
Wholesale Customer Setup http://forum.asterisk2billing.org/viewtopic.php?f=33&t=10741 |
Page 1 of 1 |
Author: | teek808 [ Mon Mar 03, 2014 2:08 pm ] |
Post subject: | Wholesale Customer Setup |
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? |
Author: | bucasia [ Tue Mar 04, 2014 3:04 pm ] |
Post subject: | Re: Wholesale Customer Setup |
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. |
Author: | Mandalavandalz [ Tue Mar 25, 2014 11:07 pm ] |
Post subject: | Re: Wholesale Customer Setup |
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 ! |
Author: | bucasia [ Wed Mar 26, 2014 9:25 am ] |
Post subject: | Re: Wholesale Customer Setup |
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 |
Author: | Mandalavandalz [ Wed Mar 26, 2014 12:34 pm ] |
Post subject: | Re: Wholesale Customer Setup |
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 ! |
Author: | bucasia [ Wed Mar 26, 2014 1:15 pm ] |
Post subject: | Re: Wholesale Customer Setup |
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? |
Author: | Mandalavandalz [ Wed Mar 26, 2014 7:53 pm ] |
Post subject: | Re: Wholesale Customer Setup |
Any help would be useful. |
Author: | teek808 [ Tue Apr 08, 2014 7:01 am ] |
Post subject: | Re: Wholesale Customer Setup |
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. |
Author: | jroper [ Tue Apr 08, 2014 11:17 am ] |
Post subject: | Re: Wholesale Customer Setup |
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 |
Author: | najib [ Wed Apr 16, 2014 4:40 am ] |
Post subject: | Re: Wholesale Customer Setup |
Hi, IP based authentication never worked for me with Real-Time. So, gotta make sure you have set "use_realtime" to "no". Regards |
Author: | jroper [ Wed Apr 16, 2014 7:25 am ] |
Post subject: | Re: Wholesale Customer Setup |
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 |
Author: | bucasia [ Thu Apr 17, 2014 11:35 pm ] |
Post subject: | Re: Wholesale Customer Setup |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |