[Kamailio-Devel] How to escape "$" when using it into a string?

Iñaki Baz Castillo ibc at aliax.net
Sun Jan 11 20:26:27 CET 2009


El Domingo, 11 de Enero de 2009, Iñaki Baz Castillo escribió:
> How could I solve it? How could escape a $ when using it in a string
> argument of Kamailio script?

I've also a dirty hack in the code to solve this issue:
If the string contains "ENDLINE" I replace it with "$", so:

  "^ibcENDLINE"

becomes:

  "^ibc$"

It's really a dirty hack, but...

-- 
Iñaki Baz Castillo



More information about the Devel mailing list