[OpenSIPS-Users] variables not working as expected

Prathibha B prathibhab.tvm at gmail.com
Sat Mar 23 10:50:07 UTC 2024


unable to access the script variable in the route block

On Sat, 23 Mar 2024 at 15:39, Prathibha B <prathibhab.tvm at gmail.com> wrote:

>  if ( !create_dialog("B") ) {
>             send_reply(500,"Internal Server Error");
>             exit;
>         }
>         else
>             dlg_on_answer("dlg_answered");
>
>
> route[dlg_answered] {
>         $var(payload) = "{'type':'ANSWERED', 'from':" + $fU +", 'to':" +
> $tU+ "}";
> }
> *Result:*
> {'type':'ANSWERED', 'from':*from*, 'to'*:to*}
>
> $fU - from URI
> $tU - to URI
>
> --
> Regards,
> B.Prathibha
>


-- 
Regards,
B.Prathibha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240323/da40f1b1/attachment.html>


More information about the Users mailing list