unable to access the script variable in the route block

On Sat, 23 Mar 2024 at 15:39, Prathibha B <[email protected]> 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
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to