[SR-Users] Share variable into reply route.

: Paolo Visintin - Time-Net S.r.l. paolo.visintin at timenet.it
Mon Sep 9 22:53:03 CEST 2019


Hello !
$var is per worker and not shared among workers

I think you can use $avp or $dlg_var !


Cheers

Paolo

Il giorno lun 9 set 2019 alle 22:44 Zhan Bazarov <chiefkeeft at gmail.com> ha
scritto:

> 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));
> }
>
> 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... But its unsecure way, cuz it may confus our bussines
> logic...
>
> Do you have any idea how to implement this?
> Many thanks!
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Paolo Visintin
Direttore Tecnico
[image: timenet]
Timenet: 0571 1738000

assistenza tecnica: assistenza at timenet.it
ufficio commerciale: sales at timenet.it
ufficio amministrativo: contabilita at timenet.it

[image: sito timenet] <http://timenet.it/email/redirect1.php> [image:
linkedin timenet] <http://timenet.it/email/redirect2.php> [image: twitter
timenet] <http://timenet.it/email/redirect3.php> [image: facebook timenet]
<http://timenet.it/email/redirect4.php> [image: FT1000 timenet]
<http://timenet.it/email/redirect5.php>
<http://timenet.it/email/redirect.php>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190909/71707b22/attachment.html>


More information about the sr-users mailing list