[Kamailio-Users] dial the prefix #31# to mask the number

Daniel-Constantin Mierla miconda at gmail.com
Mon Jan 12 21:11:37 CET 2009



On 01/12/2009 06:38 PM, Iñaki Baz Castillo wrote:
> 2009/1/12 Johansson Olle E <oej at edvina.net>:
>
>   
>>> 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
http://www.asipto.com





More information about the Users mailing list