2009/1/12 Johansson Olle E <oej(a)edvina.net>et>:
I already
explained that # is not allowed in a SIP URI (also in the
SIP Request URI, of course).
On the other side, the answer is "Yes, of course, provided that your
SIP
equipment follows the standard and encodes the # character. You are allowed
to dial that character, but any SIP-compliant device (useragent) is not
allowed
to transfer it verbatim in a SIP uri, but has to encode it - much like many
international characters in a HTTP uri.
Yeah, but in Kamailio you must decode it using some "undecode"
transformation. Kamailio itself doesn't undecode it by default and
treats %23 hexedecimal code as 3 normal ASCII chars: '%', '2',
'3'.
By some reason, the '#' is used a lot in telecom/mobile operators dialed
extensions (e.g., charging credit on mobile phone), not sure why is not
allowed in SIP.
That is the reason kamailio (openser) does accept '#' in the username.
If you want to be strict compliant to SIP-RFC then you have to use the
transformations. Not sure what would be the best to make default for the
future ....
Cheers,
Daniel
--
Daniel-Constantin Mierla