Hello,<div><br></div><div>a clarification first: is it reply_route[...] or onreply_route[...] the name of the block in your config? The first one should not work, that block is not supposed to have a name in between [ ].</div><div><br></div><div>Cheers,<br>Daniel<br><br>On Thursday, September 12, 2019, Zhan Bazarov <<a href="mailto:chiefkeeft@gmail.com">chiefkeeft@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<br>we ran into a trouble with sharing variable into reply route...<br><br>We are going to match asterisk's uniqueid with rtpengine records like this:<br><br>route[from_asterisk]{<br>$var(UniqueId)=$hdr(X-<wbr>UniqueId);<br>$var(rtp_flags) = $var(rtp_flags) + " label={uid:$var(UniqueId),<wbr>stream:outgoing} record-call=on";<br><br> rtpengine_manage($var(rtp_<wbr>flags));<br>}<br><br>it nicely work for outgoing request, but doesn't for reply....<br><br>reply_route[from_pstn]{<br> rtpengine_manage("replace-<wbr>origin replace-session-connection ICE=remove RTP/AVP rtcp-mux-demux label={uid:$var(UniqueId),<wbr>stream:outgoing");<br>}<br>and it doesn't work... The one possible way what we found its using $shv instead of $var/$avp... But its unsecure way, cuz it may confus our bussines logic... <br><br>Do you have any idea how to implement this, how we can assign $shv within current call only? <br>Many thanks! <br></div>
</blockquote></div><br><br>-- <br><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div><div><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></div></div></div></div><br>