IPV6 support for PJSIP - not able to establish call

P
pgrzegorc25@o2.pl
Wed, Apr 4, 2012 5:22 PM

Im working under SUSE OS and eth1 interface has one IPv4 address and IPv6 as well. Unfortunatelly I can not establish pjsip with IPv6, during starting it says:
19:16:30.961 sip_endpoint.c  Module "mod-default-handler" registered
19:16:30.961  pjsua_core.c  Unable to resolve transport bound address: gethostbyname() has returned error (PJ_ERESOLVE) [status=70018]
19:16:30.961  pjsua_core.c  Shutting down, flags=0...
19:16:30.971  pjsua_pres.c  Shutting down presence..
19:16:30.971  pjsua_media.c  Shutting down media..
19:16:31.453      pa_dev.c  PortAudio sound library shutting down..
19:16:32.456  pjsua_core.c  Destroying...

Does anyone can help here? Any thoughts on that?

I added  #define PJ_HAS_IPV6 1 in pj/config_site.h before compilation and compilation finished successfully but  still I have above issue.

I tried the same cmd with IPv4 and there is no problem, cmd with IPv4 (which successfully finish):
./pjsua-i686-pc-linux-gnu --add-codec=gsm --local-port=5060 --bound-addr=182.1.1.11

Cmd with IPv6 which fails:
./pjsua-i686-pc-linux-gnu --add-codec=gsm --local-port=5060 --bound-addr=2701::184:1:1:2

ETH1 ipconfig:
SUSE: /home/PJSIP_IPv6/pjproject-1.12/pjsip-apps/bin # ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 78:E3:B5:CE:B1:7D
inet addr:182.1.1.11  Bcast:184.1.1.255  Mask:255.255.255.0
inet6 addr: 2701::184:1:1:2/64 Scope:Global
inet6 addr: fe80::7ae3:b5ff:fece:b17d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:517 errors:0 dropped:0 overruns:0 frame:0
TX packets:185 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49666 (48.5 Kb)  TX bytes:39818 (38.8 Kb)
Interrupt:19 Memory:f0500000-f0520000

thanks
Pawel

Im working under SUSE OS and eth1 interface has one IPv4 address and IPv6 as well. Unfortunatelly I can not establish pjsip with IPv6, during starting it says: 19:16:30.961 sip_endpoint.c Module "mod-default-handler" registered 19:16:30.961 pjsua_core.c Unable to resolve transport bound address: gethostbyname() has returned error (PJ_ERESOLVE) [status=70018] 19:16:30.961 pjsua_core.c Shutting down, flags=0... 19:16:30.971 pjsua_pres.c Shutting down presence.. 19:16:30.971 pjsua_media.c Shutting down media.. 19:16:31.453 pa_dev.c PortAudio sound library shutting down.. 19:16:32.456 pjsua_core.c Destroying... Does anyone can help here? Any thoughts on that? I added #define PJ_HAS_IPV6 1 in pj/config_site.h before compilation and compilation finished successfully but still I have above issue. I tried the same cmd with IPv4 and there is no problem, cmd with IPv4 (which successfully finish): ./pjsua-i686-pc-linux-gnu --add-codec=gsm --local-port=5060 --bound-addr=182.1.1.11 Cmd with IPv6 which fails: ./pjsua-i686-pc-linux-gnu --add-codec=gsm --local-port=5060 --bound-addr=2701::184:1:1:2 ETH1 ipconfig: SUSE: /home/PJSIP_IPv6/pjproject-1.12/pjsip-apps/bin # ifconfig eth1 eth1 Link encap:Ethernet HWaddr 78:E3:B5:CE:B1:7D inet addr:182.1.1.11 Bcast:184.1.1.255 Mask:255.255.255.0 inet6 addr: 2701::184:1:1:2/64 Scope:Global inet6 addr: fe80::7ae3:b5ff:fece:b17d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:517 errors:0 dropped:0 overruns:0 frame:0 TX packets:185 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:49666 (48.5 Kb) TX bytes:39818 (38.8 Kb) Interrupt:19 Memory:f0500000-f0520000 thanks Pawel