<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello Zhan,</p>
<p>why is using a $avp not working for you? This should be fine as long as you are staying in one transaction context.
<br>
</p>
<p>Another alternative would be to use a $dlg_var - this is a dialog context variable.</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 12.09.19 um 18:23 schrieb Zhan Bazarov:<br>
</div>
<blockquote type="cite" cite="mid:CAPOwP9w_1jmXKkTeSuenk=utf5m36bcjY7XByTw2LFcRWaowtA@mail.gmail.com">
<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-UniqueId);<br>
$var(rtp_flags) = $var(rtp_flags) + " label={uid:$var(UniqueId),stream:outgoing} record-call=on";<br>
<br>
 rtpengine_manage($var(rtp_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-origin replace-session-connection ICE=remove RTP/AVP rtcp-mux-demux label={uid:$var(UniqueId),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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a></pre>
</body>
</html>