ipv6 problems with pjproject 1.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Benny!

Benny Prijono schrieb:
> On Fri, Jun 26, 2009 at 12:44 PM, Klaus Darilion 
> <klaus.mailinglists at pernau.at <mailto:klaus.mailinglists at pernau.at>> wrote:
> 
>     Hi!
> 
>     I experienced that pjsua-API and with IPv6 as transport does only
>     work if I specify an outbound proxy with IP address. No outbound
>     proxy or outbound proxy with domain (instead of IP) does not work.
> 
>     I also had the same problems when using the pjsua client.
> 
>     Is this a known issue or am I doing something wrong?
> 
>     The error in pjsua:
>      13:40:56.406   pjsua_core.c  SIP UDP socket reachable at ::1:5060
>      13:40:56.406  udpv600D29340  SIP UDP IPv6 transport started,
>     published address is [::1]:5060
>      13:40:56.406    pjsua_acc.c  Account <sip:[::1]:5060> added with id 0
>      13:40:56.406    pjsua_acc.c  Account
>     sip:klaus.darilion@[sip.labs.nic.at <http://sip.labs.nic.at>] added
>     with id 1
>      13:40:56.406    pjsua_acc.c  Unable to generate suitable Contact
>     header for registration: Unsupported transport
>     (PJSIP_EUNSUPTRANSPORT) [status=171060]
>      13:40:56.406    pjsua_acc.c  Unable to create registration:
>     Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060]
> 
> 
> I tried this and it seems to work:
> 
>  $ pjsua --ipv6 --id sip:user at test.lab --registrar sip:test.lab --proxy 
> sip:[::1]

You are setting your loopback IP address as outbound proxy? Is this a 
generic solution or does this work only if there is really a proxy 
listening on the loopback device?

> But you're right, we don't support IPv6 host resolution, so target URIs 
> must all be IPv6 address or outbound proxy with IPv6 should be used.

Please consider this as a feature request.

>     The error in my application (QjSimple):
>     13:42:18.078  pjsua_media.c  RTCP socket reachable at
>     10.10.0.198:4007 <http://10.10.0.198:4007>
>     13:42:18.078    pjsua_acc.c  Account
>     sip:klaus.darilion at sip.labs.nic.at
>     <mailto:sip%3Aklaus.darilion at sip.labs.nic.at> added with id 0
>     13:42:18.078      sip_reg.c  Invalid Contact URI:
>     "<sip:klaus.darilion@::1:1190>"
>     13:42:18.078    pjsua_acc.c  Client registration initialization
>     error: Invalid URI (PJSIP_EINVALIDURI) [status=171039]
>     13:42:18.078    pjsua_acc.c  Unable to create registration: Invalid
>     URI (PJSIP_EINVALIDURI) [status=171039]
> 
> 
> Are you constructing your Contact URI yourself? It lacks the square bracket.

No. I only use the pjsua API and everything is done inside pjsualib

regards
klaus



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux