jwexler at mail.usa.com
2010-Jul-29 06:19 UTC
[asterisk-users] Registering 2 phone numbers to same router
Folks, My isp's router limits registrations to only 1 phone number per interface (i.e., by MAC Address). I am struggling to get around this limitation. In sip.conf, I have: rt200ne=192.168.40.1 register => 3:password:username at 192.168.40.1/phone1 register => 4:password:username at 192.168.40.1/phone2 (where phone1 and phone2 are the phone numbers that I am trying to register). The router will only allow one of them to register. Server is ubuntu 10.04 and Asterisk is 1.4.33.1 I have tried using iptables, ip route and route -n none of which work. I can access the router via http and a nat ip such as 192.168.40.3 but cannot register via that due to some peculiarity with the asterisk register and/or the rt200ne statements. What other workarounds should I try? Should I try to run another Asterisk process for registering the 2nd phone number and forward to the main asterisk? Seems like there are restrictions for running more than one instance of Asterisk. If that is the most viable workaround, how would I do that? I would greatly appreciate any help on this. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100729/ecc75f08/attachment.htm
Paul Belanger
2010-Jul-29 13:15 UTC
[asterisk-users] Registering 2 phone numbers to same router
On Thu, Jul 29, 2010 at 2:19 AM, <jwexler at mail.usa.com> wrote:> My isp?s router limits registrations to only 1 phone number per interface > (i.e., by MAC Address). >MAC Address? Are you sure? Why would your ISP care about level 2? I could understand IP address (level 3). If this is the case, you will need to spoof your MAC. -- Paul Belanger | dCAP Polybeacon | Consultant Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode) blog.polybeacon.com
jwexler at mail.usa.com
2010-Jul-29 23:05 UTC
[asterisk-users] Registering 2 phone numbers to same router
On Thu, Jul 29, 2010 at 10:15 PM, Paul Belanger wrote:> MAC Address? Are you sure? Why would your ISP care about level 2? I > could understand IP address (level 3). If this is the case, you will > need to spoof your MAC.Actually, it is mind boggling that the isp even cares about restricting phone registrations per device which is apparently what they are trying to do. Without a work around, I would need to have 3 separate machines just to register the three phone numbers. That would be a real mess. On their ip phone settings page, there is a column labeled "mac address". They do not display the mac addresses that they populate there but they do restrictions by info received on the nic from which the registration was sent. Unfortunately, simply spoofing the mac address would be insufficient because there is no way to specify which nic to use in the 2 register statements in sip.conf. I have not been able to use iptables or ip route to make up an additional address to the router that asterisk can use successfully. I can do so such that firefox can access, login to, and update the router but not asterisk for some strange reason. The router is at 192.168.40.1. I set up 192.168.40.3 as a new ip that just routes to 192.168.40.1 which firefox is happy with. Asterisk chokes. Maybe because of the rt200ne patch? Link is in Japanese but it patches sip.c so that I can register with the router: http://voip-info.jp/index.php/RT-200NE%E5%AF%BE%E5%BF%9C%E3%83%91%E3%83%83%E 3%83%81 Or some other cause? Suggestions on some kind of workaround be really appreciated? I hope some day, Asterisk will provide the option to specify registrations by nic interface. Thanks JW