Take a look here how to enable core dumps: http://www.opensips.org/Documentation/TroubleShooting-Crash Even if it's an ARM, you should be able to get a core dump.
Regards, Ovidiu Sas On Thu, Dec 19, 2013 at 12:14 PM, Samuel Muller <[email protected]> wrote: > Hello, > > I discovered that the function "uac_replace_to" does a segmentation fault. > > Context: > Opensips compiled for ARM system. > The original request URI makes a fork to several users. > When sending to PSTN, I've to rewrite To username because the PSTN > gateway uses it instead of R-URI. > > As I've only 8MB in my system, I can't have anything else than the > debugs in stdout ... and no core can be generated :( > > # config part : > > branch_route[1] { > if (isflagset(FORK)) { > xlog("L_NOTICE",". branch $T_branch_idx to $ru\r\n"); > if (isflagset(TO_PSTN)) { > uac_replace_to("$ru"); > } > } > } > > > # SIP message : > > INVITE sip:[email protected] SIP/2.0 > v: SIP/2.0/UDP 192.168.1.61:3072;branch=z9hG4bK-b44ix110y915;rport > f: "Sam" <sip:[email protected]>;tag=ydsi0kq193 > t: <sip:[email protected]> > i: e825b352f45c-vqxs7wotw2g8 > CSeq: 1 INVITE > Max-Forwards: 42 > m: <sip:[email protected]:3072>;reg-id=1 > User-Agent: snom821/8.7.3.19 > Accept: application/sdp > Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, > PRACK, MESSAGE, INFO, UPDATE > Allow-Events: talk, hold, refer, call-info > Supported: timer, replaces, from-change > Session-Expires: 1800;refresher=uas > Min-SE: 90 > c: application/sdp > l: 289 > > v=0 > ... > a=sendrecv > > # opensips debug logs : > > . branch 0 to sip:[email protected] > [Script Trace][line 340][me][core if] -> (INVITE > e825b352f45c-vqxs7wotw2g8 FU=10933 RU=0663128505) > [Script Trace][line 337][me][module uac_replace_to] -> (INVITE > e825b352f45c-vqxs7wotw2g8 FU=10933 RU=0663128505) > Dec 19 17:59:31 [25206] DBG:uac:replace_uri: uri to replace > [sip:[email protected]] > Dec 19 17:59:31 [25206] DBG:uac:replace_uri: replacement uri is > [sip:[email protected]] > Dec 19 17:59:31 [25206] DBG:uac:replace_uri: encode > is=<AAAAAAl2X1FFV1QbRhspCxAbEh9LWE0GD3Jvd3NlLmNvbQ--> len=48 > Segmentation fault > > > If you know another way to replace $tU ? > > thanks a lot, > > Samuel MULLER > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- VoIP Embedded, Inc. http://www.voipembedded.com _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
