Hello Zhan,
why is using a $avp not working for you? This should be fine as long as you are staying in one transaction context.
Another alternative would be to use a $dlg_var - this is a dialog context variable.
Cheers,
Henning
Am 12.09.19 um 18:23 schrieb Zhan Bazarov: Hello, we ran into a trouble with sharing variable into reply route...
We are going to match asterisk's uniqueid with rtpengine records like this:
route[from_asterisk]{ $var(UniqueId)=$hdr(X-UniqueId); $var(rtp_flags) = $var(rtp_flags) + " label={uid:$var(UniqueId),stream:outgoing} record-call=on";
rtpengine_manage($var(rtp_flags)); }
it nicely work for outgoing request, but doesn't for reply....
reply_route[from_pstn]{ rtpengine_manage("replace-origin replace-session-connection ICE=remove RTP/AVP rtcp-mux-demux label={uid:$var(UniqueId),stream:outgoing"); } 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...
Do you have any idea how to implement this, how we can assign $shv within current call only? Many thanks!
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://skalatan.de/services