pjsip_parse_uri returns NULL

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

 



It works here with:

 $  ./pjsua-x86_64-unknown-linux-gnu --id 'user1<sip:user1 at 192.168.0.100>'

And as I said in that reply of the message that you quoted, I also
tried the exact code and it worked. And if you follow the discussion
after that, the problem is with the translation from .NET to pjsip.

It will help if you could post a simple but complete code to reproduce
this problem so that we can try it out.

Best regards,
?Benny




On Thu, Jul 29, 2010 at 3:13 PM, Vinod Parameswaran
<vinodp at infoscience.otago.ac.nz> wrote:
> 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
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>



[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