Re: [SR-Users] Share variable into reply route.

2019-09-09 Thread Alex Balashov
Hello Zhan, $var()s are ephemeral variables intended for use only in the context of processing a single SIP message. Also, they live in the private memory ("package memory") of a single SIP worker process. Requests (route) and replies (onreply_route) are different kinds of messages, and moreover,

Re: [SR-Users] Share variable into reply route.

2019-09-09 Thread : Paolo Visintin - Time-Net S.r.l.
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 ha scritto: > Hello, > > we ran into a trouble with sharing variable into reply route... > > We are going to match asterisk's uniqueid

[SR-Users] Share variable into reply route.

2019-09-09 Thread 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=o