Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread volga629
small correction need change force_send_socket($var(src_socket)); to $fs = $var(src_socket); , becuse force_send_socket is not accepting variable expansion. volga629 On Fri, Aug 24, 2018 at 1:52 PM, volga...@networklab.ca wrote: Hello Ben, Thank you, that works. I though as final soultion

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread volga629
Hello Ben, Thank you, that works. I though as final soultion some think like this, not sure if possibe do in more optimized way. route[SET_SOURCE_IP] { $var(i) = 0; while($var(i) < $(var(ip_lst){csv.count})) { if($Ri==$(var(ip_lst){csv.value,$var(i)})) {

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread Ben Newlin
Volga, You are trying to use the csv transformation but your data is not comma-separated. You are using semi-colons. I think you are trying to remove the semi-colons with the regex and replace them with commas? I'm not sure what the value of that is, since you could just use commas to begin

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread volga629
Hello Ben, I tried this. Cfgutils loadmodule "cfgutils.so" modparam("cfgutils", "shvset", "vip_lan_lst=s:192.168.10.10;192.168.10.11;192.168.10.12") modparam("cfgutils", "shvset", "vip_wan_lst=s:209.234.43.2;209.234.43.3;209.234.43.4") $avp(arr) = $shv(vip_lan_lst);

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread Ben Newlin
Volga, I had recommended using individual variables, but if you want to use a list that will work. I would recommend using transformations [1] to manipulate the list. Depending on what you choose as your separator you can use the csv transformations (","), or the string select transformation

Re: [OpenSIPS-Users] Automatically end SIP call over wss if TCP connection is closed

2018-08-24 Thread kertor-f
Yes, is is possible way, but not preferred, because appears time lag between actual time end of call(user close tab) and time when opensips drop call can be up to 25 seconds (my interval reINVITE pinging).I mean i use create_dialog() with reINVITE, but the accuracy is less. This has a negative

[OpenSIPS-Users] Automatically end SIP call over wss if TCP connection is closed

2018-08-24 Thread kertor-f
Hello everyone! Can you please help me to understand one thing. I have scheme: |---| | "User with Google Chrome tab with widget"