[OpenSER-Users] # characters in URIs getting reformatted.

Iñaki Baz Castillo ibc at in.ilimit.es
Fri Jan 4 13:37:05 CET 2008


On Friday 04 January 2008 12:30:55 Alex Balashov wrote:
> I am using OpenSER to front some Cisco AS5300s.  The way the trunk groups
> on those are set up, a prefix of #755 is required to dial out, so I
> transform the URI in OpenSER:
>
>    $rU = "#755" + $rU;

Is it legal "#" in a SIP URI???

In fact I don't allow it. I do this test in order to detect illegal 
characteres:

if ( $ru != $(ru{s.escape.common}) || ($rU && $rU != $(rU{s.escape.user})) ) {
 		sl_send_reply("403", "Forbidden, illegal characters in RURI");
 		exit;
}

And when a # is present in the URI the condition is not matched so the message 
is forbidden.

Anyway I've not verified if "#" is an illegal character according to some RFC.


-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the sr-users mailing list