The client is using to IPv6 and failed to connect to IPv4 sip server (2.5.5)

Q
qiulang
Thu, Aug 4, 2016 11:19 AM

Hi,

I found that I used an IPv4 server address for my account. Although lis_create_transport() is able to convert that server address to IPv6 format. It finally got 503 error. I felt it should be easy to fix but I just can’t find it.

Any help would be greatly appreciated!

So this is my setting is like these,

--id=1015sip:1015@112.80.5.159:9002
--registrar=sip:112.80.5.159:9002;transport=tcp

The sever address 112.80.5.159:9002 is correctly converted to64:ff9b::7050:59f:9002 from the log.

..TCP transport 2001:2::aab1:7c97:fd31:61c8:e3ee:52557 is connecting to 64:ff9b::7050:59f:9002...
..Contact for acc 2 updated for SIP outbound: "1015" sip:1015@[2001:2::aab1:7c97:fd31:61c8:e3ee]:52557;transport=TCP;ob;reg-id=1;+sip.instance="urn:uuid:00000000-0000-0000-0000-0000fa3fc436"

Original Message
Sender:qiulangqiulang@emicnet.com
Recipient:pjsip listpjsip@lists.pjsip.org
Date:Wednesday, Aug 3, 2016 18:21
Subject:Re: [pjsip] PJSIP version 2.5.5 is released with IPv6 support in PJNATH, DNS,and hostname resolution

Hi,

I forgot to mention that I had set "—ipv6” and copy/paste the code from sample. But I still got the 503 error. What else I need to do ?

Thanks

Qiulang

/* Add TCP IPv6 transport unless it's disabled. */
if (!app_config.no_tcp  app_config.ipv6) {

}

Original Message
Sender:qiulangqiulang@emicnet.com
Recipient:pjsip listpjsip@lists.pjsip.org
Date:Wednesday, Aug 3, 2016 17:13
Subject:Re: [pjsip] PJSIP version 2.5.5 is released with IPv6 support in PJNATH, DNS,and hostname resolution

Hi

I have used 2.5.5 in my sip client. The client is using to IPv6 and tries to connect to IPv4 sip server.
I got error like16:42:27.679 tsx0x155b586a8 ..Failed to send Request msg REGISTER/cseq=6514 (tdta0x155b57600)! err=120051 (Network is unreachable)

So how do I fix it?

Thanks,
Qiulang

Original Message
Sender:Mingming@teluu.com
Recipient:pjsip listpjsip@lists.pjsip.org
Date:Thursday, Jul 21, 2016 15:47
Subject:[pjsip] PJSIP version 2.5.5 is released with IPv6 support in PJNATH, DNS,and hostname resolution

Hi all, PJSIP version 2.5.5 is just released with the main focus on: - IPv6 support in PJNATH - IPv6 support in PJLIB-UTIL DNS SRV and DNS AAAA resolution, and - IPv6 support for hostname resolution (with and without nameserver) in PJSIP and PJSUA-LIB As usual the release also includes several enhancements and bug fixes, please see the Release Notes page for more info and grab the source code from the Download page. Best regards, PJSIP team _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, I found that I used an IPv4 server address for my account. Although lis_create_transport() is able to convert that server address to IPv6 format. It finally got 503 error. I felt it should be easy to fix but I just can’t find it. Any help would be greatly appreciated! So this is my setting is like these, --id=1015sip:1015@112.80.5.159:9002 --registrar=sip:112.80.5.159:9002;transport=tcp The sever address 112.80.5.159:9002 is correctly converted to64:ff9b::7050:59f:9002 from the log. ..TCP transport 2001:2::aab1:7c97:fd31:61c8:e3ee:52557 is connecting to 64:ff9b::7050:59f:9002... ..Contact for acc 2 updated for SIP outbound: "1015" sip:1015@[2001:2::aab1:7c97:fd31:61c8:e3ee]:52557;transport=TCP;ob;reg-id=1;+sip.instance="urn:uuid:00000000-0000-0000-0000-0000fa3fc436" Original Message Sender:qiulangqiulang@emicnet.com Recipient:pjsip listpjsip@lists.pjsip.org Date:Wednesday, Aug 3, 2016 18:21 Subject:Re: [pjsip] PJSIP version 2.5.5 is released with IPv6 support in PJNATH, DNS,and hostname resolution Hi, I forgot to mention that I had set "—ipv6” and copy/paste the code from sample. But I still got the 503 error. What else I need to do ? Thanks Qiulang /* Add TCP IPv6 transport unless it's disabled. */ if (!app_config.no_tcp app_config.ipv6) { … } Original Message Sender:qiulangqiulang@emicnet.com Recipient:pjsip listpjsip@lists.pjsip.org Date:Wednesday, Aug 3, 2016 17:13 Subject:Re: [pjsip] PJSIP version 2.5.5 is released with IPv6 support in PJNATH, DNS,and hostname resolution Hi I have used 2.5.5 in my sip client. The client is using to IPv6 and tries to connect to IPv4 sip server. I got error like16:42:27.679 tsx0x155b586a8 ..Failed to send Request msg REGISTER/cseq=6514 (tdta0x155b57600)! err=120051 (Network is unreachable) So how do I fix it? Thanks, Qiulang Original Message Sender:Mingming@teluu.com Recipient:pjsip listpjsip@lists.pjsip.org Date:Thursday, Jul 21, 2016 15:47 Subject:[pjsip] PJSIP version 2.5.5 is released with IPv6 support in PJNATH, DNS,and hostname resolution Hi all, PJSIP version 2.5.5 is just released with the main focus on: - IPv6 support in PJNATH - IPv6 support in PJLIB-UTIL DNS SRV and DNS AAAA resolution, and - IPv6 support for hostname resolution (with and without nameserver) in PJSIP and PJSUA-LIB As usual the release also includes several enhancements and bug fixes, please see the Release Notes page for more info and grab the source code from the Download page. Best regards, PJSIP team _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org