<div dir="ltr">unable to access the script variable in the route block<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 23 Mar 2024 at 15:39, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com">prathibhab.tvm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> if ( !create_dialog("B") ) {<br> send_reply(500,"Internal Server Error");<br> exit;<br> }<br> else<br> dlg_on_answer("dlg_answered");<br><br></div><div><br></div>route[dlg_answered] {<br> $var(payload) = "{'type':'ANSWERED', 'from':" + $fU +", 'to':" + $tU+ "}";<br><div>}</div><div><b>Result:</b></div><div>{'type':'ANSWERED', 'from':<b>from</b>, 'to'<b>:to</b>}<br></div><div><br></div><div>$fU - from URI</div><div>$tU - to URI</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,</div><div>B.Prathibha<br></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,</div><div>B.Prathibha<br></div></div></div>