Hi, On Tue, 2008-09-30 at 17:49 +0200, ext Olle Frimanson wrote: > I need to control which interface is used both for outgoing and > incoming packets. What I'm doing is the following: Incoming: I'm using the --ip-addr to bind() to a particular local IP address (this affects where I see incoming packets) Outgoing: I'm using an ipfw firewall rule to push packets with this local address in the source field out along a particular interface. If you're using Linux, you could modify the library to do a setsockopt() with SO_BINDTODEVICE, but I think this is a Linux-only option. Might be useful for you though. Cheers, -S. > > > ______________________________________________________________________ > From:pjsip-bounces at lists.pjsip.org > [mailto:pjsip-bounces at lists.pjsip.org] On Behalf Of Massimiliano > Montevecchi > Sent: den 30 september 2008 16:49 > To: pjsip at lists.pjsip.org > Subject: Re: Bind PJSUA to a specific interface > > > > > [Montevecchi] Hi Olle > > > > If you have multiple interfaces can you bind an instance of PJSUA to a > specific interface? > > > > [Montevecchi] Yes you can, as you can read at the pjsua application > help page (http://www.pjsip.org/pjsua.htm) > > > > In my case I have a LAN conenction and a 3G modem connection and I > want to bind one PJSUA to the LAN interface and another to the 3G > modem. > > > > [Montevecchi] You can specify directly the IP address of the > interface using the --ip-addr option, i.e.: > > > > --ip-addr=10.18.1.53 > > > > Bye > > Massimiliano > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org