[SR-Users] #!define and #!subst problem

Daniel-Constantin Mierla miconda at gmail.com
Wed Mar 9 01:08:04 CET 2011


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.

Cheers,
Daniel

On Tue, Mar 8, 2011 at 1:13 PM, Klaus Darilion <klaus.mailinglists at pernau.at
> wrote:

> Hi!
>
> I tried
>
> #!subst "/IPADDRESS_VIRTUAL/83.136.32.161/"
> listen=udp:IPADDRESS_VIRTUAL:5060
>
> and
>
> #!define IPADDRESS_VIRTUAL 83.136.32.161
> listen=udp:IPADDRESS_VIRTUAL:5060
>
> Both do not work - am I doing something wrong or is this a known
> limitation with "listen" statements?
>
> Thanks
> Klaus
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
Daniel-Constantin Mierla
  http://www.asipto.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110309/ebfcf127/attachment.htm>


More information about the sr-users mailing list