Thanks for the info! We are doing NUATAG_URL("0.0.0.0") and
SIPTAG_VIA_STR("192.168.x.x") in nua_invite(), but the source IP in Ethereal
was still 172.16.x.x. Everything in the INVITE itself (From, Via, Contact)
indicated 192.168.x.x. That's when I got completely confused. Looking in the
mailing list archives, I found another alternative that seemed like a
workaround to the same problem. After nua_create(NAUTAG_URL("0.0.0.0")), call
nta_agent_add_tport("192.168.x.x"). If that works, Ill go with it. If not,
seems like I'll be needing to do a nua_create() for each network interface.
Thanks again!
-Dave
-----Original Message-----
From: Andrew Rechenberg Lists [mailto:[email protected]]
Sent: Friday, February 06, 2009 6:27 AM
To: Rostowsky, David; [email protected]
Subject: RE: [Sofia-sip-devel] : Multiple ethernet interface support?
>
> Thanks! nua_create() with NUTAG_URL("sip:192.168.15.115") certainly
> resolved that scenario, but presents me with another challenge.
>
> I want to receive SIP traffic on both of my Ethernet interfaces, eth0
> (172.16.xx.xx) and eth1(192.168.xx.xx). I was using
> NUATAG_URL("0.0.0.0") in my nua_create() believing that one instance
of
> Sofia could receive SIP traffic from any of my network interfaces,
which
> I think it valid. However, my previous transmit problem arose. Do you
> believe I need to create multiple instances of Sofia to have the best
of
> both worlds? Ie. nua_create(NUTAG_URL(172.16.xx.xx)) and
> nua_create(NUTAG_URL(192.168.xx.xx))? Will that work with Sofia?
>
You could probably leave the NUATAG_URL("0.0.0.0") and add a separate
Via header for each of your SIP transactions with SIPTAG_VIA_STR(). I
believe that would make the outgoing messages come back on the proper
interface.
Take this recommendation with a grain of salt as I'm just learning Sofia
as well :)
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.
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).
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel