On Thursday 29 October 2009 15:30:59 Alex Balashov wrote: > (Works if your laptop is Linux:) > > I would connect the IP phone to your laptop via a switch. Plug your > laptop into same switch. Plug cable going into hotel jack into switch > as well. > > Set up a virtual subinterface (i.e. eth0:1) on a /30 with your phone > on the other side, i.e. 192.168.200.1/30 (laptop) and 192.168.200.2/30 > (phone). Set 192.168.200.1 to be your phone's default gateway. > > Then, set up other interface on laptop (eth0) as per normal to connect > to hotel, e.g. acquire a DHCP lease on it. > > Enable IP forwarding: > > echo 1 > /proc/sys/net/ipv4/ip_forward > > Then, NAT your phone's traffic out of your laptop. From the hotel > router's point of view, it will appear to be coming out of your laptop: > > iptables -A POSTROUTING -o eth0 -s 192.168.200.0/30 -j MASQUERADE > > This will put you behind two layers of NAT from the point of view of > your service provider/PBX/whatever, but if the reregistration > intervals are frequent enough, OPTIONS pings are turned on > (qualify=yes if Asterisk is the UAS), and the upstream NAT gateway > isn't ridiculous, it should work - certainly enough to reliably make > calls out.
You could just pay the roaming charges, as well. Or string a HF antenna round and round the building under the eaves and use single sideband. (Sorry. I agree this is neither development, business, nor very Asterisk- related.)
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-biz mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-biz
