[SR-Users] Using $shv within current call only

Daniel-Constantin Mierla miconda at gmail.com
Fri Sep 13 09:14:16 CEST 2019


Hello,

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 [ ].

Cheers,
Daniel

On Thursday, September 12, 2019, Zhan Bazarov <chiefkeeft at gmail.com> wrote:

> 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!
>


-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190913/4fe8596e/attachment.html>


More information about the sr-users mailing list