Re: [OpenSIPS-Users] rtpengine (setid_avp) issue with BYE and CANCEL

2018-11-20 Thread Mickael Hubert
I have to use local cache to workaround. *In INVITE statement:* $avp(setid) = 1; # group of rtp engine servers / Ex: 1 for FR / 2 for USA if(cache_store("local","$ci","$avp(setid)",1200)) { xlog("L_INFO","$ci -- Cache Store Name: $ci with port: $avp(setid)\n"); *in CANCEL statement:* if(cache_fe

Re: [OpenSIPS-Users] rtpengine (setid_avp) issue with BYE and CANCEL

2018-11-20 Thread Mickael Hubert
OK thanks, I will write something about that ;) I tested your solution, it works for BYE but not force CANCEL. Indeed, for BYE from my SBC enters in loose_route statement, but not for a CANCEL. is there a simplest way to choose the good rtpengine ? I want use a group of rtpengine (like id:1) for

Re: [OpenSIPS-Users] rtpengine (setid_avp) issue with BYE and CANCEL

2018-11-20 Thread Răzvan Crainea
No, it only survives until the end of transaction :). I agree it would be nice to have it persistent throughout the dialog, but that's not in there yet. But you can always open a feature request for this :): https://github.com/OpenSIPS/opensips/issues Best regards, Răzvan On 11/20/18 12:15 P

Re: [OpenSIPS-Users] rtpengine (setid_avp) issue with BYE and CANCEL

2018-11-20 Thread Mickael Hubert
Hi Răzvan, thanks a lot for your answer ! Ok I will try this workaround But I don't understand the rtpengine module documentation ( http://www.opensips.org/html/docs/modules/2.4.x/rtpengine.html) If I have -> modparam("rtpengine", "setid_avp", "$avp(setid)") and I set setid_avp to 1 (for my examp

Re: [OpenSIPS-Users] rtpengine (setid_avp) issue with BYE and CANCEL

2018-11-20 Thread Răzvan Crainea
Hi, Mickael! AVPs are only available during transaction - initial request and its replies, but it is not avaialble to sequential requests (such as CANCEL or BYE). If you want to store a value throughout the entire dialog, you should save the variable in a dialog variable[1], something like thi

[OpenSIPS-Users] rtpengine (setid_avp) issue with BYE and CANCEL

2018-11-19 Thread Mickael Hubert
Hi all, I have a rtpengine with opensips, when I use rtpengine without setid_avp all works like a charm modparam("rtpengine", "rtpengine_sock", "udp:10.13.0.129:12221") *When I want use setid_avp:* modparam("rtpengine", "setid_avp", "$avp(setid)") modparam("rtpengine", "rtpengine_sock", "1 == ud