Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

IPv6 Connectivity #54

Open
markdesouza opened this issue May 13, 2022 · 1 comment
Open

IPv6 Connectivity #54

markdesouza opened this issue May 13, 2022 · 1 comment

Comments

@markdesouza
Copy link

markdesouza commented May 13, 2022

Hi,
I have compiled Vialer-pjsip-iOS and pjsip with "--enable-ipv6" and can see the resultant framework file config_site.h has "#define PJ_HAS_IPV6 1", however when I attempt to connect to from an ipv6 network, registration fails. Connecting via wifi on a ipv4 network works perfectly fine. Using pjsip v2.12 and Vialer-pjsip-ios develop branch, ios 15.4.1

The follow debug output is produced:
13:38:54.560 pjsua_acc.c Adding account: id=Mark sip:[email protected]:5062
13:38:54.561 pjsua_acc.c .Account Mark sip:[email protected]:5062 added with id 0
13:38:54.561 pjsua_acc.c .Acc 0: setting registration..
13:38:54.561 sip_transport.c ..Warning: unable to determine local interface, fallback to default interface!: Network is unreachable
13:38:54.562 pjsua_acc.c ..Contact for acc 0 updated: "Matthew" sip:[email protected]:55573;ob;unique-device-token-id=XXXXXXXXX
13:38:54.562 endpoint ..Request msg REGISTER/cseq=43349 (tdta0x1070114a8) created.
13:38:54.562 sip_transport.c ..Warning: unable to determine local interface, fallback to default interface!: Network is unreachable
13:38:54.562 tsx0x1070134a8 ...Transaction created for Request msg REGISTER/cseq=43350 (tdta0x1070114a8)
13:38:54.562 tsx0x1070134a8 ..Sending Request msg REGISTER/cseq=43350 (tdta0x1070114a8) in state Null
13:38:54.562 sip_resolve.c ...Target 'x.x.x.x:5062' type=TLS resolved to 'x.x.x.x:5062' type=TLS (TLS transport)
13:38:54.562 tlsc0x107017a28 ...TLS client transport created
13:38:54.569 tlsc0x107017a28 ...TLS transport destroyed with reason 120051: Network is unreachable
13:38:54.569 tsx0x1070134a8 ...Failed to send Request msg REGISTER/cseq=43350 (tdta0x1070114a8)! err=120051 (Network is unreachable)
13:38:54.569 tsx0x1070134a8 ...State changed from Null to Terminated, event=TRANSPORT_ERROR
13:38:54.569 pjsua_acc.c .....SIP registration failed, status=503 (Network is unreachable)
13:38:54.569 pjsua_acc.c .....Scheduling re-registration retry for acc 0 in 4 seconds..
13:38:54.570 sip_reg.c ..Error sending request: Network is unreachable

Many thanks,
Mark

@TranHoaiHung
Copy link

@markdesouza this you solve this problem ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants