pjsip_parse_uri returns NULL

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

 



Hello list,

Upon running my application built with pjsip (did svn co and svn update), I see the following output on terminal:

19:41:58.913 os_core_unix.c  pjlib 1.6-trunk for POSIX initialized
 19:41:58.922 sip_endpoint.c  Creating endpoint instance...
 19:41:58.922          pjlib  select() I/O Queue created (0x94e00e8)
 19:41:58.922 sip_endpoint.c  Module "mod-msg-print" registered
 19:41:58.922 sip_transport.  Transport manager created.
 19:41:58.923 sip_endpoint.c  Module "mod-pjsua-log" registered
 19:41:58.923 sip_endpoint.c  Module "mod-tsx-layer" registered
 19:41:58.923 sip_endpoint.c  Module "mod-stateful-util" registered
 19:41:58.923 sip_endpoint.c  Module "mod-ua" registered
 19:41:58.923 sip_endpoint.c  Module "mod-100rel" registered
 19:41:58.923 sip_endpoint.c  Module "mod-pjsua" registered
 19:41:58.923 sip_endpoint.c  Module "mod-invite" registered
 19:41:58.994       pa_dev.c  PortAudio sound library initialized, status=0
 19:41:58.994       pa_dev.c  PortAudio host api count=2
 19:41:58.994       pa_dev.c  Sound device count=12
 19:41:58.994          pjlib  select() I/O Queue created (0x950272c)
 19:41:59.034 sip_endpoint.c  Module "mod-evsub" registered
 19:41:59.034 sip_endpoint.c  Module "mod-presence" registered
 19:41:59.034 sip_endpoint.c  Module "mod-mwi" registered
 19:41:59.034 sip_endpoint.c  Module "mod-refer" registered
 19:41:59.034 sip_endpoint.c  Module "mod-pjsua-pres" registered
 19:41:59.034 sip_endpoint.c  Module "mod-pjsua-im" registered
 19:41:59.034 sip_endpoint.c  Module "mod-pjsua-options" registered
 19:41:59.034   pjsua_core.c  1 SIP worker threads created
 19:41:59.034   pjsua_core.c  pjsua version 1.6-trunk for i686-pc-linux-gnu initialized
 19:41:59.035   pjsua_core.c  SIP UDP socket reachable at 192.168.0.100:55110
 19:41:59.035   udp0x9511188  SIP UDP transport started, published address is 192.168.0.100:55110
 19:41:59.035    pjsua_acc.c  Invalid local URI: Invalid URI (PJSIP_EINVALIDURI) [status=171039]
 19:41:59.035    pjsua_acc.c  Error adding account: Invalid URI (PJSIP_EINVALIDURI) [status=171039]

Upon examining the source code, I see that in pjsua_acc.c, PJSIP_PARSE_URI_AS_NAMEADDR is passed to pjsip_parse_uri, and as per the documentation (http://www.pjsip.org/pjsip/docs/html/group__PJSIP__PARSER.htm) , I changed my URI to name-addr. The name-addr string reads as "user1<sip:user1 at 192.168.0.100>". 

Still, I get the same error. Apparently, pjsip_parse_uri() returns NULL.

I found a similar issue reported by another user of pjsip (http://osdir.com/ml/voip.pjsip/2007-10/msg00082.html), but no solutions other than svn update. In my code, I am invoking pjsua_acc_config_default() as suggested by benny in response to the issue reported by the other user.

Can any of the members throw some light?

TIA
Vin



[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