hI, Trying to understand how to setup two PRIs in sip.conf. Using Asterisk 1.4.23. I have a provider giving me two PRI (different rate centers) through SIP. Both PRI comes in from the same IP on the provider side, but go to two different IPs (both on the same box) on my side. How can I setup two different SIP peer, one for each of the PRIs I get, if all I can use to differenciate them are the IP address ? I can't find any obvious setting in the sip.conf peer settings. The general section has "bindaddr" which would make sense, but since it's general and not per peer it's of no use Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090130/e0705c86/attachment.htm
30 jan 2009 kl. 16.59 skrev Mike:> hI, > > Trying to understand how to setup two PRIs in sip.conf. Using > Asterisk 1.4.23. > > I have a provider giving me two PRI (different rate centers) through > SIP. Both PRI comes in from the same IP on the provider side, but > go to two different IPs (both on the same box) on my side. > > How can I setup two different SIP peer, one for each of the PRIs I > get, if all I can use to differenciate them are the IP address?? I > can't find any obvious setting in the sip.conf peer settings. The > general section has "bindaddr" which would make sense, but since > it's general and not per peer it's of no use? >Interesting question. I don't think you can. The ACLs only work on sender's address. Maybe we could consider at some point implement local ACLs too. /O
Replying to my own message. How difficult would it be to add a "bindaddr" (and possibly bindport) PER PEER in SIP.conf? How much of a bounty would I have to pay to get this done you think? Mike From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mike Sent: Friday, January 30, 2009 10:59 To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [asterisk-users] SIP.Conf - bindaddr per peer? hI, Trying to understand how to setup two PRIs in sip.conf. Using Asterisk 1.4.23. I have a provider giving me two PRI (different rate centers) through SIP. Both PRI comes in from the same IP on the provider side, but go to two different IPs (both on the same box) on my side. How can I setup two different SIP peer, one for each of the PRIs I get, if all I can use to differenciate them are the IP address ? I can't find any obvious setting in the sip.conf peer settings. The general section has "bindaddr" which would make sense, but since it's general and not per peer it's of no use Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090130/a2ff90b0/attachment.htm