Re: [OpenSIPS-Users] Opensips 2.5 and fraud module
Hmm.And what is the purpose of control "per call"?As i understand it triggers AFTER calls finishing. What can we do in such situation?Just send email to, for example, support, that "potential fraud" call has been finished?-- Best regards, DenisС уважением,Путято Денис19:32, 9 июня 2018 г., Liviu Chircu : The "call duration" is a "per call" statistic, while "sequential", "concurrent", "cpm" and "total" are "interval-based" statistics -- indeed, once they trigger, subsequent calls have a good chance of also being rejected (e.g. unlike "total" and "sequential", which are only reset when a new interval starts, if you wait a bit, the "cpm" will cool down and you will be able to safely dial again). Cheers, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 09.06.2018 15:51, Denis via Users wrote: Liviu, I expect that ones the module detects fraud, it should return -2 on subsequent calls. As it does to "total calls" and "subsequent calls" respectively. In my example, the second call was successful (return 1) , although, as i expected, it should be fail (return -2) Thank you -- С уважением, Денис. Best regards, Denis 09.06.2018, 15:11, "Liviu Chircu" : Hi Denis, If these are your tests: 1. 101 06.06.2018 15:34:54 2. 0 06.06.2018 15:38:21 Then the 1st one should return -2 ("call duration" critical threshold hit, since 101 sec > 60 sec), and the second one should return 1 (success, no thresholds have been hit yet). This seems to be exactly how it behaved in your case. Did I misunderstand your test? If not, how exactly are you expecting it to work? Best regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 09.06.2018 11:32, Denis via Users wrote: Hello! Liviu, can i be sure, that you will analyze my question? ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips 2.5 and fraud module
Sorry, wrong button pushed))) Continue where,$avp(user) - caller number$rU - callee number$avp(profile) - profile id in the fraud module table in the acc table first call 101 06.06.2018 15:34:54 where, - caller number - caller nuber101 - duration of the call06.06.2018 15:34:54 - date/time of the call second call 0 06.06.2018 15:38:21the same parameters, call success, but without answer. Before the second call/usr/local/opensips2.2/sbin/opensipsctl fifo show_fraud_stats 1calls per minute:: 1total calls:: 1concurrent calls:: 0sequential calls:: 1 After the second call/usr/local/opensips2.2/sbin/opensipsctl fifo show_fraud_stats 1calls per minute:: 1total calls:: 2concurrent calls:: 0sequential calls:: 2 So, additionally, in opensips.cfg i have such logic event_route[E_FRD_CRITICAL] {fetch_event_params("param = $avp(frparam);value = $avp(frvalue);threshold = $avp(frthr);user = $avp(fruser);called_number = $avp(frcalled);rule_id = $avp(frruleid)");exec("echo -e 'Обнаружен фродовый трафик с номера $avp(fruser)\n Параметр фрода: $avp(frparam)\n Величина параметра фрода: $avp(frvalue)\n Порог параметра фрода: $avp(frthr)\n Номер вызывамого абонента: $avp(frcalled)' | mail -a 'Content-Type: text/plain; charset=UTF-8' -s 'Fraud detect!' fr...@ptl.ru fr...@ptl.ru");} Between two calls I have received email about the first call with param: call_duration So, why could i make the second call? Thank you -- С уважением, Денис.Best regards, Denis 06.06.2018, 15:51, "Denis" :Liviu, thank you very much! And, sorry, but i want to worry you more about the module. First of all, now, i am usingopensips 2.2.6 (x86_64/linux)flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAITADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.git revision: 5d229f5main.c compiled on 13:56:51 Apr 20 2018 with gcc 5.4.0 Recently i found such problem. Module detected fraud calls, dealing with call_duration (my previous question about seconds and minutes dealing with problem), but i cannot see calls drop. All in order, In opensips.cfg i have such logic:"check_fraud("$avp(user)","$rU","$avp(profile)"); switch($rc) { case 2: if ($avp(3000)=="1") xlog("L_INFO", "Route4:$rm was received (IPS=$si, IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt, AUTH=$au) and FRAUD: case 2"); break; case 1: if ($avp(3000)=="1") xlog("L_INFO", "Route4:$rm was received (IPS=$si, IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt, AUTH=$au) and FRAUD: case 1"); break; case -1: if ($avp(3000)=="1") xlog("L_INFO", "Route4:$rm was received (IPS=$si, IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt, AUTH=$au) and FRAUD: case -1"); break; case -2: if ($avp(3000)=="1") xlog("L_INFO", "Route4:$rm was received (IPS=$si, IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt, AUTH=$au) and FRAUD DETECTED"); $avp(501)=$ft+$ci; $avp(501)=$(avp(501){s.md5}); acc_db_request("Fraud_detectead", "acc"); send_reply("403", "Forbidden"); exit; break; case -3: if ($avp(3000)=="1") xlog("L_INFO", "Route4:$rm was received (IPS=$si, IPD=$rd, CALLID=$ci, FROMTAG=$ft, TOTAG=$tt, AUTH=$au) and FRAUD failure"); $avp(501)=$ft+$ci; $avp(501)=$(avp(501){s.md5}); acc_db_request("Fraud_detection_failure", "acc"); send_reply("403", "Forbidden"); exit; break; } where, in" -- С уважением, Денис.Best regards, Denis 06.06.2018, 14:29, "Liviu Chircu":Hi, Denis!According to the table data I wrote in the tutorial [1], it's definitely seconds. It's a pity that the docs do not reflect this as well -- I'll get them fixed!Best regards,[1]: http://www.opensips.org/Documentation/Tutorials-FraudDetection-2-1Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.comOn 06.06.2018 14:20, Denis via Users wrote:Hello, Liviu! It is me, again:))) One more, call_duration measured in seconds or in minutes? Thank you. -- С уважением, Денис.Best regards, Denis 27.04.2018, 09:25, "Denis via Users" :Hello, Liviu!OK, i understand..But, to speak the truth, it would be more reasonable to control exactly numbers, but not prefix.Because, now, "sequential calls" and "total calls", actually, perform the same control task.My experience tell me, that many fraud cases deal with calling to the same number in a some time period. Anyway, thank you! -- С уважением, Денис.Best regards, Denis 26.04.2018, 08:22, "Liviu Chircu" :Yes, exactly. Apologies for my incomplete example scenario!Best regards,Liviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.comOn 26.04.2018 07:57, Denis via Users wrote: Liviu, it seems, i confused. You gave an example "the "sequential calls" holds the size of the last batch of calls sent to the same number. For example, i
Re: [OpenSIPS-Users] Opensips 2.5 and fraud module
"Do you agree?" without a doubt:))) As you can see in my table, i should set a big value of the counter to allow users ('good users':))) to make a call to 810 destination. Is there any chance to fix this quickly? thank you. -- С уважением, Денис.Best regards, Denis 03.04.2018, 18:28, "Liviu Chircu" :Hmmm... indeed, the "sequential calls" only reset if you dial a different number.If the other stats reset at midnight/interval change, I don't see why this specific one should be different. To me, it looks like a bug. Do you agree?Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.comOn 03.04.2018 16:49, Denis via Users wrote:Hello Liviu! I am sorry, i totally missed one important thing - serial forking)))I.e. i had 52 records in accounting, but several of them leads to one call.As a result i had exactly 29 calls before fraud module became block subsequent calls. About counters reset i understood. Thank you. The last question about "sequential_calls". This counter does not reset? Even in manual mode? Thank you. -- С уважением, Денис.Best regards, Denis 03.04.2018, 15:30, "Liviu Chircu" :Hi Denis,Regarding the "52 calls" vs. 25/30 limits, are you sure all 52 calls were made by the same user? Keep in mind that all fraud_detection module stats are per-user counters, and not global counters. If they really were all made by the same user, please let me know and I will double-check my tests.The "cpm", "total_calls" and "concurrent_calls" reset either on an interval change or at midnight (new day ahead). This leads to a possible undetected abuse of up to 2x your provisioned "cpm", "total_calls" or "concurrent_calls", if the malicious user places "limit - 1" events before the reset, followed by another "limit - 1" events past the reset. If this is too much for you, then your provisioned limits (thresholds) are incorrect, and you should simply cut them in half.Best regards,Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.comOn 22.03.2018 09:59, Denis via Users wrote:Hello! Is there any idea about the problem? Thank you. -- С уважением, Денис.Best regards, Denis 16.03.2018, 15:22, "Denis via Users" :Hello! I am sorry that it was early, but anyway. Server:: OpenSIPS (2.2.5 (x86_64/linux)) Fraud_module has been activated. Profile data 17.02.18 20:55 Opensips received first fraud call.And before Opensips detected fraud there were 52 yet calls to 810 prefix. First question is why it didn`t detected fraud early (dialing with total_calls, for example)? Then. Till the end of 17.02 Opensips blocked the calls from client to 810, but in 18.02 i can see success fraud calls to 810 from the client again. Second question is why? Opensips resets count every new day? Thank you. -- С уважением, Денис.Best regards, Denis ,___Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ,___Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ,___Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips, load_balancing and authentication process
Hello Bogdan!And if i wont to get nonce from, from example, load balanser? Not registrar-- С уважением,Путято Денис16:34, 26 мая 2017 г., "Bogdan-Andrei Iancu" : Hi Denis, As OpenSIPS is the registrar, it it the one generating the nonce (via the www_challenge() function). At script level, you do not have visibility over the sent nonce . Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Bootcamp 2017, Huston, US http://opensips.org/training/OpenSIPS_Bootcamp_2017.html On 05/23/2017 08:30 AM, Denis via Users wrote: Hello, Bogdan! Thank you. One more. How can i access a "nonce" value from 401 reply, during REGISTER transaction? Thank you. -- С уважением, Денис. Best regards, Denis 22.05.2017, 17:39, "Bogdan-Andrei Iancu" : Hi Denis, Just be sure : 1) during authentication, your proxy/registrar(s) allow to have cross challenging - one server is firing the auth challenge, but another one receives the reponse 2) the registrations are shared between all your registrar servers. Otherwise, just give it a try and test ;) Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.html On 05/18/2017 08:43 AM, Denis via Users wrote: Hello! I am sorry that it was early, but i could not find an answer for my question. I want to ask for advice from community about how can i use Opensips as c "clean" Load_balancer for my project? The scheme of the project is a classic. Load_balancer ---> Proxy1/Register1 | | | | mysql replication. | | |_> Proxy2/Register2 One load_balancer, two (or more) Proxies which have mysql replication relationship. What do i mean about "clean"? I mean that it should ONLY act as a balancer. It should be entry point into my network and it should "live forever" (UPS, protected server, NO MySQL interaction dialing with transaction processing). It should not make any other action about call processing (besides TCP <-> UDP conversion). All actions (Call processing, authentication, Registration etc.) should "live" in Proxies. So, my question is, can i do it? Will Opensips work correctly in such scheme, including authentication procedure of the Call or Register processing? Thank you for any help. -- С уважением, Денис. Best regards, Denis ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users , ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips crash
Sorry, Bogdan, i missed that I found such CRITICAL message"CRITICAL:core:qm_free: freeing already freed pointer, first free: acc_logic.c: dlg_free_acc_mask(211) - aborting" And after that and till crash only "WARNING:core:utimer_ticker:" reports in syslog. (gdb)f 2#2 0x00515592 in qm_free (qm=, p=p@entry=0x7fdf83c9f340, file=file@entry=0x7fdf6753ad62 "acc_logic.c", func=func@entry=0x7fdf6753af90 <__FUNCTION__.12529> "dlg_free_acc_mask", line=line@entry=211) at mem/q_malloc.c:483483 abort(); p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag)))$1 = {size = 8, u = {nxt_free = 0x7fdf71a8c6b0, is_free = 140597661320880}, file = 0x7fdf6753ad62 "acc_logic.c", func = 0x7fdf6753af90 <__FUNCTION__.12529> "dlg_free_acc_mask", line = 211, check = 17361641481138401520} -- С уважением, Денис.Best regards, Denis 04.04.2017, 17:58, "Bogdan-Andrei Iancu" :The RADIUS part is not relevant.Still you didn;t answer to my question on the CRITICAL error - according to the backtrace, you should have a CRITICAL message in the opensips log, just before the crash.In GDB, do: f 2 p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag))) Regards,Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.html On 04/04/2017 05:55 PM, Denis wrote:During crash there was another problem with LAN network.Because of this problem Opensips could not connect to radius server.rc_ip_hostname: couldn't look up host by addr: xxrc_send_server: no reply from RADIUS server unknown:1812 No more critical messages. Bogdan, i am sorry, but"in frame 2". What does it mean? -- С уважением, Денис.Best regards, Denis 04.04.2017, 16:35, "Bogdan-Andrei Iancu" :Any CRITICAL message into the log before the crash ?also, in gdb in frame 2, please print: p *((struct qm_frag*) ((char*)p-sizeof(struct qm_frag))) Thanks,Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.html On 04/04/2017 03:19 PM, Denis wrote:p shm_block->first_frag$1 = (struct qm_frag *) 0x7fdf6b9d44f8 p shm_block->last_frag_end$2 = (struct qm_frag_end *) 0x7fe02899efd0 p mem_block->first_frag$3 = (struct qm_frag *) 0x7fe029214508 p mem_block->last_frag_end$4 = (struct qm_frag_end *) 0x7fe0691defe0 -- С уважением, Денис.Best regards, Denis 04.04.2017, 14:51, "Bogdan-Andrei Iancu" :OK,please enter gdb and print: p shm_block->first_frag p shm_block->last_frag_end p mem_block->first_frag p mem_block->last_frag_endThanks,Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.html On 04/04/2017 01:42 PM, Denis wrote:Hello, Bogdan! No, i cannot see in the log any messages you mentioned it your letter.The situation dealing with crash had such stage. 1. I prepared to migrate to 2.2.3 from 2.2.2. But do not have a time to restart Opensips2. As a result "i waited" when Opensips have crashed. During crash of 2.2.2 no core file has been generated, but Opensips has been restarted using cron.3. After 2) Opensips became 2.2.3. It was working about 1 minute and crashed again, but in that time, core file has been generated and i attached information from it.So, between 2) and 3) , as i mentioned above, there were no messages about memory, but i see many messages like'WARNING:core:utimer_ticker: utimer task already scheduled for 71500 msWARNING:core:timer_ticker: timer task already scheduled for 72400 msWARNING:core:timer_ticker: timer task already scheduled for 72400 msWARNING:core:timer_ticker: timer task already scheduled for 72400 msWARNING:core:timer_ticker: timer task already scheduled for 72400 ms'and so on As for about version version: opensips 2.2.3 (x86_64/linux)flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAITADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.git revision: 7922417main.c compiled on 06:29:28 Mar 23 2017 with gcc 5.4.0 -- С уважением, Денис.Best regards, Denis 04.04.2017, 12:43, "Bogdan-Andrei Iancu" :Hello Denis,Thank you for the report. Do you see any CRITICAL log just before the crash, something like: "bad pointer 0 (out of memory block!) - aborting"?If yes, please post here the exact line.Also, do you use the latest OpenSIPS 2.2 from GIT repo ? (run "opensips -v")Regards,Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit May 2017 Amsterdam http://www.opensips.org/events/Summit-2017Amsterdam.html On 04/04/2017 10:58 AM, Denis via Users wrote:Hello! Server:: OpenSIPS (2.2.3 (x86_64/linux)) Thank you fo
Re: [OpenSIPS-Users] rtpproxy and record calls
Hello!Is there any information about the problem?Thank you.-- С уважением,Путято ДенисBest regards, Denis14:47, 27 декабря 2016 г., Denis via Users :Hello! I try to use rtpproxy for call recording and have two problems 1) rtpproxy records only one way of the call (from callee to caller). For starting rtp proxy i use rtpproxy_engage("conrf",,"1",) function. 2) i am using top_hiding with "C" flags (which should change callid) and i noticed, that sometime the function generates callid with such form (for example)DLGCH_fRUAW2B/M2NiSV1WYWRhYX9ASFowK2J+f0JXXmt5MWspSVEM. I want to pay attention to "/" character. As i understand, because of this character i got such error from rtpproxyERR:DLGCH_fRUAW2B/M2NiSV1WYWRhYX9ASFowK2J+f0JXXmt5MWspSVEM:rtpp_record_open: can't open file /mnt/callrecords//DLGCH_fRUAW2B/M2NiSV1WYWRhYX9ASFowK2J+f0JXXmt5MWspSVEM=cU7ZHtge63paN.a.rtp for writing: No such file or directory (2) rtpproxy: 2.2.alpha.20160822Opensips: Server:: OpenSIPS (2.2.2 (x86_64/linux)) Thank you for any help. -- С уважением, Денис.Best regards, Denis ___Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] rtpproxy 2.0 and extractaudio
I read about it, but if i need extract g729?-- С уважением,Путято ДенисBest regards, Denis18:08, 23 декабря 2016 г., Ovidiu Sas :Here are the steps to extract the audio:https://voipembedded.wordpress.com/2011/11/15/extracting-audio-from-calls-recorded-with-rtpproxy/Regards, Ovidiu SasOn Dec 23, 2016 09:52, "Denis via Users"wrote:Hello, Bogdan! I mean haw can i extract audio from .rtp file, which was recorded by rtpproxy.In documentation to rtpproxy said, that extractaudio utility can do that. But how do that, i cannot find. -- С уважением, Денис.Best regards, Denis 23.12.2016, 17:49, "Bogdan-Andrei Iancu" :Hi Denis,You mean to record the RTP going through rtpproxy ?Regards,Bogdan-Andrei IancuOpenSIPS Founder and Developerhttp://www.opensips-solutions.comOn 23.12.2016 12:22, Denis wrote:Hello! I want to ask about extractaudio. Is there any manual for it? How can i use it?Has anybody operation experience of this soft? Thank you. -- С уважением, Денис.Best regards, Denis___Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users___Users mailing listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Fraud_detection module
Hello, Liviu! Thank you for your answer. About 2) "Calls per minute" - ok, but what about other parameters? For example, "total calls"? Suppose we have 09:00 - 17:00, Mon-Fri, and "total calls" = 30. If in Mon user makes 25 calls, on Tue since 09:00 counts of "total calls" begin from 0 or 25? -- С уважением, Путято Денис, Руководитель отдела телефонии АО "Квантум" Тел.: 8123364000, доб.244 199178, Санкт-Петербург, наб.р.Смоленки, д.19/21 лит.Б www.ptl.ru mailto:d.puty...@ptl.ru Hi, Deniz! Answers below. Regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 10.11.2016 15:18, Denis wrote: Re: Fraud_detection modul Hello! Opensips 2.2.1 A couple of questions about fraud_detection: 1) In documentation says "consecutive calls to the same destination ". Same destination = same number, or prefix? Same prefix, taken from the fraud detection rule 2) At the beginning of the next period, a counts of events begin 0? The module uses a gliding window of 60 seconds, in order to keep track of "calls per minute". When changing time intervals, hence putting new thresholds in place, the "calls per minute" will not reset. In other words, when switching intervals, the new "calls per minute" thresholds will initially work with calls placed during the last minute when the old thresholds were in place. 3) is there any method to reset counts of events for certain user? Currently there is no way of doing this. 4) what is the value used to calculate duration in fraud_module, minutes or seconds? It should be "seconds", I will fix the misleading example in the tutorial. __ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Common points in B2B top hiding
Hello, Razvan! Does "topology hiding" make full top hiding? For example, if callid will include SIP UA IP address, will "topology hiding" hide it? Thank you. mailto:denis7...@mail.ru Hi, Denis! Take a look at the "a" flag used by the b2b_init_request()[1] function. This might help you achieve what you want. May I ask you why you are using the b2b topology hiding, and not the dedicated module for topology hiding[2]? It would be far more easier to use the latter one in most of the cases. [1] http://www.opensips.org/html/docs/modules/2.2.x/b2b_logic.html#id294010 [2] http://www.opensips.org/html/docs/modules/2.2.x/topology_hiding.html Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 11/08/2016 04:19 PM, Denis wrote: Re: [OpenSIPS-Users] Common points in B2B top hiding Hello, Razvan! No, it is not quite what i am looking for. For example, before top hiding i make authentication procedure during which i got login. For some call processing logging i need to translate this login to some proxy instance. How can i do that? mailto:denis7...@mail.ru Hi, Denis! You can copy headers from the initial request to the B2B one by using the custom headers[1]. [1] http://www.opensips.org/html/docs/modules/2.2.x/b2b_logic.html#id293556 Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 11/08/2016 03:41 PM, Denis wrote: Common points in B2B top hiding Hello! Sorry that it was, but are there any common points between received INVITE and new generated INVITE while using B2B top hiding? I need some points, gotten in local_route, which will uniquely identified the call and which i can use, for example, to add some headers (based on that points). Thank you for any help. mailto:denis7...@mail.ru ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty
Hello, Bogdan I am sorry that i did not describe the problem more clearly. 404 opensips sends because in opensips.cfg i wrote a logic that if in dr_rules opensips finds no rules for routing it must send 404. And the problem i think is there. Opensips began rejects all calls with 404, i.e. it could not find any rules in dr_rules table. Everthing began fine after fifo dr_reload command execution, i.e. after dr_rules updating. -- С уважением, Путято Денис, Руководитель отдела телефонии АО "Квантум" Тел.: 8123364000, доб.244 199178, Санкт-Петербург, наб.р.Смоленки, д.19/21 лит.Б www.ptl.ru mailto:d.puty...@ptl.ru Hi, OpenSIPS by itself does not send any 404. If it does, it does it because you put that into the script. So, you have to look into your script and see the logical path that makes OpenSIPS to get to sending a 404 reply. You may use the script_trace : http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43 Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 30.08.2016 22:26, Denis wrote: Re: Opensips 2.2.1 dr_rules is empty Hello! Some time ago i wrote about a problem when Opensips began reject all calls with 404 code. Unfortunately i did not received any answer. Since that time i have made upgrade from 2.1.2 to 2.2.1 and today i have got the same problem. Opensips began rejects all calls with 404 code. Based on the information from log, i make suggest that problem began when dr_reload command has been received. And the problem has been solved, again, when the dr_reload command has been received (the period about two commands is about a couple of minutes). I please help to solve the problem. Thank you. mailto:denis7...@mail.ru Hello! Recently i begun to get such problem. Opensips rejects all calls with 404 code. I can solve the problem by making dr_reload. I tried to analyze a log and what i could found you can see in attachment. As i could understand last problem began after dr_reload. Thank you for any help. mailto:denis7...@mail.ru ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips 2.2.1 dr_rules is empty
And one more. In log you can see messages about mysql reconnect. Something like INFO:db_mysql:connect_with_retry: re-connected successful for 0x7fd15649b910 INFO:db_mysql:db_mysql_do_prepared_query: reconnected to mysql server -> re-init the statement Why does it happen? Is this normal that Opensips periodically tries to re-connect to mysql? May problem is there? mailto:denis7...@mail.ru Hello, Bogdan I am sorry that i did not describe the problem more clearly. 404 opensips sends because in opensips.cfg i wrote a logic that if in dr_rules opensips finds no rules for routing it must send 404. And the problem i think is there. Opensips began rejects all calls with 404, i.e. it could not find any rules in dr_rules table. Everthing began fine after fifo dr_reload command execution, i.e. after dr_rules updating. -- mailto:denis7...@mail.ru Hi, OpenSIPS by itself does not send any 404. If it does, it does it because you put that into the script. So, you have to look into your script and see the logical path that makes OpenSIPS to get to sending a 404 reply. You may use the script_trace : http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43 Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 30.08.2016 22:26, Denis wrote: Re: Opensips 2.2.1 dr_rules is empty Hello! Some time ago i wrote about a problem when Opensips began reject all calls with 404 code. Unfortunately i did not received any answer. Since that time i have made upgrade from 2.1.2 to 2.2.1 and today i have got the same problem. Opensips began rejects all calls with 404 code. Based on the information from log, i make suggest that problem began when dr_reload command has been received. And the problem has been solved, again, when the dr_reload command has been received (the period about two commands is about a couple of minutes). I please help to solve the problem. Thank you. mailto:denis7...@mail.ru Hello! Recently i begun to get such problem. Opensips rejects all calls with 404 code. I can solve the problem by making dr_reload. I tried to analyze a log and what i could found you can see in attachment. As i could understand last problem began after dr_reload. Thank you for any help. mailto:denis7...@mail.ru ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Fraud module
Hello! I am using Opensips 2.1 with fraud module. Should the module resets current statistics when new time stamp begin? I use 00:00 - 23:59 time interval for fraud detection and see that, for example, "sequential calls" increases for every call every day. Thank you mailto:denis7...@mail.ru___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Out of memory problem
ERROR:core:db_allocate_rows: no memory left ERROR:db_mysql:db_mysql_fetch_result: no memory left ERROR:dialplan:dp_load_db: failed to fetch ERROR:dialplan:dp_load_all_db: unable to load ast_dialplan table ERROR:dialplan:mi_reload_rules: failed to reload database ERROR:mi_fifo:mi_fifo_server: command () processing failed -- С уважением, Путято Денис, Руководитель отдела телефонии АО "Квантум" Тел.: 8123364000, доб.244 199178, Санкт-Петербург, наб.р.Смоленки, д.19/21 лит.Б www.ptl.ru mailto:d.puty...@ptl.ru > What is the exact text of the error? > > -- > Alex Balashov | Principal | Evariste Systems LLC > 303 Perimeter Center North, Suite 300 > Atlanta, GA 30346 > United States > Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > Sent from my BlackBerry. > Original Message > From: Денис Путято > Sent: Monday, February 29, 2016 00:58 > To: Alex Balashov; OpenSIPS users mailling list > Subject: Re: [OpenSIPS-Users] Out of memory problem > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Out of memory problem
Newer version = 2.1? mailto:denis7...@mail.ru This is PKG memory (i.e. packaged / private / per-process), so you should actually increase "-M" CLI switch! Note: Newer versions of OpenSIPS will have improved error reporting for easier troubleshooting of oom (out-of-memory) errors. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.02.2016 10:20, Денис Путято wrote: Re: [OpenSIPS-Users] Out of memory problem ERROR:core:db_allocate_rows: no memory left ERROR:db_mysql:db_mysql_fetch_result: no memory left ERROR:dialplan:dp_load_db: failed to fetch ERROR:dialplan:dp_load_all_db: unable to load ast_dialplan table ERROR:dialplan:mi_reload_rules: failed to reload database ERROR:mi_fifo:mi_fifo_server: command () processing failed mailto:denis7...@mail.ru > What is the exact text of the error? > > -- > Alex Balashov | Principal | Evariste Systems LLC > 303 Perimeter Center North, Suite 300 > Atlanta, GA 30346 > United States > Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > Sent from my BlackBerry. > Original Message > From: Денис Путято > Sent: Monday, February 29, 2016 00:58 > To: Alex Balashov; OpenSIPS users mailling list > Subject: Re: [OpenSIPS-Users] Out of memory problem > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Out of memory problem
ERROR:core:db_allocate_rows: no memory left ERROR:db_mysql:db_mysql_fetch_result: no memory left ERROR:dialplan:dp_load_db: failed to fetch ERROR:dialplan:dp_load_all_db: unable to load ast_dialplan table ERROR:dialplan:mi_reload_rules: failed to reload database ERROR:mi_fifo:mi_fifo_server: command () processing failed mailto:denis7...@mail.ru > What is the exact text of the error? > > -- > Alex Balashov | Principal | Evariste Systems LLC > 303 Perimeter Center North, Suite 300 > Atlanta, GA 30346 > United States > Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > Sent from my BlackBerry. > Original Message > From: Денис Путято > Sent: Monday, February 29, 2016 00:58 > To: Alex Balashov; OpenSIPS users mailling list > Subject: Re: [OpenSIPS-Users] Out of memory problem > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Out of memory problem
Yes, repeatedly. mailto:denis7...@mail.ru > Have you attempted to increase the shared memory allocation to OpenSIPS (-m > CLI option)? > > -- > Alex Balashov | Principal | Evariste Systems LLC > 303 Perimeter Center North, Suite 300 > Atlanta, GA 30346 > United States > Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > Sent from my BlackBerry. > Original Message > From: Denis > Sent: Monday, February 29, 2016 00:45 > To: users@lists.opensips.org > Reply To: OpenSIPS users mailling list > Subject: [OpenSIPS-Users] Out of memory problem > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Fraud_detection module
Hello! I am interesting with fraud_detection module. I read some docs about it and could not find answer about how and where does fraud_detection module store statistic information about client's calls and what happen with the statistic if, for example, Opensips reloads? Thank you. Yours respectfully, Denis mailto:denis7...@mail.ru___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips 1.11 permission module problem
Hello I found the problem. Thank you. An additional question. With "DBG_QM_MALLOC" i see in log a lot off messages "params ..." without any SIP traffic. Is this normal? P.S. in opensips.cfg memlog=1 debug=3 I came back and start from beginning. - Opensips restarts successfully with 1) "F_MALLOC" checked 2) "DBG_QM_MALLOC" uncheked. 3) In Exclude_modules all necessary modules have been checked (db_mysql, dialplan etc/). -Opensips restarts fail with 1) "F_MALLOC" unchecked 2) "DBG_QM_MALLOC" cheked. 3) In Exclude_modules all necessary modules have been checked (db_mysql, dialplan etc/). What am i doing wrong? -- С уважением, Путято Денис, Руководитель отдела телефонии АО "Квантум" Тел.: 8123364000, доб.244 199178, Санкт-Петербург, наб.р.Смоленки, д.19/21 лит.Б www.ptl.ru mailto:d.puty...@ptl.ru Just check whatever modules you actually need from "excluded_modules", then do: "make install". Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.01.2016 15:47, Денис Путято wrote: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Sorry, but i do not quite understand. I should unchecked all modules in "excluded_modules", save changes, than make all and make install and after that repeat all these steps but with checked modules in "excluded_modules". Am i right? It seems you've regenerated Makefile.conf, and forgot to remove db_mysql from the list of "excluded_modules". To fix this: make menuconfig -> Configure Compile Options -> Configure Excluded Modules -> [X] db_mysql Now, when you run "make all; make install", "db_mysql", the last missing piece of the puzzle, will be recompiled as well. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.01.2016 12:54, Денис Путято wrote: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello It is doesn`t help. 1) make clean 2) make menuconfig. Set all necessary parameters (including uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC ). 3) save and exit 4) make all 5) make install When starts Opensips i can see the same errors in log. You've only recompiled the opensips binary with the new flags, but forgot about all shared libraries (modules) When changing compile flags, please recompile everything with "make all", instead of just doing "make". Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.01.2016 10:38, Денис Путято wrote: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello, Bogdan The problem is still actual. Due to doc http://www.opensips.org/Documentation/TroubleShooting-OutOfMem i try to prepare to make a log of memory. I made "uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC" When i start Opensips i see in log such errors (see attachment). Thank you for any help. Sincerely, Denis How much pkg memory have you configured in your opensips ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:24, dpa wrote: 2314 From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:17 PM To: dpa; 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem How many records do you have in the address table ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:14, dpa wrote: Hello Bogdan, Yes, I see errors “Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: WARNING:core:fm_malloc: Not enough free memory, will attempt defragmentation Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_allocate_rows: no memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_rows: no private memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_result: error while converting rows Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_store_result: error while converting result Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_do_query: error while storing result for query [select ip,grp,mask,port,proto,pattern,context_info,id from ast_address ] Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:permissions:reload_address_table: failed to query database” From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:04 PM To: OpenSIPS users mailling list; denis7...@mail.ru Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hi Denis, Do you see any errors in logs
Re: [OpenSIPS-Users] Opensips 1.11 permission module problem
I came back and start from beginning. - Opensips restarts successfully with 1) "F_MALLOC" checked 2) "DBG_QM_MALLOC" uncheked. 3) In Exclude_modules all necessary modules have been checked (db_mysql, dialplan etc/). -Opensips restarts fail with 1) "F_MALLOC" unchecked 2) "DBG_QM_MALLOC" cheked. 3) In Exclude_modules all necessary modules have been checked (db_mysql, dialplan etc/). What am i doing wrong? -- С уважением, Путято Денис, Руководитель отдела телефонии АО "Квантум" Тел.: 8123364000, доб.244 199178, Санкт-Петербург, наб.р.Смоленки, д.19/21 лит.Б www.ptl.ru mailto:d.puty...@ptl.ru Just check whatever modules you actually need from "excluded_modules", then do: "make install". Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.01.2016 15:47, Денис Путято wrote: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Sorry, but i do not quite understand. I should unchecked all modules in "excluded_modules", save changes, than make all and make install and after that repeat all these steps but with checked modules in "excluded_modules". Am i right? It seems you've regenerated Makefile.conf, and forgot to remove db_mysql from the list of "excluded_modules". To fix this: make menuconfig -> Configure Compile Options -> Configure Excluded Modules -> [X] db_mysql Now, when you run "make all; make install", "db_mysql", the last missing piece of the puzzle, will be recompiled as well. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.01.2016 12:54, Денис Путято wrote: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello It is doesn`t help. 1) make clean 2) make menuconfig. Set all necessary parameters (including uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC ). 3) save and exit 4) make all 5) make install When starts Opensips i can see the same errors in log. You've only recompiled the opensips binary with the new flags, but forgot about all shared libraries (modules) When changing compile flags, please recompile everything with "make all", instead of just doing "make". Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.01.2016 10:38, Денис Путято wrote: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello, Bogdan The problem is still actual. Due to doc http://www.opensips.org/Documentation/TroubleShooting-OutOfMem i try to prepare to make a log of memory. I made "uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC" When i start Opensips i see in log such errors (see attachment). Thank you for any help. Sincerely, Denis How much pkg memory have you configured in your opensips ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:24, dpa wrote: 2314 From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:17 PM To: dpa; 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem How many records do you have in the address table ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:14, dpa wrote: Hello Bogdan, Yes, I see errors “Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: WARNING:core:fm_malloc: Not enough free memory, will attempt defragmentation Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_allocate_rows: no memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_rows: no private memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_result: error while converting rows Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_store_result: error while converting result Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_do_query: error while storing result for query [select ip,grp,mask,port,proto,pattern,context_info,id from ast_address ] Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:permissions:reload_address_table: failed to query database” From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:04 PM To: OpenSIPS users mailling list; denis7...@mail.ru Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hi Denis, Do you see any errors in logs when the reload fails ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 07:29, dpa wrote: Hello Richard It is about 1 – 1,5 week. No, I do not use subnets, only IP ad
Re: [OpenSIPS-Users] Opensips 1.11 permission module problem
Sorry, but i do not quite understand. I should unchecked all modules in "excluded_modules", save changes, than make all and make install and after that repeat all these steps but with checked modules in "excluded_modules". Am i right? It seems you've regenerated Makefile.conf, and forgot to remove db_mysql from the list of "excluded_modules". To fix this: make menuconfig -> Configure Compile Options -> Configure Excluded Modules -> [X] db_mysql Now, when you run "make all; make install", "db_mysql", the last missing piece of the puzzle, will be recompiled as well. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.01.2016 12:54, Денис Путято wrote: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello It is doesn`t help. 1) make clean 2) make menuconfig. Set all necessary parameters (including uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC ). 3) save and exit 4) make all 5) make install When starts Opensips i can see the same errors in log. You've only recompiled the opensips binary with the new flags, but forgot about all shared libraries (modules) When changing compile flags, please recompile everything with "make all", instead of just doing "make". Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.01.2016 10:38, Денис Путято wrote: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello, Bogdan The problem is still actual. Due to doc http://www.opensips.org/Documentation/TroubleShooting-OutOfMem i try to prepare to make a log of memory. I made "uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC" When i start Opensips i see in log such errors (see attachment). Thank you for any help. Sincerely, Denis How much pkg memory have you configured in your opensips ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:24, dpa wrote: 2314 From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:17 PM To: dpa; 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem How many records do you have in the address table ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:14, dpa wrote: Hello Bogdan, Yes, I see errors “Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: WARNING:core:fm_malloc: Not enough free memory, will attempt defragmentation Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_allocate_rows: no memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_rows: no private memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_result: error while converting rows Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_store_result: error while converting result Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_do_query: error while storing result for query [select ip,grp,mask,port,proto,pattern,context_info,id from ast_address ] Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:permissions:reload_address_table: failed to query database” From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:04 PM To: OpenSIPS users mailling list; denis7...@mail.ru Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hi Denis, Do you see any errors in logs when the reload fails ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 07:29, dpa wrote: Hello Richard It is about 1 – 1,5 week. No, I do not use subnets, only IP address. “There was a package memory leak that was fixed in the development tree” Where can I read about it? Thank you. From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Richard Revels Sent: Tuesday, November 17, 2015 8:55 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Are you using subnets in your address table? How often do you reload the address table? There was a package memory leak that was fixed in the development tree that might explain what you are seeing. On Wed, Nov 11, 2015 at 4:26 AM, dpa wrote: Hello! Is there any assumption about problem? From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of dpa Sent: Wednesday, October 28, 2015 4:12 PM To: 'OpenSIPS users mailling list' Subject: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello! OpenSIPS (1.11.5-notls (x86_64/linu
Re: [OpenSIPS-Users] Opensips 1.11 permission module problem
Hello It is doesn`t help. 1) make clean 2) make menuconfig. Set all necessary parameters (including uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC ). 3) save and exit 4) make all 5) make install When starts Opensips i can see the same errors in log. You've only recompiled the opensips binary with the new flags, but forgot about all shared libraries (modules) When changing compile flags, please recompile everything with "make all", instead of just doing "make". Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 29.01.2016 10:38, Денис Путято wrote: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello, Bogdan The problem is still actual. Due to doc http://www.opensips.org/Documentation/TroubleShooting-OutOfMem i try to prepare to make a log of memory. I made "uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC" When i start Opensips i see in log such errors (see attachment). Thank you for any help. Sincerely, Denis How much pkg memory have you configured in your opensips ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:24, dpa wrote: 2314 From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:17 PM To: dpa; 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem How many records do you have in the address table ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:14, dpa wrote: Hello Bogdan, Yes, I see errors “Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: WARNING:core:fm_malloc: Not enough free memory, will attempt defragmentation Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_allocate_rows: no memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_rows: no private memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_result: error while converting rows Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_store_result: error while converting result Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_do_query: error while storing result for query [select ip,grp,mask,port,proto,pattern,context_info,id from ast_address ] Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:permissions:reload_address_table: failed to query database” From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:04 PM To: OpenSIPS users mailling list; denis7...@mail.ru Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hi Denis, Do you see any errors in logs when the reload fails ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 07:29, dpa wrote: Hello Richard It is about 1 – 1,5 week. No, I do not use subnets, only IP address. “There was a package memory leak that was fixed in the development tree” Where can I read about it? Thank you. From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Richard Revels Sent: Tuesday, November 17, 2015 8:55 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Are you using subnets in your address table? How often do you reload the address table? There was a package memory leak that was fixed in the development tree that might explain what you are seeing. On Wed, Nov 11, 2015 at 4:26 AM, dpa wrote: Hello! Is there any assumption about problem? From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of dpa Sent: Wednesday, October 28, 2015 4:12 PM To: 'OpenSIPS users mailling list' Subject: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello! OpenSIPS (1.11.5-notls (x86_64/linux)) I have a periodic problem with permissions module. I could not make opensipsctl address reload (“400 Trusted table reload failed” received). In the time I have no problem with dialplan or drouting modules. Opensips reload solve the problem. In attachment log from opensips and statistic. Thank you for any help ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users _
Re: [OpenSIPS-Users] Opensips 1.11 permission module problem
Hello, Bogdan The problem is still actual. Due to doc http://www.opensips.org/Documentation/TroubleShooting-OutOfMem i try to prepare to make a log of memory. I made "uncheck F_MALLOC via the spacebar key, and check DBG_QM_MALLOC" When i start Opensips i see in log such errors (see attachment). Thank you for any help. Sincerely, Denis How much pkg memory have you configured in your opensips ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:24, dpa wrote: 2314 From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:17 PM To: dpa; 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem How many records do you have in the address table ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 12:14, dpa wrote: Hello Bogdan, Yes, I see errors “Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: WARNING:core:fm_malloc: Not enough free memory, will attempt defragmentation Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_allocate_rows: no memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_rows: no private memory left Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_convert_result: error while converting rows Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:db_mysql:db_mysql_store_result: error while converting result Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:core:db_do_query: error while storing result for query [select ip,grp,mask,port,proto,pattern,context_info,id from ast_address ] Oct 28 15:55:45 opensips-main /usr/local/opensips1.11/sbin/opensips[7715]: ERROR:permissions:reload_address_table: failed to query database” From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: Wednesday, November 18, 2015 1:04 PM To: OpenSIPS users mailling list; denis7...@mail.ru Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Hi Denis, Do you see any errors in logs when the reload fails ? Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 18.11.2015 07:29, dpa wrote: Hello Richard It is about 1 – 1,5 week. No, I do not use subnets, only IP address. “There was a package memory leak that was fixed in the development tree” Where can I read about it? Thank you. From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Richard Revels Sent: Tuesday, November 17, 2015 8:55 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Opensips 1.11 permission module problem Are you using subnets in your address table? How often do you reload the address table? There was a package memory leak that was fixed in the development tree that might explain what you are seeing. On Wed, Nov 11, 2015 at 4:26 AM, dpa wrote: Hello! Is there any assumption about problem? From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of dpa Sent: Wednesday, October 28, 2015 4:12 PM To: 'OpenSIPS users mailling list' Subject: [OpenSIPS-Users] Opensips 1.11 permission module problem Hello! OpenSIPS (1.11.5-notls (x86_64/linux)) I have a periodic problem with permissions module. I could not make opensipsctl address reload (“400 Trusted table reload failed” received). In the time I have no problem with dialplan or drouting modules. Opensips reload solve the problem. In attachment log from opensips and statistic. Thank you for any help ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users Jan 29 11:25:12 opensips-mirror opensips: ERROR:core:sr_load_module: could not open module : /usr/local/opensips1.11/lib64/opensips/modules/db_mysql.so: undefined symbol: fm_malloc Jan 29 11:25:12 opensips-mirror opensips: CRITICAL:core:yyerror: parse error in config file /usr/local/opensipsdev//etc/opensips/opensips.cfg, line 19, column 13-14: failed to load module Jan 29 11:25:12 opensips-mirror opensips: params (0x7f13b542c010, 128), called from cfg.lex: addstr(1002) Jan 29 11:25:12 opensips-mirror opensips: params (0x7f13b542c010, 128), returns address 0x7f13b54626e8 frag. 0x7f13b54626b8 (size=128) on 1 -th hit Jan 29 11:25:12 opensips-mirror opensips: ERROR:core:sr_load_module: could not open module : /usr/local/opensips1.11/lib64/opensips/modules/sl.so: undefined symbol: fm_malloc Jan 29 11:25:12 opensips-mirror opensips: CRITICAL:core:yyerror: parse
[OpenSIPS-Users] dialplan manipulation
Hello! OpenSIPS (1.11.5-notls (x86_64/linux)) I wonder if i need to control the length of the number using dialplan module, how can i do that? For example. Opensips receives number 8121234567. It uses dialplan to translate the number to 88121234567 before make route the call. At the same time if Opensips receives number 88121234567 it do nothing and sends it to DROUTING module for further routing. Thank toy for any help. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users