[OpenSIPS-Users] Dispatcher - ds_is_in_list problem

Chris Maciejewski chris at wima.co.uk
Wed May 11 22:44:21 CEST 2011


To answer my own question... I missed the fact second argument 'port'
is also mandatory.
Once change to:

  if (ds_is_in_list("$si", "$sp"))
  {
      // do some stuff
  }

All works as expected.

Regards,
Chris

On 11 May 2011 20:46, Chris Maciejewski <chris at wima.co.uk> wrote:
> Hi, I am trying (on OpenSIPs 1.6.2 no tls) to use ds_is_in_list
> function in REQUEST_ROUTE as described in:
>
> http://www.opensips.org/html/docs/modules/1.6.x/dispatcher.html#id293378
>
> dispatcher.so is loaded for sure, as I can use other function from
> this module just fine. But this block:
>
>  if (ds_is_in_list("$si"))
>  {
>      // do some stuff
>  }
>
> throws: "opensips: CRITICAL:core:yyerror: parse error in config file,
> line 133, column 23-24: unknown command <ds_is_in_list>, missing
> loadmodule?" on start up.
>
> Any suggestions why ds_is_in_list function isn't working very much appreciated.
>
> Regards,
> Chris
>



More information about the Users mailing list