[OpenSIPS-Users] variables not working as expected

Prathibha B prathibhab.tvm at gmail.com
Sat Mar 23 10:09:11 UTC 2024


 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240323/83f4b5df/attachment.html>


More information about the Users mailing list