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
[EMAIL PROTECTED]

_______________________________________________
Users mailing list
[email protected]
http://lists.openser.org/cgi-bin/mailman/listinfo/users

Reply via email to