Take a look at RFC-3261 starting about page 219. The hash mark / pound
sign (#) is no where to be found.
It appears that a percent sign (%) is used to escape hex digits.
Regards,
Norm
Iñaki Baz Castillo wrote:
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.