while testing alias_contact() function, i tried to steel some code from
nathelper add_rcv_param() function, but noticed that it adds illegal
chars to contact uri when it encloses the param in quotes ("):
param[RECEIVED_LEN] = '\"';
memcpy(param + RECEIVED_LEN + 1, uri.s, uri.len);
param[RECEIVED_LEN + 1 + uri.len] = '\"';
i found out when twinkle complained about parse error in contact uri. i
then went and checked from rfc3261 and twinkle is correct:
uri-parameter = transport-param / user-param / method-param
/ ttl-param / maddr-param / lr-param / other-param
other-param = pname [ "=" pvalue ]
pvalue= 1*paramchar
paramchar = param-unreserved / unreserved / escaped
param-unreserved = [" / "]" / "/" / ":" / "&" / "+" / "$"
" is not listed in unreserved either. i don't know if anyone is
using that function. if not, better remove it or fix it.
-- juha
Hi!
I have followings problems with sr_3.0 branch (4.11.2009)
remove_hf("") does not work. Header fields (I tried various ones) are
not removed.
record_route(): I call record_route() but the RR header is not added. I
tried both, K's and ser's rr module - both do not work.
Any hints how to debug this?
thanks
klaus
Bugs item #2892560, was opened at 2009-11-05 14:18
Message generated for change (Comment added) made by miconda
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2892560&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver 1.4.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alex Hermann (axlh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Inconsistent $rP contents
Initial Comment:
The $rP (request-uri's transport) is broken. When $ru is set with a ";transport=XXX" parameter, the contents of $rP show the entire parameter instead of its parsed value.
The following config snippet:
$ru = 'sip:123@invalid';
TRACE("Transport=[$rP]");
$ru = 'sip:123@invalid;transport=udp';
TRACE("Transport=[$rP]");
$ru = 'sip:123@invalid;transport=tcp';
TRACE("Transport=[$rP]");
creates the following log:
Nov 5 13:14:26 Transport=[UDP]
Nov 5 13:14:26 Transport=[transport=udp]
Nov 5 13:14:26 Transport=[transport=tcp]
Expected would be:
Nov 5 13:14:26 Transport=[UDP]
Nov 5 13:14:26 Transport=[UDP]
Nov 5 13:14:26 Transport=[TCP]
----------------------------------------------------------------------
>Comment By: Daniel-Constantin Mierla (miconda)
Date: 2009-11-06 15:01
Message:
Should be fixed on 1.4, 1.5 and 3.0 (git), please test and let me know if
is ok. Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2892560&group_…