pj_sock_bind sometime failed for ipv6

Q
qiulang
Tue, Sep 13, 2016 6:59 AM

Hi,

I foundpj_sock_bind sometime failed for ipv6 with the error message "pjsua_core.c Error creating SIP TCP listener: Address already in use [status=120048]“. If only happened to ipv6, ipv4 does not have this problem. And of course I setapp_config.udp_cfg.port = 0 to let pjsip choose any available port.

So any idea why and how to fix it ?

Thanks,

Qiulang

Hi, I foundpj_sock_bind sometime failed for ipv6 with the error message "pjsua_core.c Error creating SIP TCP listener: Address already in use [status=120048]“. If only happened to ipv6, ipv4 does not have this problem. And of course I setapp_config.udp_cfg.port = 0 to let pjsip choose any available port. So any idea why and how to fix it ? Thanks, Qiulang
AT
Alex Terente
Tue, Sep 13, 2016 7:07 AM

Try to set the default port to 5060, or increase it to 5070 in the case of failure.

On 13 Sep 2016, at 09:59, qiulang qiulang@emicnet.com wrote:

Hi,

I found pj_sock_bind sometime failed for ipv6 with the error message "pjsua_core.c Error creating SIP TCP listener: Address already in use [status=120048] “. If only happened to ipv6, ipv4 does not have this problem. And of course I set app_config.udp_cfg.port = 0 to let pjsip choose any available port.

So any idea why and how to fix it ?

Thanks,

Qiulang


Visit our blog: http://blog.pjsip.org http://blog.pjsip.org/

pjsip mailing list
pjsip@lists.pjsip.org mailto:pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Try to set the default port to 5060, or increase it to 5070 in the case of failure. > On 13 Sep 2016, at 09:59, qiulang <qiulang@emicnet.com> wrote: > > Hi, > > I found pj_sock_bind sometime failed for ipv6 with the error message "pjsua_core.c Error creating SIP TCP listener: Address already in use [status=120048] “. If only happened to ipv6, ipv4 does not have this problem. And of course I set app_config.udp_cfg.port = 0 to let pjsip choose any available port. > > So any idea why and how to fix it ? > > Thanks, > > Qiulang > _______________________________________________ > Visit our blog: http://blog.pjsip.org <http://blog.pjsip.org/> > > pjsip mailing list > pjsip@lists.pjsip.org <mailto:pjsip@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org <http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org>