Re: [Sofia-sip-devel] Using VPN
Hi all, 2010/9/16 : >> Hi, using 1.12.10. Sofia doesn't seem to select the vpn ip when >> connected over VPN. It still seems to be listening on the usual WiFI >> access point ip, this is the same no matter what ip is passed to >> NUTAG_URL. > > It should work if the nua stack is created with this tag. > I set it as an url_t equivalent to "sip:IPADDR:*". The socket is bind with maddr parameter, like "sip:IPADDR:*;maddr=IPADDR". > That said, it is unfortunate that Sofia cannot determine the preferred IP > binding by itself, even though it requires platform-specific code (so a Linux > fix using rtnetlink will not solve the problem for iPhone). Yes, the netlink or equivalent code is surely needed. -- Pekka.Pessi mail at nokia.com -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Re: [Sofia-sip-devel] Using VPN
its not necessarily so obvious, and there are many issues related to nat and routing to figure out to do this right. We do most of this in freeswitch using sofia, but it uses considerable additional code to figure out which interfaces it should use by default using multiple methods, including upnp, natpmp, and several platform specific methods for getting available ip's, interfaces, and routes. Even then, if you want things to "just work" it often requires significant detection and knowledge of the network layout. Much of our code could be moved back in to sofia but it is fairly significant work that would need to be done, and has downsides such as startup time required for upnp and natpmp detection. Some of our code for packet rewriting for talking to both internal and natted hosts on the same nua would be quite nice to move down into sofia because we currently can not handle easily situations where a dns lookup may return either internal or external, or similarly ipv4 or ipv6 addresses. Mike On Sep 16, 2010, at 12:30 PM, wrote: > Hi, > >> -Original Message- >> From: ext Nauman Sulaiman [mailto:nauman762-h...@yahoo.co.uk] >> Sent: Tuesday, September 14, 2010 2:28 PM >> To: sofia-sip-devel@lists.sourceforge.net >> Subject: [Sofia-sip-devel] Using VPN >> >> Hi, using 1.12.10. Sofia doesn't seem to select the vpn ip when >> connected over VPN. It still seems to be listening on the usual WiFI >> access point ip, this is the same no matter what ip is passed to >> NUTAG_URL. > > It should work if the nua stack is created with this tag. > I set it as an url_t equivalent to "sip:IPADDR:*". > > That said, it is unfortunate that Sofia cannot determine the preferred IP > binding by itself, even though it requires platform-specific code (so a Linux > fix using rtnetlink will not solve the problem for iPhone). > > Hope this helps, > Mikhail > -- > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > ___ > Sofia-sip-devel mailing list > Sofia-sip-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
Re: [Sofia-sip-devel] Using VPN
Hi, > -Original Message- > From: ext Nauman Sulaiman [mailto:nauman762-h...@yahoo.co.uk] > Sent: Tuesday, September 14, 2010 2:28 PM > To: sofia-sip-devel@lists.sourceforge.net > Subject: [Sofia-sip-devel] Using VPN > > Hi, using 1.12.10. Sofia doesn't seem to select the vpn ip when > connected over VPN. It still seems to be listening on the usual WiFI > access point ip, this is the same no matter what ip is passed to > NUTAG_URL. It should work if the nua stack is created with this tag. I set it as an url_t equivalent to "sip:IPADDR:*". That said, it is unfortunate that Sofia cannot determine the preferred IP binding by itself, even though it requires platform-specific code (so a Linux fix using rtnetlink will not solve the problem for iPhone). Hope this helps, Mikhail -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
[Sofia-sip-devel] Using VPN
Hi, using 1.12.10. Sofia doesn't seem to select the vpn ip when connected over VPN. It still seems to be listening on the usual WiFI access point ip, this is the same no matter what ip is passed to NUTAG_URL. How can we tell Sofia to select a certain interface, this is on iphone OS. Thanks -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel