简体   繁体   中英

pjsip 2.5.5 with IPV6 support in iOS app

I am using pjsip 2.5.5 with my iOS application. While running app in only IPV6 enabled network, sip registration is not working. but if I run the same code for IPV4 enabled network, It works for sip registration. I am not getting where is the things are missing or how can we get description for exact issue? Is there any flag or any other support we need to add to use the library for the network IPV4 and IPV6? Any clue will be very helpful to me.

AFAIK pjsip does not support dual stack IPv4/IPv6. You need to create separate transports for IPv4 and IPv6.

I have same problem with my iOS applicatoin before. below are the my steps.

1)I recompile pjsip library to support ipv6, add " #define PJ_HAS_IPV6" to config.h. The detail info you can refer to https://trac.pjsip.org/repos/wiki/IPv6#IPv6Supportinpjlib .

2)The ipv4 address change to domain. May be need to change some config, this is backend developers config, so I don't know the detail info.

3)Create ipv6 transport and Adding SIP Account. the detail code follw https://trac.pjsip.org/repos/wiki/IPv6#IPv6Supportinpjlib .

If all is normal, you can register now. But can't make call.

I fixed ipv6 make call refer to https://github.com/johanlantz/pj-nat64 . I put the code pj-nat64() to my project and config.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM