[SR-Users] #!define and #!subst problem
Klaus Darilion
klaus.mailinglists at pernau.at
Wed Mar 9 03:54:22 CET 2011
Daniel-Constantin Mierla wrote:
> Hello,
>
> subst is replacing inside the sintring values, those being in between
> quotes, like:
>
> #subst "/404/408/"
>
> sl_send_reply("404", "Timeout")
>
> The define is replacing ID tokes, which are alpha-numeric tokens stand
> alone.
>
> In your case, you try to replace inside a composite value, and the ip
> address is not a stand alone token there - not sure if it supports, but
> you try putting the value in between quotes. If does not work, then you
> have to break down the listen value in listen with ip and then port
> separately.
OK. So if I want to replace a pattern everywhere, inside strings and ID
tokens, I have to use both (subst and define)?
I will try it,
Klaus
More information about the sr-users
mailing list