[SR-Users] How to use $var as arguments to module functions

Dmitri Savolainen savolainen at erinaco.ru
Thu Nov 16 15:25:59 CET 2017


Hi.
According to docs no variables are possible here.
As workaround
if ($var(nat_fix) == 11){
      fix_nated_sdp("11");
}
else if ....

2017-11-14 19:04 GMT+03:00 Duarte Rocha <duarterocha91 at gmail.com>:

> Greetings,
>
> Is there a way to use the NATHELPER functions with a variable insted of a
> string with the value ?
>
> For example, I can do "fix_nated_sdp("11");" but Kamailio throws an error
> if i use
> "fix_nated_sdp("$(var(nat_fix)");" or any other variations.
>
> How should i proceed to be able to do this ?
>
> Thanks
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Savolainen Dmitri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171116/abc1ba18/attachment.html>


More information about the sr-users mailing list