I'm not exactly sure how Sofia chooses which interface to use in the header, but you can specify that Sofia only binds to a specific IP when you call nua_create() with NUTAG_URL("sip:192.168.15.115").
PS Sorry about top-posting. Outlook doesn't add the > to replies when I convert to plain text. HTH, Andy. From: Rostowsky, David [mailto:drostow...@airbiquity.com] Sent: Thursday, February 05, 2009 1:20 PM To: sofia-sip-devel@lists.sourceforge.net Subject: [Sofia-sip-devel] Multiple ethernet interface support? Hi, How does Sofia SIP handle multiple Ethernet interface support? I’m having a problem where my linux box has eth0=172.16.1.1, and eth1=192.168.15.115. When Sofia sends an INVITE out to the destination 192.168.15.13, my expectation was that the source IP address should be 192.168.15.115. However, Ethereal captures show the source IP address is actually 172.16.1.1. The INVITE is actually being sent out eth1 as I have physically unplugged 172.16.1.1. How does Sofia’s SIP socket determine to use eth0’s source IP address? It should be using eth1 as the source IP address. This is obviously causing the receiver of the INVITE issues as the 100-Trying, etc are being sent to 172.16.1.1 which of course never reaches my linux box since that cable is unplugged. Thanks in advance! -Dave R. PS: As an aside, I wrote a simple UDP SIP socket socket program that sent my own INVITE out to 192.168.15.13, and the source IP address in Ethereal is correctly shown as eth1’s (192.168.15.115). Therefore, I know this probably has nothing to do with Linux OS routing tables, networking, etc. Its more to my lack of understanding on Sofia. ☺ ________________________________________ The information contained in this message, including attachments, may contain privileged and/or confidential information that is intended to be delivered only to the person(s) identified above. If you are not the intended recipient(s), or the person responsible for delivering this message to the intended recipient(s), Airbiquity Inc. requests that you immediately notify the sender and asks that you do not read the message or its attachments and that you delete them without copying or sending them to anyone else. Any review, reliance or distribution by others not intended as recipients or forwarding without express permission is strictly prohibited. Replies to this message may be received by other Airbiquity personnel in addition to the intended recipient(s). Confidentiality Notice: This e-mail message including attachments, if any, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. If you are the intended recipient, but do not wish to receive communications through this medium, please so advise the sender immediately. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel