[SR-Users] PVs in Regular Expression Transformations

Juha Heinanen jh at tutpro.com
Tue Apr 20 17:21:07 CEST 2010


Daniel-Constantin Mierla writes:

 > I just committed s.strip and s.striptail transformations:
 > http://sip-router.org/wiki/cookbooks/transformations/devel#sstrip_len
 > 
 > Testing and feedback is appreciated.

daniel,

i got core dump.  most like from this statement:

$rU = $(var(unescaped_user){s.strip,4});

-- juha

Program terminated with signal 11, Segmentation fault.
#0  pv_set_ruri_user (msg=0x8449dd0, param=0x82e5528, op=254, val=0xbfc03590)
    at pv_core.c:1740
1740		val->rs.s[val->rs.len] = '\0';
(gdb) where
#0  pv_set_ruri_user (msg=0x8449dd0, param=0x82e5528, op=254, val=0xbfc03590)
    at pv_core.c:1740
#1  0x0808370a in lval_pvar_assign (h=0xbfc04a68, msg=0x8449dd0, lv=0x82e5518, rve=0x82e5630)
    at lvalue.c:353
#2  lval_assign (h=0xbfc04a68, msg=0x8449dd0, lv=0x82e5518, rve=0x82e5630) at lvalue.c:400
#3  0x08058e08 in do_action (h=0xbfc04a68, a=0x82e59c0, msg=0x8449dd0) at action.c:1253
#4  0x0805cb90 in run_actions (h=0xbfc04a68, a=0x82e59c0, msg=0x8449dd0) at action.c:1336
#5  0x08059e16 in do_action (h=0xbfc04a68, a=0x82e5fe0, msg=0x8449dd0) at action.c:892
#6  0x0805cb90 in run_actions (h=0xbfc04a68, a=0x82e4e68, msg=0x8449dd0) at action.c:1336
#7  0x0805a066 in do_action (h=0xbfc04a68, a=0x82c4d90, msg=0x8449dd0) at action.c:522
#8  0x0805cb90 in run_actions (h=0xbfc04a68, a=0x82c4c88, msg=0x8449dd0) at action.c:1336
#9  0x08059e16 in do_action (h=0xbfc04a68, a=0x82c9c20, msg=0x8449dd0) at action.c:892
#10 0x0805cb90 in run_actions (h=0xbfc04a68, a=0x82c9c20, msg=0x8449dd0) at action.c:1336
#11 0x08059e16 in do_action (h=0xbfc04a68, a=0x82c9ca0, msg=0x8449dd0) at action.c:892
#12 0x0805cb90 in run_actions (h=0xbfc04a68, a=0x82c3dd8, msg=0x8449dd0) at action.c:1336
#13 0x08059e16 in do_action (h=0xbfc04a68, a=0x82c9ea8, msg=0x8449dd0) at action.c:892
#14 0x0805cb90 in run_actions (h=0xbfc04a68, a=0x82c3728, msg=0x8449dd0) at action.c:1336
#15 0x0805a066 in do_action (h=0xbfc04a68, a=0x82925c0, msg=0x8449dd0) at action.c:522
#16 0x0805cb90 in run_actions (h=0xbfc04a68, a=0x8248820, msg=0x8449dd0) at action.c:1336
#17 0x0805a066 in do_action (h=0xbfc04a68, a=0x82468e8, msg=0x8449dd0) at action.c:522
#18 0x0805cb90 in run_actions (h=0xbfc04a68, a=0x8241eb8, msg=0x8449dd0) at action.c:1336
#19 0x0805cef4 in run_top_route (a=0x8241eb8, msg=0x8449dd0, c=0x0) at action.c:1384
#20 0x080a6c85 in receive_msg (
    buf=0x82178a0 "INVITE sip:*31%23 at test.fi SIP/2.0\r\nVia: SIP/2.0/UDP 192.98.102.10:5074;rport;branch=z9hG4bKhjemnplb\r\nMax-Forwards: 69\r\nProxy-Authorization: Digest username=\"test\",realm=\"test.fi\",nonce=\"4bcdc5a0000000"..., len=1047, rcv_info=0xbfc04c68)
    at receive.c:204
#21 0x0811546e in udp_rcv_loop () at udp_server.c:527
#22 0x08088028 in main_loop () at main.c:1455
#23 0x08089c67 in main (argc=15, argv=0xbfc04ec4) at main.c:2259




More information about the sr-users mailing list