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

IPV6 issues #22

Open
imakou opened this issue Jan 8, 2018 · 8 comments
Open

IPV6 issues #22

imakou opened this issue Jan 8, 2018 · 8 comments

Comments

@imakou
Copy link

imakou commented Jan 8, 2018

Hi all,
A Bad Gateway error message comes up when my device in IPV6 environment connects to my SIP server but everything works fine in the IPV4 environment.

I've struggled for many days. Can anyone give some advice?

Thanks.

@redmerloen
Copy link
Contributor

redmerloen commented Jan 10, 2018

Hi,
To see if the library works with IPV6 is not yet made.
This needs to be done to add ipv6
https://trac.pjsip.org/repos/ticket/415

@redmerloen redmerloen self-assigned this Jan 10, 2018
@imakou
Copy link
Author

imakou commented Jan 10, 2018

Hi,

First of all, I very appreciate your replying.
In addition, I also found a ref.
How can I follow the steps and modify the settings in this lib(Vialer-pjsip-iOS).

Thanks.

@redmerloen
Copy link
Contributor

I’m testing abuild configuration for ip V6. But not entirly how i can test it with a call

@imakou
Copy link
Author

imakou commented Jan 10, 2018

There is the log that I got.

13:37:50.184    pjsua_acc.c  Adding account: id=allen <sip:[email protected]>
13:37:50.185    pjsua_acc.c  .Account allen <sip:[email protected]> added with id 0
13:37:50.185    pjsua_acc.c  .Acc 0: setting registration..
13:37:50.185 sip_transport.  ..Warning: unable to determine local interface, fallback to default interface!
13:37:50.185       endpoint  ..Request msg REGISTER/cseq=40591 (tdta0x134821200) created.
13:37:50.186 sip_transport.  ..Warning: unable to determine local interface, fallback to default interface!
13:37:50.186 tsx0x1348026a8  ...Transaction created for Request msg REGISTER/cseq=40592 (tdta0x134821200)
13:37:50.186 tsx0x1348026a8  ..Sending Request msg REGISTER/cseq=40592 (tdta0x134821200) in state Null
13:37:50.186  sip_resolve.c  ...DNS resolver not available, target 'sip.myserver.com:0' type=TCP will be resolved with getaddrinfo()
13:37:50.189  sip_resolve.c  ...Failed to resolve 'sip.myserver.com'. Err=70018 (gethostbyname() has returned error (PJ_ERESOLVE))
13:37:50.189 tsx0x1348026a8  ...Failed to send Request msg REGISTER/cseq=40592 (tdta0x134821200)! err=70018 (gethostbyname() has returned error (PJ_ERESOLVE))
13:37:50.189 tsx0x1348026a8  ...State changed from Null to Terminated, event=TRANSPORT_ERROR
13:37:50.189    pjsua_acc.c  .....SIP registration failed, status=502 (gethostbyname() has returned error (PJ_ERESOLVE))
13:37:50.189    pjsua_acc.c  .....Scheduling re-registration retry for acc 0 in 0 seconds..
13:37:50.189      sip_reg.c  ..Error sending request, status=70018
13:37:50.189    pjsua_acc.c  ..Unable to create/send REGISTER: gethostbyname() has returned error (PJ_ERESOLVE) [status=70018]
13:37:50.199 tsx0x1348026a8 !Timeout timer event
13:37:50.199 tsx0x1348026a8  .State changed from Terminated to Destroyed, event=TIMER
13:37:50.199 tdta0x13482120  ..Destroying txdata Request msg REGISTER/cseq=40592 (tdta0x134821200)
13:37:50.199 tsx0x1348026a8  Transaction destroyed!
13:37:50.957    pjsua_acc.c  Acc 0: setting registration..
13:37:50.958 sip_transport.  .Warning: unable to determine local interface, fallback to default interface!
13:37:50.959       endpoint  .Request msg REGISTER/cseq=58356 (tdta0x13682bc00) created.
13:37:50.959 sip_transport.  .Warning: unable to determine local interface, fallback to default interface!
13:37:50.959 tsx0x1368288a8  ..Transaction created for Request msg REGISTER/cseq=58357 (tdta0x13682bc00)
13:37:50.960 tsx0x1368288a8  .Sending Request msg REGISTER/cseq=58357 (tdta0x13682bc00) in state Null
13:37:50.960  sip_resolve.c  ..DNS resolver not available, target 'sip.myserver.com:0' type=TCP will be resolved with getaddrinfo()
13:37:50.963  sip_resolve.c  ..Failed to resolve 'sip.myserver.com'. Err=70018 (gethostbyname() has returned error (PJ_ERESOLVE))
13:37:50.963 tsx0x1368288a8  ..Failed to send Request msg REGISTER/cseq=58357 (tdta0x13682bc00)! err=70018 (gethostbyname() has returned error (PJ_ERESOLVE))
13:37:50.963 tsx0x1368288a8  ..State changed from Null to Terminated, event=TRANSPORT_ERROR
13:37:50.963    pjsua_acc.c  ....SIP registration failed, status=502 (gethostbyname() has returned error (PJ_ERESOLVE))
13:37:50.963    pjsua_acc.c  ....Scheduling re-registration retry for acc 0 in 292 seconds..
13:37:50.964      sip_reg.c  .Error sending request, status=70018
13:37:50.964    pjsua_acc.c  .Unable to create/send REGISTER: gethostbyname() has returned error (PJ_ERESOLVE) [status=70018]
13:37:50.964    pjsua_acc.c  Scheduling re-registration retry for acc 0 in 300 seconds..
13:37:50.972 tsx0x1368288a8  Timeout timer event
13:37:50.972 tsx0x1368288a8  .State changed from Terminated to Destroyed, event=TIMER
13:37:50.972 tdta0x13682bc0  ..Destroying txdata Request msg REGISTER/cseq=58357 (tdta0x13682bc00)
13:37:50.972 tsx0x1368288a8  Transaction destroyed!

redmerloen pushed a commit that referenced this issue Jan 11, 2018
@redmerloen
Copy link
Contributor

I have created a new build for PJSIP with ip v6 enabled but can't test it because our proxies don't yet fully support it yet

@redmerloen
Copy link
Contributor

I've released 3.3.0 of this library to cocoapods. Could you see when you update the pod that ip v6 works?

@imakou
Copy link
Author

imakou commented Jan 15, 2018

Hi,

Sorry for replying late.
A question,

if enabled PJ_HAS_IPV6 in pj/config_site.h:
by adding
#define PJ_HAS_IPV6 1
How can built/compile VialerPJSIP.framework which is included new settings?

Thanks.

@iosparesh
Copy link

Hey Hi, is there any functions for recording calls?

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

No branches or pull requests

3 participants