Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 27, 2024 10:26 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Adding second permit IP
PostPosted: Wed Mar 03, 2010 10:53 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
Hi Guys,

In a wholesale scenario where you want to add many permit IPs to a customer account what should be done?

I have tried tampering the addittional_a2billing_sip.conf and adding second line with host= , permitip=, and defaultip= but that doesn't help and account is only authenticated to the second IP or whichever IP is mentioned last.

I also did a copy of the entire SIP PEER detail from additional_a2billing_sip.conf and changed the ip address to a second IP and Asterisk still only validates whichever is last in the file. This makes sense in part of Asterisk.

Wondering if any of the wholesaler Gurus here can share their setting?

Thanks


Top
 Profile  
 
 Post subject: Re: Adding second permit IP
PostPosted: Thu Mar 04, 2010 12:20 am 
Offline

Joined: Tue Aug 19, 2008 3:49 pm
Posts: 184
bruce wrote:
Hi Guys,

In a wholesale scenario where you want to add many permit IPs to a customer account what should be done?

I have tried tampering the addittional_a2billing_sip.conf and adding second line with host= , permitip=, and defaultip= but that doesn't help and account is only authenticated to the second IP or whichever IP is mentioned last.

I also did a copy of the entire SIP PEER detail from additional_a2billing_sip.conf and changed the ip address to a second IP and Asterisk still only validates whichever is last in the file. This makes sense in part of Asterisk.

Wondering if any of the wholesaler Gurus here can share their setting?

Thanks


I might be wrong but something like this should work.

[CA_01]
type=friend
context=a2billing
accountcode=Customer Account Number
host=xxx.xxx.xx.1
disallow=all
allow=g729
allow=alaw
allow=ulaw

[CA_02]
type=friend
context=a2billing
accountcode=Customer Account Number
host=xxx.xxx.xx.2
disallow=all
allow=g729
allow=alaw
allow=ulaw

[CA_03]
type=friend
context=a2billing
accountcode=Customer Account Number
host=xxx.xxx.xx.3
disallow=all
allow=g729
allow=alaw
allow=ulaw

Again... I think maybe this will work.

Kind Regards,

Les


Top
 Profile  
 
 Post subject: Re: Adding second permit IP
PostPosted: Thu Mar 04, 2010 7:46 am 
Offline

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

You can achieve the same in A2Billing directly without resorting to manually adding configs to the dialplan. Just add a new sip friend, connect it to the customer, and change the accountcode field to that of the a2billing account number.

Joe


Top
 Profile  
 
 Post subject: Re: Adding second permit IP
PostPosted: Thu Mar 04, 2010 5:38 pm 
Offline

Joined: Tue Aug 19, 2008 3:49 pm
Posts: 184
jroper wrote:
Hi

You can achieve the same in A2Billing directly without resorting to manually adding configs to the dialplan. Just add a new sip friend, connect it to the customer, and change the accountcode field to that of the a2billing account number.

Joe


Hi Joe,

I have tried your way a couple of times in the past and it did not work for me :( and I always end up doing it how I described above.

When trying to do it your way, I would go to VoIP Settings > Add Sip Config and then click on the golden > to select the customer.

At that point the CID CARD and ACCOUNTCODE are filled in with the customers info. I would then enter the IP in the HOST field and save it.

If it works for you I am obviously doing something incorrect. Any ideas what I might be doing wrong?

Kind Regards,

Les


Top
 Profile  
 
 Post subject: Re: Adding second permit IP
PostPosted: Sat Mar 06, 2010 8:05 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
I just tested Joe's method and it works. I am happy there is a work around for this.

Here is what I did:
Code:
Voip Settings > Add SIP Config > Host = 123.123.132.123, Default IP = 123.123.123.123, PERMIT = 123.123.123.123, DENY=0.0.0.0/0, INSECURE=port,invite


Thanks Joe.


Top
 Profile  
 
 Post subject: Re: Adding second permit IP
PostPosted: Sun Mar 07, 2010 3:54 pm 
Offline

Joined: Tue Aug 19, 2008 3:49 pm
Posts: 184
Hi Bruce,

Thanks for the confirmation and the details on how you made it work. I will give it another try on the next one I set up.

Kind Regards,

Les


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 78 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