[SR-Users] ds_is_from_list doesn't accept groupid from a variable?

Yuriy Gorlichenko ovoshlook at gmail.com
Fri Feb 14 16:12:25 CET 2020


You have to Put variable in  "" as I remember. This is usual rool for all
function calling in a config file.

On Fri, 14 Feb 2020, 14:54 Björn Bylander, <Bjorn.Bylander at loxysoft.com>
wrote:

> Hi,
>
> According to
> https://kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatcher.f.ds_is_from_list,
> ds_is_from_list should accept an integer variable for the group id
> parameter. The following simple example doesn¹t work however:
>
>         $var(foo) = 5;
>         ds_is_from_list($var(foo));
>
> Kamailio logs ³function ds_is_from_list: parameter 1 is not constant². Is
> this a bug or have I misinterpreted the documentation somehow?
>
> Thanks in advance,
> Björn Bylander
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200214/31a8bf4f/attachment.html>


More information about the sr-users mailing list