Re: [OpenSIPS-Users] HA ongoing call support in 2.4 - transaction replication

2020-02-19 Thread Alexey Vasilyev
Hi Jeff, Transactions are not replicated. Here https://blog.opensips.org/2018/03/21/full-anycast-support-in-opensips-2-4/ Razvan explains why. Section "Distributed transactions handling". - --- Alexey Vasilyev -- Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Use

[OpenSIPS-Users] HA ongoing call support in 2.4 - transaction replication

2020-02-19 Thread Jeff Pyle
Hello, I'm attempting to implement an active/backup pair of OpenSIPS v2.4 proxies. I'm using keepalived to move the IP between the two instances, and clusterer module to allow the two proxies to talk to each other. The dialog module is replicating its information, and keepalived successfully set

[OpenSIPS-Users] UAC Auth from database

2020-02-19 Thread Grant Bagdasarian
Hello, I’ve been going through the modules of 3.1 and was looking for one which performs outbound auth for invite messages, but couldn't really find one which also supports loading credentials from a database. I’m basically looking for something which does the following: Client —Auth1—> OpenSips

Re: [OpenSIPS-Users] is_request(), is_reply() functions in OpenSips

2020-02-19 Thread Grant Bagdasarian
Hi Răzvan, Thanks! I totally forgot about that option! Would there be a performance difference when using route params vs just testing the $rs value? Since route params are totally new to me, I’m not sure if they require additional processing time. Pretty sure performance wouldn’t be an issue sinc

[OpenSIPS-Users] music on hold with rtpengine

2020-02-19 Thread Kamlesh .
Hello, We are using opensips 2.4.6 (x86_64/linux) with rtpengine and want to implement music on hold feature. Please suggest if this is feasible. Regards, Kamlesh -- Disclaimer : This e-mail and any file transmitted with it are for exclusive use of the intended recipient(s) and may contain

Re: [OpenSIPS-Users] Usrloc Cluster

2020-02-19 Thread Callum Guy
Thanks @liviuchircu - sadly GitHub isn't letting me comment at the moment (bug) so coming back here. Checking my active masters I am indeed seeing: `INFO:usrloc:replicate_ucontact_update: All destinations in cluster: 25 are down or probing` Browsing the repo I can see that patch 40b7422 is not in

Re: [OpenSIPS-Users] Issues with DB Async query

2020-02-19 Thread Liviu Chircu
On 19.02.2020 16:35, Exequiel leite wrote: it says that i shouldn't use async queries with Mysql (MariaDB in this Case) and recommend to code that logic in an external script launched asynchronously. I like the "sync" query as a temporary workaround until we come up with a conclusion. The "as

Re: [OpenSIPS-Users] Possible crash in opensips 2.4

2020-02-19 Thread Răzvan Crainea
Hi, Vitalii! I had this mail unread for a while to check your report, but apparently Dan Pascu detected it and fixed it faster than I could check it[1]. So I can confirm the fix you suggested is OK, and it is now pushed upstream. I will backport it down to 2.4. Just a small suggestion - next ti

Re: [OpenSIPS-Users] An obstacle with using variables in regular expression

2020-02-19 Thread Donat Zenichev
Hi Liviu ! Thank you for your answer : ) > .. you would be surprised to find out that it would actually work! Yeah, that's true! In case I define regular expression separately it works out well. For some reason I didn't came to mind it can be fixed in such sophisticated way : ) Now it's clear fo

Re: [OpenSIPS-Users] An obstacle with using variables in regular expression

2020-02-19 Thread Răzvan Crainea
Hey, Donat! You're welcome :D But you should actually thank liviuc, as he wrote the correct snippet - I used the wrong operator ~= instead of the correct one =~ :) Cheers! Răzvan On 2/19/20 4:37 PM, Donat Zenichev wrote: Hi Răzvan! Thank you that you spent your time on this. Your way worked

Re: [OpenSIPS-Users] An obstacle with using variables in regular expression

2020-02-19 Thread Donat Zenichev
Hi Răzvan! Thank you that you spent your time on this. Your way worked out and the check now works as intended. I can't thank you enough, really appreciate this. Have a nice day! On Wed, Feb 19, 2020 at 4:24 PM Răzvan Crainea wrote: > Hi, Donat! > > Your code is checking the variable with the

Re: [OpenSIPS-Users] Issues with DB Async query

2020-02-19 Thread Exequiel leite
Thanks Liviu. To give you some feedback, i ended up writing a sync query to "solve" the crash when ran into with this link --> https://www.opensips.org/Documentation/Script-Async-2-4 In general terms, it says that i shouldn't use async queries with Mysql (MariaDB in this Case) and recommend to cod

Re: [OpenSIPS-Users] Usrloc Cluster

2020-02-19 Thread Liviu Chircu
Hi, Callum! On 18.02.2020 15:56, Callum Guy wrote: INFO:usrloc:receive_ucontact_insert: failed to fetch local urecord - creating new one (ci: '0_751733367@10.0.0.13 ') INFO:usrloc:receive_ucontact_update: failed to fetch local urecord - create new record and con

Re: [OpenSIPS-Users] An obstacle with using variables in regular expression

2020-02-19 Thread Liviu Chircu
On 19.02.2020 15:40, Donat Zenichev wrote: Regular expression is used in a condition: if ( $rU =~ "^$var(each)" ) $var(each) - is a string variable, not integer. It contains certain prefix, like "44". For some reason OpenSIPS script is not able to get through this check properly. But, in ca

Re: [OpenSIPS-Users] An obstacle with using variables in regular expression

2020-02-19 Thread Răzvan Crainea
Hi, Donat! Your code is checking the variable with the "^$var(each)" string/literal, the variable is not expanded within the quotes (like it is done in php). In order to fix this, you should do something like: $var(regex) = "^" + $var(each); if ($rU ~= $var(regex)) Best regards, Răzvan On 2/

[OpenSIPS-Users] An obstacle with using variables in regular expression

2020-02-19 Thread Donat Zenichev
Hi OpenSIPS community! I've come across one small obstacle, when trying to use pseudo variables or attribute value pairs in regular expression. I believe my mistake should be quite simple. Regular expression is used in a condition: if ( $rU =~ "^$var(each)" ) $var(each) - is a string variable, n

Re: [OpenSIPS-Users] Issues with DB Async query

2020-02-19 Thread Liviu Chircu
On 17.02.2020 17:24, Exequiel leite wrote: CRITICAL:core:db_store_async_con: #012>>> DB con 0x7fb857f4d178 not found#012It seems you have hit a programming bug.#012Please help us make OpenSIPS better by reporting it at https://github.com/OpenSIPS/opensips/issues BTW I'm using Opensips 2.4.5 w

Re: [OpenSIPS-Users] Upgrade from 2.4 to 3.0

2020-02-19 Thread Răzvan Crainea
Hi, Mostafa! Indeed, the migration tutorial is here: https://www.opensips.org/Documentation/Migration-2-4-0-to-3-0-0 If you're facing any issues with opensips-cli, please open a bug report here, detailing the problem you are facing and what is the expected behavior: https://github.com/OpenSIP

[OpenSIPS-Users] Upgrade from 2.4 to 3.0

2020-02-19 Thread Mostafa Elyasi
Hi, I have a 2.4.6.1 version of Opensips and would want to upgrade it to 3.0. Is there any document? There is a document for migration from 2.4 to 3.0 in the website, but for migration it uses opensips-cli, unfortunately I don't have this tool on the system and when I tried to install it, I faced a

Re: [OpenSIPS-Users] How to start OpenSIPS 3.0 server

2020-02-19 Thread Tekin, Arda
Hi Liviu, Thank you very much for all your answers. I had built and installed opensips from the source code on CentOS 7 It seems that service startup scripts and permissions need to be handled for CentOS. I have applied following commands (as root) and now the service works successfully. C