Re: [OpenSIPS-Users] Upgrading from 3.0.3 to 3.0.4 failed - [net/tcp_common.o] Error 1

2020-11-25 Thread Donat Zenichev
Hi! I also noticed that issue when downloading 3.0.4 from FTP https://opensips.org/pub/opensips/3.0.4/ I would advise you to switch to pulling from git instead, since it is much more fresh in comparison to FTP. (FTP - last upload 17 November, Git - last day before). So after pulling 3.0.4 from git

Re: [OpenSIPS-Users] I am facing some issue while creating DB through opensips-cli .

2020-11-25 Thread Sasmita Panda
Hi , opensips-cli -x diagnose sql ERROR: Failed to subscribe for JSON-RPC events ERROR: Is the event_stream.so OpenSIPS module loaded? event_stream.so module is loaded by default . What else I should do to get this output . Nothing I am getting from opensips-cli document . *Thanks & Regards*

Re: [OpenSIPS-Users] Getting call analytics to Elasticsearch

2020-11-25 Thread Gerwin van de Steeg
The usual use case of Kafka (or Redis/AMQP) is to sit as the middle man to buffer and queue the material before it goes into logstash and then elastic. ie. Kafka -> Logstash -> Elastic nodes If you are only pushing the data to Elastic then pushing it via the logstash HTTP input or a load balance

[OpenSIPS-Users] RTPENGINE RTP-SRTP

2020-11-25 Thread Ricardo Martinez
Hi. I’m trying to use RTPENGINE + OPENSIPS to connect a RTP PBX with a External SRTP. For this I’m using RTPENGINE module. Questions. Is there a way to indicate to RTPENGINE to use certain cypher suite?. Now, I hace in the offer : m=audio 62768 RTP/SAVP 120 9 0 8 18 101 a=rtpmap:120 opus/480

[OpenSIPS-Users] Getting call analytics to Elasticsearch

2020-11-25 Thread Calvin Ellison
Is there any best practice or standard method of getting data from OpenSIPS to Elasticsearch? The scenario is an internal call filter that will block or permit a call. e.g. 503 route advance or 603 stop route. Checks are performed against pre-populated caches and database queries, and we want the

Re: [OpenSIPS-Users] Regex to test variable

2020-11-25 Thread Donat Zenichev
Hi! Are you sure that the condition indeed doesn't work? It shouldn't have been so, if $avp(audio_stream) is indeed equal to "101". Other than that, I would advise to have more informative xlog() output, something like: xlog("CUSTOM_LOG: Audio stream is <$avp(audio_stream)> \n"); So with braces.

Re: [OpenSIPS-Users] Regex to test variable

2020-11-25 Thread Mark Farmer
OK some progress I'm using the s.select transformation which returns the last field correctly: $avp(audio_stream) = $(rb{sdp.line,m}{s.select,-1, }); xlog("CUSTOM_LOG: Audio stream is $avp(audio_stream)\n"); if ($avp(audio_stream) == "101") { CUSTOM_LOG: Audio str

Re: [OpenSIPS-Users] Regex to test variable

2020-11-25 Thread Mark Farmer
Thanks for the reply! I've changed my regex to if ($avp(audio_stream) =~ "^m=audio.*101\r\n") Tried with and without escaping the equals sign but still not matching. Also changed to using an avp. Mark. On Wed, 25 Nov 2020 at 15:54, M S wrote: > something with your regex. each header has a \

Re: [OpenSIPS-Users] Regex to test variable

2020-11-25 Thread M S
something with your regex. each header has a \r\n in the end too, also I'm not sure you need \ before = On Wed, Nov 25, 2020 at 4:26 PM Mark Farmer wrote: > Hi everyone > > I am trying to detect a string using sdp.line,m and a regex pattern but it > is failing to match. > I am trying to match th

[OpenSIPS-Users] Regex to test variable

2020-11-25 Thread Mark Farmer
Hi everyone I am trying to detect a string using sdp.line,m and a regex pattern but it is failing to match. I am trying to match the 101 at the end of the m=audio line: m=audio 25224 RTP/AVP 8 18 101 This is my code: if (is_method("INVITE") && has_body_part("application/sdp")) {

Re: [OpenSIPS-Users] OpenSIPS 3.1 - Test if cache is empty?

2020-11-25 Thread Liviu Chircu
On 25.11.2020 16:18, Mark Allen wrote: If the DB table is updated I can flush the cache of the old data with "opensips-cli -x mi cache_remove_chunk". I would then want to have a test in OpenSIPS that says that if the cache is empty, re-populate it from the DB. Is this possible? Hi, Mark! Fro

[OpenSIPS-Users] OpenSIPS 3.1 - Test if cache is empty?

2020-11-25 Thread Mark Allen
Is there a simple way to test if a cache has any values stored? I have a cache collection holding a number of IP addresses that are read on startup from a local DB. If the DB table is updated I can flush the cache of the old data with "opensips-cli -x mi cache_remove_chunk". I would then want to h

Re: [OpenSIPS-Users] Weird problem with NATHELPER

2020-11-25 Thread Ricardo Martinez
Hi. Sorry to keep this conversation open. I’m still facing this problem and I don’t know why is happening. The Contact stored in the “location” table keeps the Private IP, despite the fact is fix_nated_register(). { "AOR": "d1.920-mydomain", {