[pjsip] Using more than one ETH device

jorge.amador at withus.pt jorge.amador at withus.pt
Mon Nov 12 15:12:50 EST 2007

Hi Benny,

I've changed to 0.8.0 version. Now I can bind an account to a specific  
transport (in this case 2 different ethernet devices) but after  
checking with ethereal I noticed that rtp transport is binded to only  
one off the ethernet devices. I tried to create 2 rtp transports, one  
for each ethernet device but failed with this error:

  20:11:07.341  pjsua_media.c Unable to create RTP/RTCP socket: Cannot  
assign requested address [status=120099]

Is it possible to create 2 rtp transports with the same application?  
Thanks and best regards

Jorge Amador

Quoting Benny Prijono <bennylp at pjsip.org>:

> Sorry for the late reply. I just tried this with pjsip SVN version
> and couldn't reproduce the problem. Could you post a snippet
> perhaps? Also may be better to try the SVN version instead.
> cheers,
>   -benny
> jorge.amador at withus.pt wrote:
>> Hi Benny,
>> I changed to the 0.7.0 version and succeded adding udp transport on
>> both eth devices. However when I try to lock one account to one
>> transport and another account to another transport (each transport
>> with different IP addresses and ports) it doesn't work. Both accounts
>> get locked to the same transport and it is always the last transport
>> that I configure. I'm using pjsua_acc_set_transport() with the account
>> id that I want to lock to a transport id. Any idea of what is going
>> wrong? Thanks a lot for your help.
>> Best regards,
>> Jorge Amador
>> Quoting Benny Prijono <bennylp at pjsip.org>:
>>> jorge.amador at withus.pt wrote:
>>>> Hi everyone,
>>>> I'm using pjsip in an equipment that as three Ethernet
>>>> devices each one with a IP address. I want to create 2 accounts for
>>>> Eth1, 2 accounts for Eth2 and none for Eth0, using the same PJSUA. Is
>>>> it possible?
>>> Not with 0.5.10.x, and maybe with 0.7 version (or probably the SVN
>>> version). In 0.7.x, there is an API to "lock" account to specific
>>> transport, with pjsua_acc_set_transport(). And since you can bind
>>> transport to a specific interface, effectively you can control which
>>> interface should be used by an account.
>>> cheers,
>>>   -benny
>>>> Thanks everyone,
>>>> Jorge Amador
> _______________________________________________
> 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

More information about the pjsip mailing list