<div dir="ltr">Hi.<div>According to docs no variables are possible here.</div><div>As workaround</div><div><span style="font-size:12.8px">if ($var(nat_fix) == 11){</span><br></div><div><span style="font-size:12.8px">     </span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">fix_nated_sdp("11");</span></div><div><span style="font-size:12.8px">}</span></div><div><span style="font-size:12.8px">else if ....</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-11-14 19:04 GMT+03:00 Duarte Rocha <span dir="ltr"><<a href="mailto:duarterocha91@gmail.com" target="_blank">duarterocha91@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Greetings,<div><br></div><div>Is there a way to use the NATHELPER functions with a variable insted of a string with the value ?</div><div><br></div><div>For example, I can do "fix_nated_sdp("11");" but Kamailio throws an error if i use </div><div>"fix_nated_sdp("$(var(nat_fix)<wbr>");" or any other variations. <br><div><br></div><div>How should i proceed to be able to do this ? </div><div><br></div><div>Thanks</div><div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Savolainen Dmitri</div></div></div></div></div>
</div>