Re: [OpenSIPS-Users] opensips will not start while loading huge blacklist

2018-10-02 Thread Abdul Basit
Yes. I understand and I check that point specifically. Thank you for your quick solution. -- regards, abdul basit On Wed, 3 Oct 2018 at 00:37, Bogdan-Andrei Iancu wrote: > Hi Abdul, > > Thanks for the feedback. I just want to be sure you understand that the > change I did does not speed up

[OpenSIPS-Users] rtpengine stats

2018-10-02 Thread John Burke
Hello: I am using opensips 2.4.2, working with the rtpengine module trying to get stats per call leg.  I have tried using the $rtpstat(STAT)[index] function with to-tag/from-tag but it seems to only return the first called stat... with subsequent calls returning an empty string.

Re: [OpenSIPS-Users] opensips will not start while loading huge blacklist

2018-10-02 Thread Bogdan-Andrei Iancu
Hi Abdul, Thanks for the feedback. I just want to be sure you understand that the change I did does not speed up the loading process, but it simply decouples the startup sequence from the data loading process. Shortly OpenSIPS does not have to wait for the DB data to be loaded in order to

Re: [OpenSIPS-Users] Get NPANXX from a number

2018-10-02 Thread Bogdan-Andrei Iancu
Hi Vishal, $var(x) = $(rU{s.substr,0,7)); See http://www.opensips.org/Documentation/Script-Tran-2-4#toc5 ; $rU is the dialed username in RURI. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Bootcamp 2018

[OpenSIPS-Users] Get NPANXX from a number

2018-10-02 Thread Vishal Pai
Hi All I need a way in configuration file where i can take out NPANXX from the callee number. For Example Callee = 1318900 Then function/code should return 318900. Thanks ___ Users mailing list Users@lists.opensips.org

Re: [OpenSIPS-Users] opensips will not start while loading huge blacklist

2018-10-02 Thread Abdul Basit
Thanks a lot. Earlier status Opensips service was started in *(real 1m6.474s)* # time opensipsctl fifo reload_blacklist WARNING: database engine not found - tried 'MYSQL' real0m3.948s user0m0.039s sys 0m0.013s time systemctl stop opensips real0m1.424s user0m0.004s sys

Re: [OpenSIPS-Users] Chasing down unreleased memory

2018-10-02 Thread Jock McKechnie
Răzvan, No - no local_route[]. We have the primary route() logic section, the main route[] block which has a direct replacement of $rU and $rd, as well as: failure_route[] which also replaces $rU/$rd, onreply_route[], A second route[] block for route advancement (uses a rewritehost()), And

Re: [OpenSIPS-Users] Chasing down unreleased memory

2018-10-02 Thread Răzvan Crainea
Hi, Jock! There is actually something better - I am not seeing two of the fragments that were leaking before - nor the one in get_hdr_field() (8389 unreleased fragments) nor the one in parse_via(). So I'd argue that the pkg leak was fixed. Still pending the shm leak, which we believe to be

Re: [OpenSIPS-Users] Chasing down unreleased memory

2018-10-02 Thread Jock McKechnie
Here's the package dump from the test I ran - I'm not able to identify anything "Better" in this output, but I'll leave it up to a trained eye. I git pulled opensips-2.4 and built that with all of the memory debugging included and then ran the same tests I ran yesterday. Hopefully this is the

Re: [OpenSIPS-Users] Chasing down unreleased memory

2018-10-02 Thread Răzvan Crainea
Hi, Jock! Are you using local_route in your script? If so, are you doing any R-URI manipulations inside it? Best regards, Razvan On 10/2/18 12:00 PM, Răzvan Crainea wrote: Hi, Jock! Can you confirm exactly the opensips version you are running? (opensips -V). Best regards, Razvan On

Re: [OpenSIPS-Users] opensips will not start while loading huge blacklist

2018-10-02 Thread Bogdan-Andrei Iancu
OK, I pushed on master a patch to move the initial data load after the startup sequence. The patch should apply to 2.4 also. https://github.com/OpenSIPS/opensips/commit/32cba1d751ee5a5b705da97ac4333fcad3d67728 While checking the module, I found some issues with it: * before my patch, the

Re: [OpenSIPS-Users] Accounting BYE response

2018-10-02 Thread Ben Newlin
Bogdan, That is a good test, but I am not sure what to say. That is not the behavior I am seeing and the acc variable is not being set for me. I am also on 2.4.2. One difference in my case is that it is not a local timeout causing the failure. We are receiving a 481 response from the far end.

Re: [OpenSIPS-Users] opensips will not start while loading huge blacklist

2018-10-02 Thread Bogdan-Andrei Iancu
Hi, Taking a closer look at the module (to be honest I do not user it, as drouting does a similar job) I see the module is loading the data into memory. It is doing this during the init stage, holding back the entire OpenSIPS startup. Module doing similar heavy db load were changed to do the

Re: [OpenSIPS-Users] Chasing down unreleased memory

2018-10-02 Thread Jock McKechnie
Good morning Răzvan, I completely understand being busy, I was confident you weren't just ignoring me :) I will build the latest from git with the debugging bits and pieces and report back after testing. I had been running the latest 2.4.2 off yum.opensips.org when I originally identified the

Re: [OpenSIPS-Users] opensips will not start while loading huge blacklist

2018-10-02 Thread Jon Abrams
OpenSIPs is loading the global blacklist into a digit trie structure into shared memory on startup (or reload_blacklist command). That causes the startup delay. - Jon On Tue, Oct 2, 2018 at 7:55 AM Abdul Basit wrote: > Hi Bogdan, > > I don't think so its translating to DB query on run time,

Re: [OpenSIPS-Users] opensips will not start while loading huge blacklist

2018-10-02 Thread Abdul Basit
Hi Bogdan, I don't think so its translating to DB query on run time, instead its caching the blacklist. I am saying so because opensips response is quick, where as when I query manually from DB, it take some time even prefix col. is indexed. Moreover, while opensips restart i get following

Re: [OpenSIPS-Users] Chasing down unreleased memory

2018-10-02 Thread Răzvan Crainea
Hi, Jock! Can you confirm exactly the opensips version you are running? (opensips -V). Best regards, Razvan On 10/2/18 11:41 AM, Răzvan Crainea wrote: Hi, Jock! Good news :) I've just figured out the pkg memleak in mc_compact, and I've already pushed a fix upstream. Please pull the latest

Re: [OpenSIPS-Users] Accounting BYE response

2018-10-02 Thread Bogdan-Andrei Iancu
Hi Ben, OK, my experimentwith 2.4 : * Have a call up between two endpoints * kill the end points, without allowing them to send any BYE or so * do andlg_end_dlg from opensips proxy What I got: 1) the 2 BYE requests are send out, both visiting the local route (where the failure route is armed)

Re: [OpenSIPS-Users] To get prefix from dialed number

2018-10-02 Thread Vishal Pai
Thank you On Tue, Oct 2, 2018 at 12:26 AM Nick Altmann wrote: > Use s.substr transformation. > http://www.opensips.org/Documentation/Script-Tran-2-4 > > > 2018-10-01 21:41 GMT+03:00 Vishal Pai : > >> Hi All >> >> I need a proper way to separate out the prefix from the dialed number. >> For

Re: [OpenSIPS-Users] Chasing down unreleased memory

2018-10-02 Thread Răzvan Crainea
Hi, Jock! Good news :) I've just figured out the pkg memleak in mc_compact, and I've already pushed a fix upstream. Please pull the latest version and run a few tests, and let us know how they go. In the meantime, I will investigate the shm leak. Best regards, Razvan On 10/2/18 10:13 AM,

[OpenSIPS-Users] Bad TLS certificate on https://voip.opensips.org/account/reg/index.php

2018-10-02 Thread Gökçe Aydos
Hi! I could not find the contact address for the webmaster, so I wanted to post it here. It would be great if someone could forward this to the webmaster: If you click on VoIP account -> subscribe, the server sends a certificate issued for a wrong domain. It would be better to get a

Re: [OpenSIPS-Users] FW: problem with hep tracing.

2018-10-02 Thread Bogdan-Andrei Iancu
Hi Johan, Please make a pcap capture of the HEP packet that produces those errors in Homer. Also, in the capturing server, what is the 1049 line in the script ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Bootcamp 2018

[OpenSIPS-Users] OpenSIPS cannot connect to "mediaproxy/dispatcher.sock"

2018-10-02 Thread Steven Platt
Greetings, I am having difficulty getting OpensSIPS to connect to MediaProxy for the purpose of bridging media of clients behind NAT, and hope the community has advice on how to resolve. I have installed MediaProxy from the Debian Jessie repository, and updated the config.ini file to disable

Re: [OpenSIPS-Users] opensips will not start while loading huge blacklist

2018-10-02 Thread Bogdan-Andrei Iancu
Hi Abdul, OK, but what is the blacklist related operation you do in startup route ?? As far as I know, the blacklist module is not doing any kind of caching, so any check you do against the blacklists will translate into a DB query, right ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder

Re: [OpenSIPS-Users] rtpengine

2018-10-02 Thread Dragomir Haralambiev
Thanks a lot!!! На вт, 2.10.2018 г. в 10:11 ч. Răzvan Crainea написа: > Yes. You should also use the -x 1 parameter, to trigger the command only > using the callid. > > Best regards, > Răzvan > > On 10/1/18 7:22 PM, Dragomir Haralambiev wrote: > > Hello, > > > > If I use -b parameter of

Re: [OpenSIPS-Users] Chasing down unreleased memory

2018-10-02 Thread Răzvan Crainea
Hi, Jock! I am pretty busy these days, so I couldn't pay too much attention to this thread. Nevertheless, I will try to prioritize it this week and get back to you. I have also tracked down the pkg mem leak to the mc_compact() module, but I can't pinpoint for now exactly the issue. Although I

Re: [OpenSIPS-Users] rtpengine

2018-10-02 Thread Răzvan Crainea
Yes. You should also use the -x 1 parameter, to trigger the command only using the callid. Best regards, Răzvan On 10/1/18 7:22 PM, Dragomir Haralambiev wrote: Hello, If I use -b parameter of rtpengine it should have active MI_XMLRPC_NG