Hi Bastian,
I run a lot of tests against this message, but nothing...
So , first some question? is the param "add_username" enabled? are you using the latest CVS version?
Second, here is a third patch - please send me the results..
BTW - is there any way to speed up this remote debugging ? access to the machine is possible? ...
regards, bogdan
Bastian Schern wrote:
Hi Bogdan,
here is the INVITE message that triggers the error:
--- snip ---
INVITE sip:08003301000@sipbase.de;user=phone SIP/2.0 Via: SIP/2.0/UDP 192.168.10.198:5060;branch=z9hG4bK-arcon5ii9sog;rport From: "Bastian Schern" sip:00045977408@sipbase.de;tag=8q633ozick To: sip:08003301000@sipbase.de;user=phone Call-ID: 3c3c074edaff-jcv2kbkdvtuv@192-168-10-198 CSeq: 2 INVITE Max-Forwards: 69 Contact: sip:00045977408@192.168.10.198:5060;line=udyy8b7h P-Key-Flags: keys="3" User-Agent: snom200-3.56z Accept-Language: en Accept: application/sdp Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO Allow-Events: talk, hold, refer Supported: timer, 100rel, replaces Session-Expires: 3600 Proxy-Authorization: Digest username="00045977408",realm="sipbase.net",nonce="43e49b45a79356873dad46b5f9361160742b100c",uri="sip:08003301000@sipbase.de;user=phone",qop=auth,nc=00000001,cnonce="02d0baeb",response="a531362656079c26b4bf414a5df0d736",algorithm=md5
Content-Type: application/sdp Content-Length: 297
v=0 o=root 1196819338 1196819338 IN IP4 192.168.10.198 s=call c=IN IP4 192.168.10.198 t=0 0 m=audio 10196 RTP/AVP 8 0 3 18 101 a=rtpmap:8 pcma/8000 a=rtpmap:0 pcmu/8000 a=rtpmap:3 gsm/8000 a=rtpmap:18 g729/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 a=sendrecv
--- snap ---
I'm sure that no unprintable characters inside.
Regards Bastian
? modules/rr/.record.c.swp Index: modules/rr/record.c =================================================================== RCS file: /cvsroot/openser/sip-server/modules/rr/record.c,v retrieving revision 1.4 diff -u -r1.4 record.c --- modules/rr/record.c 22 Nov 2005 12:35:30 -0000 1.4 +++ modules/rr/record.c 4 Feb 2006 15:24:10 -0000 @@ -86,6 +86,8 @@ struct sip_uri puri;
/* first try to look at r-uri for a username */ + DBG("**: trying uri <%.*s> len=%d\n", _m->first_line.u.request.uri.len, + _m->first_line.u.request.uri.s, _m->first_line.u.request.uri.len); if (parse_uri(_m->first_line.u.request.uri.s, _m->first_line.u.request.uri.len, &puri) < 0) { LOG(L_ERR, "get_username(): Error while parsing R-URI\n"); return -1; @@ -97,12 +99,15 @@ * was called somewhere in script's beginning) */ if (!puri.user.len && _m->new_uri.s) { + DBG("**: trying uri <%.*s> len=%d\n",_m->new_uri.len, + _m->new_uri.s, _m->new_uri.len); if (parse_uri(_m->new_uri.s, _m->new_uri.len, &puri) < 0) { LOG(L_ERR, "get_username(): Error while parsing new_uri\n"); return -2; } }
+ DBG("**: befor return uri len=%d, s=%p\n",puri.user.len, puri.user.s); _user->s = puri.user.s; _user->len = puri.user.len; return 0; @@ -339,6 +344,7 @@ "extract username\n"); return -1; } + DBG("**: return uri len=%d, s=%p\n",user.len, user.s); }
if (append_fromtag) {