Potential Bug in Ticket 2032 "NAT64 support for IPv4 interoperability" - 2.7 Release

IK
Imad Khazali
Tue, Jul 3, 2018 3:05 AM

Hi,

I am using PJSIP in an IPV6 only network and noticed that ICE is not using STUN candidates (Only host and relay). After looking at the code I noticed that the attribute stunTryIpv6 in PJSUA2 Endpoint is not taking effect. The reason is that the method tpPj does not take the value set by the application. I fixed it by adding it the method as shown below:

I added the line :
     pua_cfg.stun_try_ipv6 = this->stunTryIpv6 ;To the method:
     pjsua_config UaConfig::toPj() const

In the File file endpoint.cpp

Note: the variable "stunIgnoreFailure"  needs to be added too.
Thanks,
Imad

Hi, I am using PJSIP in an IPV6 only network and noticed that ICE is not using STUN candidates (Only host and relay). After looking at the code I noticed that the attribute stunTryIpv6 in PJSUA2 Endpoint is not taking effect. The reason is that the method tpPj does not take the value set by the application. I fixed it by adding it the method as shown below: I added the line :      pua_cfg.stun_try_ipv6 = this->stunTryIpv6 ;To the method:      pjsua_config UaConfig::toPj() const In the File file endpoint.cpp Note: the variable "stunIgnoreFailure"  needs to be added too. Thanks, Imad
M
Ming
Tue, Jul 3, 2018 3:24 AM

Hi Imad,

Thanks for the report. I fixed this in r5817
(https://trac.pjsip.org/repos/changeset/5817).

Regards,
Ming

On Tue, Jul 3, 2018 at 4:05 AM, Imad Khazali via pjsip
pjsip@lists.pjsip.org wrote:

Hi,

I am using PJSIP in an IPV6 only network and noticed that ICE is not using
STUN candidates (Only host and relay). After looking at the code I noticed
that the attribute stunTryIpv6 in PJSUA2 Endpoint is not taking effect. The
reason is that the method tpPj does not take the value set by the
application. I fixed it by adding it the method as shown below:

I added the line :
pua_cfg.stun_try_ipv6 = this->stunTryIpv6 ;
To the method:
pjsua_config UaConfig::toPj() const

In the File file endpoint.cpp

Note: the variable "stunIgnoreFailure"  needs to be added too.
Thanks,
Imad


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 Imad, Thanks for the report. I fixed this in r5817 (https://trac.pjsip.org/repos/changeset/5817). Regards, Ming On Tue, Jul 3, 2018 at 4:05 AM, Imad Khazali via pjsip <pjsip@lists.pjsip.org> wrote: > Hi, > > I am using PJSIP in an IPV6 only network and noticed that ICE is not using > STUN candidates (Only host and relay). After looking at the code I noticed > that the attribute stunTryIpv6 in PJSUA2 Endpoint is not taking effect. The > reason is that the method tpPj does not take the value set by the > application. I fixed it by adding it the method as shown below: > > I added the line : > pua_cfg.stun_try_ipv6 = this->stunTryIpv6 ; > To the method: > pjsua_config UaConfig::toPj() const > > In the File file endpoint.cpp > > Note: the variable "stunIgnoreFailure" needs to be added too. > Thanks, > Imad > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >