[OpenSIPS-Users] Doubt about s.escape.param

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Nov 25 11:38:54 CET 2008


Hi Iñaki,

The escape_param() function looks only for standard ASCII chars and 
report as error the extended ASCII chars (like ñ )...

So the question is if the RFC3261 allows extended ascii chars in the URI.

Regards,
Bogdan


Iñaki Baz Castillo wrote:
> Hi, theorically:
>
>   1.12 {s.escape.param}
>     Return escaped string of variable's value, changing to '%hexa' the
>     characters that are not allowed in the param part of SIP URI following RFC
>     requirements.
>
> But in the script I do:
>   $(rU{s.escape.param})
>
> and when sending a request with Request URI username = "iñaki", then I get 
> this error:
>
>   ------
>   ERROR:core:escape_param: invalid escaped character <4294967235>
>   ------
>
> Well, I expected that "ñ" was be converted to '%hexa', ¿?
>
>   




More information about the Users mailing list