[asterisk-dev] Escaping of # in URI?

Mikael Magnusson mikaelmagnusson at glocalnet.net
Tue Jan 24 08:17:25 MST 2006


Daniel Pocock wrote:
> 
> I've just been experimenting with reSIProcate and noticed that it 
> escapes the # symbol in URIs (writing it as %23), while Asterisk sends 
> it un-escaped.
> 
> Meanwhile, according to RFC 2396, section 2.4.3, `#' shouldn't be used 
> in a URI at all.  Obviously this raises issues in a telecoms 
> environment, with `#' being present on almost every telephone keypad.
> 
> Can anyone suggest what is the correct behaviour - escaped or un-escaped 
> - and has this issue been discussed already in this or any other forums?
> 
> I've already discovered that by sending calls to a carrier's Nextone 
> gateway with the escaped URI, the `#' is not recognised and consequently 
> the calls are rejected.
> 

I think '#' must be escaped since it isn't listed in user-unreserved or
unreserved in RFC 3261.

/Mikael



More information about the asterisk-dev mailing list