How does pjsua-lib choose the local address to bound to?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 23, 2009 at 5:14 PM, Ruud Klaver <ruud at ag-projects.com> wrote:

>
> On 23 Jan 2009, at 01:19, Alexei Kuznetsov wrote:
>
>  Hi,
>>
>> There's a problem on the Mac OS X with installed Parallels, which adds
>> virtual nics to the host machine. pjsua-lib bounds to one of these addresses
>> and tries to use it in signalling and media. I know I can use bound_addr
>> explicitly, but it's not the point. I'd like to predict the way my app
>> bounds to the local addresses and do something to make it more convinient
>> for the user. So, is there any algorithm?
>>
>>
> I have also noticed this problem. It seem to be pretty random, but I'm
> curious to know if there is any logic behind it.
>
>
Of course there is! Do you think pjsip just subjectively selects IP
interface at random? It's not that clever you know. ;-)

Here:
http://trac.pjsip.org/repos/browser/pjproject/trunk/pjlib/src/pj/sock_common.c#L448

The selected IP shouldn't matter much IMO. For signaling, the IP will be
(re)learnt from REGISTER response. And for media, that exactly what ICE is
for, among other things.

cheers
 Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090126/cb9b1773/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux