[pjsip] simpleua sample application using proxy get SEGV

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

 



Hello, there

I just trying to execute pjsip sample application "simpleua".
<pjproject-0.7.0>/pjsip-apps/src/samples/simpleua.c
<pjproject-0.7..0>/pjsip-apps/bin/samples/simpleua

I can compile and execute this application normally.
Next, I want to use proxy server. So, I uncommented proxy settings and modify like below:

<pjproject-0.7.0>/pjsip-apps/src/samples/simpleua.c:344

        {
        pjsip_route_hdr route_set;
        pjsip_route_hdr *route;
        const pj_str_t hname = { "Route", 5 };
        char *uri = "sip:192.168.100.2;lr";


        pj_list_init(&route_set);

        route = pjsip_parse_hdr( dlg->pool, &hname, 
                     uri, strlen(uri),
                     NULL);
        PJ_ASSERT_RETURN(route != NULL, 1);
        pj_list_push_back(&route_set, route);

        pjsip_dlg_set_route_set(dlg, &route_set);
        }


It outputs gives me a segmentation fault.

[foo at bar simpleua]$ ./simpleua sip:hogehoge at 192.168.100.4
 16:25:18.631 os_core_unix.c pjlib 0.7.0 for POSIX initialized
 16:25:18.631 sip_endpoint.c Creating endpoint instance...
 16:25:18.633          pjlib select() I/O Queue created (0x98131fc)
 16:25:18.633 sip_endpoint.c Module "mod-msg-print" registered
 16:25:18.633 sip_transport. Transport manager created..
 16:25:18.634   udp0x982777c SIP UDP transport started, published address is 192.168.100.3:5060
 16:25:18.635 sip_endpoint.c Module "mod-tsx-layer" registered
 16:25:18.642 sip_endpoint.c Module "mod-stateful-util" registered
 16:25:18.642 sip_endpoint.c Module "mod-ua" registered
 16:25:18.642 sip_endpoint.c Module "mod-invite" registered
 16:25:18.642 sip_endpoint.c Module "mod-simpleua" registered
 16:25:18.736      pasound.c PortAudio sound library initialized, status=0
 16:25:18.736      pasound..c PortAudio host api count=2
 16:25:18.736      pasound.c Sound device count=9
 16:25:18.736          pjlib select() I/O Queue created (0x98653ec)
 16:25:18.737   dlg0x987e0c4 UAC dialog created
 16:25:18.737   dlg0x987e0c4 Dialog destroyed
Segmentation fault

Maybe it's a error of mutex, but I cannot modify this.
Waiting for an answer, thanks in advance

Regards,
Raqquie

---------------
raqquie at yahoo.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20071030/a736e719/attachment.html 


[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