I don't use simpleua for long time, so it was a bit rusty. Sorry. The routeset setting should have been done after the call to pjsip_inv_create_uac(). The problem was when pjsip_dlg_set_route_set() returns, the dialog have been destroyed since there is no session attached to it yet. Also the 100rel module needs to be initialized, otherwise we'll get assertion when creating the invite session. I've fixed these in the SVN version. thanks, -benny Raquie Rawq wrote: > 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