Re: [OpenSIPS-Users] Opensips 2.5 and fraud module

2018-06-14 Thread Denis via Users
As for me, it is not solve the problem, if we will still talking about 'per call' criteria.For example. I set 10 "total calls" with 600 seconds of the "call duration". Your idea will give us 100 minute of successful calls. Not such many for minutes, but may be a lot in money. But, if it is difficult to make control of the "call duration" per "interval", then "it is better, then nothing". Your idea decrease (in combination of the "total calls") a number of successful minutes than we can get now.But this feature should be switched off, if needed. -- С уважением, Денис.Best regards, Denis 13.06.2018, 18:40, "Liviu Chircu" :I agree - it seems like a "good in theory, bad in practice" kind offeature.  So let's see how we can make it better: would it make moresense to add a forced dialog lifetime equal to the critical threshold ofthe "call duration" setting upon calling check_fraud() (which, by theway, will also create the dialog if it's not there), while keeping theevent alerts just like they are now?Liviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.comOn 12.06.2018 13:12, Денис Путято via Users wrote: 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?___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

2018-06-09 Thread Denis via Users
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:542.       0  06.06.2018 15:38:21Then the 1st one should return -2 ("call duration" critical thresholdhit, 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 Imisunderstand your test? If not, how exactly are you expecting it to work?Best regards,Liviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.comOn 09.06.2018 11:32, Denis via Users wrote: Hello! Liviu, can i be sure, that you will analyze my question?___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

2018-06-09 Thread Denis via Users
Hello! Liviu, can i be sure, that you will analyze my question? Thank you. -- С уважением, Денис.Best regards, Denis 06.06.2018, 16:28, "Denis via Users" :And a final i made some tests and found that subsequent calls falls to this case"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");" -- С уважением, Денис.Best regards, Denis 06.06.2018, 16:12, "Денис Путято via Users" <users@lists.opensips.org>: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" <denis7...@mail.ru>: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" <li...@opensips.org>: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 mo

Re: [OpenSIPS-Users] Opensips 2.5 and fraud module

2018-06-06 Thread Denis via Users
And a final i made some tests and found that subsequent calls falls to this case"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");" -- С уважением, Денис.Best regards, Denis 06.06.2018, 16:12, "Денис Путято via Users" :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" <denis7...@mail.ru>: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" <li...@opensips.org>: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 s

Re: [OpenSIPS-Users] Opensips 2.5 and fraud module

2018-06-06 Thread Denis via Users
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. But 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" <li...@opensips.org>: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, if a user were to dial 44 and 45 prefixes in a round-robin manner, his "sequential calls" value would never exceed 1" So, it seems, that if we have TWO PREFIX field in fraud detection table with one profile, with 44 and 55 content, and ONE user were to dial 44 (for example 44667788 or 44223344 etc) and 45 (4567788 or 44223344 etc) prefixes in a round-robin manner, his "sequential calls" value would never exceed 1. In my case i have only ONE prefix - 810 - and, although, user were dial different numbers but with common prefix (810) "sequential calls" increased by one every call. And when counter reached predetermined value calls have started blocking. Am i right? Thank you. -- С уважением, Денис. Best regards, Denis ___ 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 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 2.5 and fraud module

2018-06-06 Thread Denis via Users
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" <li...@opensips.org>: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, if a user were to dial 44 and 45 prefixes in a round-robin manner, his "sequential calls" value would never exceed 1" So, it seems, that if we have TWO PREFIX field in fraud detection table with one profile, with 44 and 55 content, and ONE user were to dial 44 (for example 44667788 or 44223344 etc) and 45 (4567788 or 44223344 etc) prefixes in a round-robin manner, his "sequential calls" value would never exceed 1. In my case i have only ONE prefix - 810 - and, although, user were dial different numbers but with common prefix (810) "sequential calls" increased by one every call. And when counter reached predetermined value calls have started blocking. Am i right? Thank you. -- С уважением, Денис. Best regards, Denis ___ 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 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


[OpenSIPS-Users] Opensips 2.4.0

2018-05-16 Thread Denis via Users
Hello! First of all i want to thank everybody who made a possible to this release out. You created a great job, thank you!I read with big pleasure about 2.4.0. release and, of course, during reading, my mind tries to lay the new information about 2.4.0 on my current network topology and services. So, after i have read about 2.4.0 some questions need to be answered yet. I will very pleased to you if you can answer them or tell me where can i read about them. Here are my questions:1) Cluster MUST have L2 channel between nodes for properly working. Am i right?2) Accounting, using MySQL. How can i reach reliability, i.e. no calls must loose in the cluster, from the accounting point of view?3) I am using rtpproxy in my network topology. How rtpproxy will work with "cluster"? Because rtpproxy should have, for example, timeout socket.4) Some features of Opensips use internal memory storage. Fraud_detection, for example. What about such services? Thank you. -- С уважением, Денис.Best regards, Denis   ___
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

2018-04-27 Thread 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" <li...@opensips.org>: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, if a user were to dial 44 and 45 prefixes in a round-robin manner, his "sequential calls" value would never exceed 1" So, it seems, that if we have TWO PREFIX field in fraud detection table with one profile, with 44 and 55 content, and ONE user were to dial 44 (for example 44667788 or 44223344 etc) and 45 (4567788 or 44223344 etc) prefixes in a round-robin manner, his "sequential calls" value would never exceed 1. In my case i have only ONE prefix - 810 - and, although, user were dial different numbers but with common prefix (810) "sequential calls" increased by one every call. And when counter reached predetermined value calls have started blocking. Am i right? Thank you. -- С уважением, Денис. Best regards, Denis ___ 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 forward calls to incorrect port

2018-04-25 Thread Denis via Users
Hello, Pasan! Yes, i found where new port has been changed. Thank you. -- С уважением, Денис.Best regards, Denis 24.04.2018, 12:15, "Pasan Meemaduma via Users" <users@lists.opensips.org>:Hi Denis, Did you try to print the ruri port $rp before and after changes ?. is there any function call that could cause the destination port to be change?  On Tuesday, April 24, 2018, 2:26:13 PM GMT+5:30, Denis via Users <users@lists.opensips.org> wrote:  Hello! version: opensips 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 In attachment you can find some log of the call, where 1.1.1.1 - caller SIP UA2.2.2.2 - Opensips3.3.3.3 - callee SIP UA There is some instruction in opensips.cfg "$rU="812111";$rd="3.3.3.3";" The question is why does Opensips, in such scheme, send request to the port 5105? 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] Opensips 2.5 and fraud module

2018-04-25 Thread Denis via Users
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, if a user were to dial 44 and 45prefixes in a round-robin manner, his "sequential calls" value would never exceed 1" So, it seems, that if we have TWO PREFIX field in fraud detection table with one profile, with 44 and 55 content, and ONE user were to dial 44 (for example 44667788 or 44223344 etc) and 45 (4567788 or 44223344 etc)prefixes in a round-robin manner, his "sequential calls" value would never exceed 1.In my case i have only ONE prefix - 810 - and, although, user were dial different numbers but with common prefix (810) "sequential calls" increased by one every call. And when counter reached predetermined value calls have started blocking. Am i right? Thank you. -- С уважением, Денис.Best regards, Denis 25.04.2018, 17:56, "Liviu Chircu" <li...@opensips.org>:Denis, they all match the same prefix. "810" is the same number match, over and over again, so the sequential calls is not reset. Please fix your number matching if you want it to work differently.Best regards,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 25.04.2018 17:41, Denis via Users wrote:Hello Liviu! Sorry, for long answer. I do not quite understand 07:08 was the first call to 810 prefix from 00:00 where counters, how you mentioned, has been reset. So, after 15 calls i can see, that Opensips drop any calls with appropriate reason ("fraud detected") The only counter that has such value is "sequential_calls_critical". Another counters are long away from this value. Anyway you doubt that "sequential_calls_critical" is the reason of call`s block? Thank you. -- С уважением, Денис.Best regards, Denis 24.04.2018, 12:41, "Liviu Chircu" <li...@opensips.org>:Hi Denis,It is difficult for me to assess your intervals, and triggering reasons. For example, your sheet starts at 07:08 AM, but the counter accumulation is reset way back, at 00:00.Please provide some actual fraud event logs, with a log such as below, so we can blame the sequential calls for sure:event_route [E_FRD_CRITICAL]{    fetch_event_params("$var(param);$var(val);$var(thr);$var(user);$var(number);$var(ruleid)");    xlog("E_FRD_CRITICAL: $var(param);$var(val);$var(thr);$var(user);$var(number);$var(ruleid)\n");}Best regards,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 24.04.2018 12:06, Denis via Users wrote:Hello Liviu! "Yes, the "sequential calls" holds the size of the last batch of callssent to the same number. For example, if a user were to dial 44 and 45prefixes in a round-robin manner, his "sequential calls" value wouldnever exceed 1." Here you can find acc from one of the client (from the beginning of the 24.04)https://yadi.sk/i/Zkj70CCM3UiEyw and fraud module params looks like                    prefix: 810               start_hour: 00:00                 end_hour: 23:59            daysoftheweek: Mon-Sun              cpm_warning: 10             cpm_critical: 11    call_duration_warning: 1499   call_duration_critical: 1500      total_calls_warning: 99     total_calls_critical: 100 concurrent_calls_warning: 25concurrent_calls_critical: 30 sequential_calls_warning: 14sequential_calls_critical: 15 Something wrongeAs you can see the client dial different numbers but module detects fraud anyway. -- С уважением, Денис.Best regards, Denis 19.04.2018, 18:14, "Liviu Chircu" <li...@opensips.org>:Hi Denis!Good catch! For the first time, I documented a parameter, but forgot to export it for the script writer as well! :)It is now fixed. Thank you!Cheers,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 19.04.2018 17:28, Denis via Users wrote:Hello, Liviu! I had installed latest Opensips 2.2 (Opensips 2.2.6) In a log file, during start of Opensips, i can seeERROR:core:set_mod_param_regex: parameter  not found in module  Where is mistake? Thank you. -- С уважением, Денис.Best regards, Denis 13.04.2018, 09:49, "Denis via Users" <users@lists.opensips.org>:Ok, thank you -- С уважением, Денис.Best regards, Denis 12.04.2018, 14:23, "Liviu Chircu" <li...@opensips.org>:Use $Ts [1] to get the current UNIX timestamp in seconds.[1]: http://www.opensips.org/Documentation/Script-CoreVar-2-4#toc91Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 12.04.2018 14:08, Denis via Users wrote:Liviu, is there any way to find out current time from Opensips during call processing (some functions, variables etc which i can use in opensips.cfg)? Thank you -- С уважением, Денис.Best regards, Denis 12.04.2018, 13:50, "Liviu Chircu" <li...@opensips.org>:Hi Denis,The fraud detection module has no such mechanism, currently. We could invent

Re: [OpenSIPS-Users] Opensips 2.5 and fraud module

2018-04-25 Thread Denis via Users
Hello Liviu! Sorry, for long answer. I do not quite understand 07:08 was the first call to 810 prefix from 00:00 where counters, how you mentioned, has been reset. So, after 15 calls i can see, that Opensips drop any calls with appropriate reason ("fraud detected") The only counter that has such value is "sequential_calls_critical". Another counters are long away from this value. Anyway you doubt that "sequential_calls_critical" is the reason of call`s block? Thank you. -- С уважением, Денис.Best regards, Denis 24.04.2018, 12:41, "Liviu Chircu" <li...@opensips.org>:Hi Denis,It is difficult for me to assess your intervals, and triggering reasons. For example, your sheet starts at 07:08 AM, but the counter accumulation is reset way back, at 00:00.Please provide some actual fraud event logs, with a log such as below, so we can blame the sequential calls for sure:event_route [E_FRD_CRITICAL]{    fetch_event_params("$var(param);$var(val);$var(thr);$var(user);$var(number);$var(ruleid)");    xlog("E_FRD_CRITICAL: $var(param);$var(val);$var(thr);$var(user);$var(number);$var(ruleid)\n");}Best regards,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 24.04.2018 12:06, Denis via Users wrote:Hello Liviu! "Yes, the "sequential calls" holds the size of the last batch of callssent to the same number. For example, if a user were to dial 44 and 45prefixes in a round-robin manner, his "sequential calls" value wouldnever exceed 1." Here you can find acc from one of the client (from the beginning of the 24.04)https://yadi.sk/i/Zkj70CCM3UiEyw and fraud module params looks like                    prefix: 810               start_hour: 00:00                 end_hour: 23:59            daysoftheweek: Mon-Sun              cpm_warning: 10             cpm_critical: 11    call_duration_warning: 1499   call_duration_critical: 1500      total_calls_warning: 99     total_calls_critical: 100 concurrent_calls_warning: 25concurrent_calls_critical: 30 sequential_calls_warning: 14sequential_calls_critical: 15 Something wrongeAs you can see the client dial different numbers but module detects fraud anyway. -- С уважением, Денис.Best regards, Denis 19.04.2018, 18:14, "Liviu Chircu" <li...@opensips.org>:Hi Denis!Good catch! For the first time, I documented a parameter, but forgot to export it for the script writer as well! :)It is now fixed. Thank you!Cheers,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 19.04.2018 17:28, Denis via Users wrote:Hello, Liviu! I had installed latest Opensips 2.2 (Opensips 2.2.6) In a log file, during start of Opensips, i can seeERROR:core:set_mod_param_regex: parameter  not found in module  Where is mistake? Thank you. -- С уважением, Денис.Best regards, Denis 13.04.2018, 09:49, "Denis via Users" <users@lists.opensips.org>:Ok, thank you -- С уважением, Денис.Best regards, Denis 12.04.2018, 14:23, "Liviu Chircu" <li...@opensips.org>:Use $Ts [1] to get the current UNIX timestamp in seconds.[1]: http://www.opensips.org/Documentation/Script-CoreVar-2-4#toc91Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 12.04.2018 14:08, Denis via Users wrote:Liviu, is there any way to find out current time from Opensips during call processing (some functions, variables etc which i can use in opensips.cfg)? Thank you -- С уважением, Денис.Best regards, Denis 12.04.2018, 13:50, "Liviu Chircu" <li...@opensips.org>:Hi Denis,The fraud detection module has no such mechanism, currently. We could invent some variables such as $frd_last_warn, $frd_last_crit, $frd_first_warn, $frd_first_crit. They would output a UNIX timestamp. If there were no warnings during the current interval, the timestamp value would be 0. Can't think of anything better now - you can polish this idea and open up a pull request if you want.How many users do you have? The "cachedb_local" offers a fast and configurable hash implementation. Why wouldn't it be a good solution in order to store/fetch the above-mentioned timestamps for each of your users?Best regards,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 10.04.2018 13:11, Denis via Users wrote:Hello, Liviu! "So you want to check the time of the last fraud detection attempt for a user?" Yes, but not for store this time to anywhere.I want to detect the time of the first fraud call, and if this time, for example, between 19:00 and 09:00, make some actions. Can i do it with Opensips? Thank you. -- С уважением, Денис.Best regards, Denis 10.04.2018, 12:28, "Liviu Chircu" <li...@opensips.org>:Hi Denis,Yes, the "sequential calls" holds the size of the last batch of callssent to the same number. For example, if a user were to dial 44 and 45prefixes in a round-robin manner, his "sequential calls&quo

Re: [OpenSIPS-Users] Opensips 2.5 and fraud module

2018-04-24 Thread Denis via Users
Hello Liviu! "Yes, the "sequential calls" holds the size of the last batch of callssent to the same number. For example, if a user were to dial 44 and 45prefixes in a round-robin manner, his "sequential calls" value wouldnever exceed 1." Here you can find acc from one of the client (from the beginning of the 24.04)https://yadi.sk/i/Zkj70CCM3UiEyw and fraud module params looks like                    prefix: 810               start_hour: 00:00                 end_hour: 23:59            daysoftheweek: Mon-Sun              cpm_warning: 10             cpm_critical: 11    call_duration_warning: 1499   call_duration_critical: 1500      total_calls_warning: 99     total_calls_critical: 100 concurrent_calls_warning: 25concurrent_calls_critical: 30 sequential_calls_warning: 14sequential_calls_critical: 15 Something wrongeAs you can see the client dial different numbers but module detects fraud anyway. -- С уважением, Денис.Best regards, Denis 19.04.2018, 18:14, "Liviu Chircu" <li...@opensips.org>:Hi Denis!Good catch! For the first time, I documented a parameter, but forgot to export it for the script writer as well! :)It is now fixed. Thank you!Cheers,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 19.04.2018 17:28, Denis via Users wrote:Hello, Liviu! I had installed latest Opensips 2.2 (Opensips 2.2.6) In a log file, during start of Opensips, i can seeERROR:core:set_mod_param_regex: parameter  not found in module  Where is mistake? Thank you. -- С уважением, Денис.Best regards, Denis 13.04.2018, 09:49, "Denis via Users" <users@lists.opensips.org>:Ok, thank you -- С уважением, Денис.Best regards, Denis 12.04.2018, 14:23, "Liviu Chircu" <li...@opensips.org>:Use $Ts [1] to get the current UNIX timestamp in seconds.[1]: http://www.opensips.org/Documentation/Script-CoreVar-2-4#toc91Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 12.04.2018 14:08, Denis via Users wrote:Liviu, is there any way to find out current time from Opensips during call processing (some functions, variables etc which i can use in opensips.cfg)? Thank you -- С уважением, Денис.Best regards, Denis 12.04.2018, 13:50, "Liviu Chircu" <li...@opensips.org>:Hi Denis,The fraud detection module has no such mechanism, currently. We could invent some variables such as $frd_last_warn, $frd_last_crit, $frd_first_warn, $frd_first_crit. They would output a UNIX timestamp. If there were no warnings during the current interval, the timestamp value would be 0. Can't think of anything better now - you can polish this idea and open up a pull request if you want.How many users do you have? The "cachedb_local" offers a fast and configurable hash implementation. Why wouldn't it be a good solution in order to store/fetch the above-mentioned timestamps for each of your users?Best regards,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 10.04.2018 13:11, Denis via Users wrote:Hello, Liviu! "So you want to check the time of the last fraud detection attempt for a user?" Yes, but not for store this time to anywhere.I want to detect the time of the first fraud call, and if this time, for example, between 19:00 and 09:00, make some actions. Can i do it with Opensips? Thank you. -- С уважением, Денис.Best regards, Denis 10.04.2018, 12:28, "Liviu Chircu" <li...@opensips.org>:Hi Denis,Yes, the "sequential calls" holds the size of the last batch of callssent to the same number. For example, if a user were to dial 44 and 45prefixes in a round-robin manner, his "sequential calls" value wouldnever exceed 1.So you want to check the time of the last fraud detection attempt for auser? You can use "cachedb_local", for example, and hold the last frauddetection timestamp for each user. Also, note that check_fraud() [1] hassome useful return codes (-1 and -2), in case you don't want to use theE_FRD_ events.Cheers,[1]:http://www.opensips.org/html/docs/modules/2.4.x/fraud_detection.html#func_check_fraudLiviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.comOn 09.04.2018 09:12, Denis via Users wrote: Hello, Liviu! Thank you very much! I will try your fix. And, What does "Sequential calls" mean? These are calls to one number? So, if we have situation dealing with reset counters, i want to make one thing. I want to check the time when fraud has been detected and if this time, say, after 19:00 make some actions. How can i check time of the call processing? Thank you.___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@l

[OpenSIPS-Users] Opensips forward calls to incorrect port

2018-04-24 Thread Denis via Users
Hello! version: opensips 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 In attachment you can find some log of the call, where 1.1.1.1 - caller SIP UA2.2.2.2 - Opensips3.3.3.3 - callee SIP UA There is some instruction in opensips.cfg "$rU="812111";$rd="3.3.3.3";" The question is why does Opensips, in such scheme, send request to the port 5105? Thank you -- С уважением, Денис.Best regards, Denis   2018/04/24 10:34:10.601677 1.1.1.1:5060 -> 2.2.2.2:5060
INVITE sip:12345678@2.2.2.2 SIP/2.0
Record-Route: 
Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK7e26.2a41d06dc46ff48d206962a93914c583.0
Via: SIP/2.0/UDP 213.170.99.51:5080;branch=z9hG4bKFSB9HH5yjDN9g
Max-Forwards: 67
From:  ;tag=FUy5FtX7D4raH
To: 
Ringme-user: 0*0205*099
P-Asserted-Identity: 
Contact: 
Diversion: ;reason=unconditional
Call-ID: e107b6fc-4791-11e8-bf7d-f9235a29ebf6
CSeq: 121941561 INVITE
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY
Supported: precondition, timer, path, replaces
Content-Type: application/sdp
Content-Length: 265

v=0
o=RINGME 1524528718 1524528719 IN IP4 213.170.99.51
s=RINGME
c=IN IP4 213.170.99.51
t=0 0
m=audio 26532 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20


2018/04/24 10:34:10.604374 2.2.2.2:5060 -> 1.1.1.1:5060
SIP/2.0 100 Giving a try
Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK7e26.2a41d06dc46ff48d206962a93914c583.0
Via: SIP/2.0/UDP 213.170.99.51:5080;branch=z9hG4bKFSB9HH5yjDN9g
From:  ;tag=FUy5FtX7D4raH
To: 
Call-ID: e107b6fc-4791-11e8-bf7d-f9235a29ebf6
CSeq: 121941561 INVITE
Content-Length: 0



2018/04/24 10:34:11.636056 2.2.2.2:5060 -> 3.3.3.3:5105
INVITE sip:812111@3.3.3.3:5105 SIP/2.0
Record-Route: 
Record-Route: 
Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK7e26.eb1b8cf4.0
Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK7e26.2a41d06dc46ff48d206962a93914c583.0
Via: SIP/2.0/UDP 213.170.99.51:5080;branch=z9hG4bKFSB9HH5yjDN9g
Max-Forwards: 67
From:  ;tag=FUy5FtX7D4raH
To: 
Contact: 
Diversion: ;reason=unconditional
P-Asserted-Identity: 
Remote-Party-ID: ;party=calling;screen=yes
Call-ID: e107b6fc-4791-11e8-bf7d-f9235a29ebf6
CSeq: 121941561 INVITE
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY
Supported: precondition, timer, path, replaces
Content-Type: application/sdp
Content-Length: 287

v=0
o=RINGME 1524528718 1524528719 IN IP4 2.2.2.2
s=RINGME
c=IN IP4 2.2.2.2
t=0 0
m=audio 41308 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=nortpproxy:yes


2018/04/24 10:34:12.644198 2.2.2.2:5060 -> 3.3.3.3:5105
INVITE sip:812111@3.3.3.3:5105 SIP/2.0
Record-Route: 
Record-Route: 
Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK7e26.eb1b8cf4.0
Via: SIP/2.0/UDP 1.1.1.1;branch=z9hG4bK7e26.2a41d06dc46ff48d206962a93914c583.0
Via: SIP/2.0/UDP 213.170.99.51:5080;branch=z9hG4bKFSB9HH5yjDN9g
Max-Forwards: 67
From:  ;tag=FUy5FtX7D4raH
To: 
Contact: 
Diversion: ;reason=unconditional
P-Asserted-Identity: 
Remote-Party-ID: ;party=calling;screen=yes
Call-ID: e107b6fc-4791-11e8-bf7d-f9235a29ebf6
CSeq: 121941561 INVITE
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY
Supported: precondition, timer, path, replaces
Content-Type: application/sdp
Content-Length: 287

v=0
o=RINGME 1524528718 1524528719 IN IP4 2.2.2.2
s=RINGME
c=IN IP4 2.2.2.2
t=0 0
m=audio 41308 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=nortpproxy:yes


2018/04/24 10:34:14.650464 2.2.2.2:5060 -> 3.3.3.3:5105
INVITE sip:812111@3.3.3.3:5105 SIP/2.0
Record-Route: 
Record-Route: 
Via: SIP/2.0/UDP 2.2.2.2:5060;branch=z9hG4bK7e26.eb1b8cf4.0
Via: SIP/2.0/UDP 

Re: [OpenSIPS-Users] Opensips 2.5 and fraud module

2018-04-19 Thread Denis via Users
Hello, Liviu! I had installed latest Opensips 2.2 (Opensips 2.2.6) In a log file, during start of Opensips, i can seeERROR:core:set_mod_param_regex: parameter  not found in module  Where is mistake? Thank you. -- С уважением, Денис.Best regards, Denis 13.04.2018, 09:49, "Denis via Users" <users@lists.opensips.org>:Ok, thank you -- С уважением, Денис.Best regards, Denis 12.04.2018, 14:23, "Liviu Chircu" <li...@opensips.org>:Use $Ts [1] to get the current UNIX timestamp in seconds.[1]: http://www.opensips.org/Documentation/Script-CoreVar-2-4#toc91Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 12.04.2018 14:08, Denis via Users wrote:Liviu, is there any way to find out current time from Opensips during call processing (some functions, variables etc which i can use in opensips.cfg)? Thank you -- С уважением, Денис.Best regards, Denis 12.04.2018, 13:50, "Liviu Chircu" <li...@opensips.org>:Hi Denis,The fraud detection module has no such mechanism, currently. We could invent some variables such as $frd_last_warn, $frd_last_crit, $frd_first_warn, $frd_first_crit. They would output a UNIX timestamp. If there were no warnings during the current interval, the timestamp value would be 0. Can't think of anything better now - you can polish this idea and open up a pull request if you want.How many users do you have? The "cachedb_local" offers a fast and configurable hash implementation. Why wouldn't it be a good solution in order to store/fetch the above-mentioned timestamps for each of your users?Best regards,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 10.04.2018 13:11, Denis via Users wrote:Hello, Liviu! "So you want to check the time of the last fraud detection attempt for a user?" Yes, but not for store this time to anywhere.I want to detect the time of the first fraud call, and if this time, for example, between 19:00 and 09:00, make some actions. Can i do it with Opensips? Thank you. -- С уважением, Денис.Best regards, Denis 10.04.2018, 12:28, "Liviu Chircu" <li...@opensips.org>:Hi Denis,Yes, the "sequential calls" holds the size of the last batch of callssent to the same number. For example, if a user were to dial 44 and 45prefixes in a round-robin manner, his "sequential calls" value wouldnever exceed 1.So you want to check the time of the last fraud detection attempt for auser? You can use "cachedb_local", for example, and hold the last frauddetection timestamp for each user. Also, note that check_fraud() [1] hassome useful return codes (-1 and -2), in case you don't want to use theE_FRD_ events.Cheers,[1]:http://www.opensips.org/html/docs/modules/2.4.x/fraud_detection.html#func_check_fraudLiviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.comOn 09.04.2018 09:12, Denis via Users wrote: Hello, Liviu! Thank you very much! I will try your fix. And, What does "Sequential calls" mean? These are calls to one number? So, if we have situation dealing with reset counters, i want to make one thing. I want to check the time when fraud has been detected and if this time, say, after 19:00 make some actions. How can i check time of the call processing? Thank you.___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 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

2018-04-12 Thread Denis via Users
Liviu, is there any way to find out current time from Opensips during call processing (some functions, variables etc which i can use in opensips.cfg)? Thank you -- С уважением, Денис.Best regards, Denis 12.04.2018, 13:50, "Liviu Chircu" <li...@opensips.org>:Hi Denis,The fraud detection module has no such mechanism, currently. We could invent some variables such as $frd_last_warn, $frd_last_crit, $frd_first_warn, $frd_first_crit. They would output a UNIX timestamp. If there were no warnings during the current interval, the timestamp value would be 0. Can't think of anything better now - you can polish this idea and open up a pull request if you want.How many users do you have? The "cachedb_local" offers a fast and configurable hash implementation. Why wouldn't it be a good solution in order to store/fetch the above-mentioned timestamps for each of your users?Best regards,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 10.04.2018 13:11, Denis via Users wrote:Hello, Liviu! "So you want to check the time of the last fraud detection attempt for a user?" Yes, but not for store this time to anywhere.I want to detect the time of the first fraud call, and if this time, for example, between 19:00 and 09:00, make some actions. Can i do it with Opensips? Thank you. -- С уважением, Денис.Best regards, Denis 10.04.2018, 12:28, "Liviu Chircu" <li...@opensips.org>:Hi Denis,Yes, the "sequential calls" holds the size of the last batch of callssent to the same number. For example, if a user were to dial 44 and 45prefixes in a round-robin manner, his "sequential calls" value wouldnever exceed 1.So you want to check the time of the last fraud detection attempt for auser? You can use "cachedb_local", for example, and hold the last frauddetection timestamp for each user. Also, note that check_fraud() [1] hassome useful return codes (-1 and -2), in case you don't want to use theE_FRD_ events.Cheers,[1]:http://www.opensips.org/html/docs/modules/2.4.x/fraud_detection.html#func_check_fraudLiviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.comOn 09.04.2018 09:12, Denis via Users wrote: Hello, Liviu! Thank you very much! I will try your fix. And, What does "Sequential calls" mean? These are calls to one number? So, if we have situation dealing with reset counters, i want to make one thing. I want to check the time when fraud has been detected and if this time, say, after 19:00 make some actions. How can i check time of the call processing? Thank you.___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 2.5 and fraud module

2018-04-10 Thread Denis via Users
Hello, Liviu! "So you want to check the time of the last fraud detection attempt for a user?" Yes, but not for store this time to anywhere.I want to detect the time of the first fraud call, and if this time, for example, between 19:00 and 09:00, make some actions. Can i do it with Opensips? Thank you. -- С уважением, Денис.Best regards, Denis 10.04.2018, 12:28, "Liviu Chircu" <li...@opensips.org>:Hi Denis,Yes, the "sequential calls" holds the size of the last batch of callssent to the same number. For example, if a user were to dial 44 and 45prefixes in a round-robin manner, his "sequential calls" value wouldnever exceed 1.So you want to check the time of the last fraud detection attempt for auser? You can use "cachedb_local", for example, and hold the last frauddetection timestamp for each user. Also, note that check_fraud() [1] hassome useful return codes (-1 and -2), in case you don't want to use theE_FRD_ events.Cheers,[1]:http://www.opensips.org/html/docs/modules/2.4.x/fraud_detection.html#func_check_fraudLiviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.comOn 09.04.2018 09:12, Denis via Users wrote: Hello, Liviu! Thank you very much! I will try your fix. And, What does "Sequential calls" mean? These are calls to one number? So, if we have situation dealing with reset counters, i want to make one thing. I want to check the time when fraud has been detected and if this time, say, after 19:00 make some actions. How can i check time of the call processing? Thank you.___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

2018-04-09 Thread Denis via Users
Hello, Liviu! Thank you very much! I will try your fix. And, What does "Sequential calls" mean? These are calls to one number? So, if we have situation dealing with reset counters, i want to make one thing.I want to check the time when fraud has been detected and if this time, say, after 19:00 make some actions. How can i check time of the call processing? Thank you. -- С уважением, Денис.Best regards, Denis 05.04.2018, 14:54, "Liviu Chircu" <li...@opensips.org>:Hi Denis,I have fixed the sequential calls to also reset on interval / day change, as well as adding a new param on the 2.3 and 2.2 branches, named "use_local_time" [1], so as not to break the default behavior.The default behavior will change in 2.4+, so it will use the local time, as it's more intuitive. This can be disabled with "use_utc_time" [2], of course.Cheers,[1]: http://www.opensips.org/html/docs/modules/2.2.x/fraud_detection.html#param_use_local_time[2]: http://www.opensips.org/html/docs/modules/2.4.x/fraud_detection.html#param_use_utc_timeLiviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 04.04.2018 16:54, Denis via Users wrote:Ok, i will check it. And what about "sequential call"? Should i make TT? P.S. I will ask you about one thing yet.Can i detect current 'time' using Opensips script? And compare it someway? Thank you. -- С уважением, Денис.Best regards, Denis 04.04.2018, 15:13, "Liviu Chircu" <li...@opensips.org>:Did OpenSIPS crash or restart between 0:25 - 3:20? I double checked, and"total_calls" cannot be reset in another way.Another possibility is that the code sees GMT time. Since Москва is onGMT+3, this may well explain the situation: first calls were placedaround 21:25 GMT, then the "total calls" limit was hit. At 0:00, thecounters were reset, so another 29 calls successfully passed throughstarting with 0:20.Let's keep an eye out for the "total calls" metric during normal hours,for a couple of days, so we confirm the above hypothesis (or not).Best regards,Liviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.com___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 2.5 and fraud module

2018-04-04 Thread Denis via Users
Ok, i will check it. And what about "sequential call"? Should i make TT? P.S. I will ask you about one thing yet.Can i detect current 'time' using Opensips script? And compare it someway? Thank you. -- С уважением, Денис.Best regards, Denis 04.04.2018, 15:13, "Liviu Chircu" :Did OpenSIPS crash or restart between 0:25 - 3:20? I double checked, and"total_calls" cannot be reset in another way.Another possibility is that the code sees GMT time. Since Москва is onGMT+3, this may well explain the situation: first calls were placedaround 21:25 GMT, then the "total calls" limit was hit. At 0:00, thecounters were reset, so another 29 calls successfully passed throughstarting with 0:20.Let's keep an eye out for the "total calls" metric during normal hours,for a couple of days, so we confirm the above hypothesis (or not).Best regards,Liviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.com___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

2018-04-04 Thread Denis via Users
Hmmm it is interesting hypothesis. About time.I tried to check it directly. Now we have 04/04/2018 I made a test call and time answer was "Ср апр  4 14:45:37 MSK 2018" from unix shell command 'date', where апр - aprilСр - Wednesday4 - 4 april14:45:37 - timeMSK 2018 - timezone and a year. So in acc i see this call        id: 118143392     method: INVITE   from_tag: Q5UF9FmQrryQS     to_tag: ds-23044c48-569045bb2e17b     callid: a8754f5a-37fd-11e8-841c-e99d78f36020   sip_code: 200 sip_reason: Ok       time: 2018-04-04 14:45:33     src_in: 11   src_user: 11 src_domain: 1.1.1.1    src_out: 11     dst_in: 2   dst_user: 2    dst_out: 2 dst_domain: 2.2.2.2   duration: 3ms_duration: 2517  setuptime: 11    created: 2018-04-04 14:45:22 I.e. time from acc and time from unix shell command are the same. -- С уважением, Денис.Best regards, Denis 04.04.2018, 14:16, "Liviu Chircu" <li...@opensips.org>:Hi Denis,Some interesting data! Here's some analysis:1) First we have this detection suite:4/2/18 0:12270675427b234658X.X.X.X118102463894929Fraud_detectead0This is due to the "cpm" throttling (> 5 cpm within the last 2 minutes) hitting. Once he makes a pause until 0:15, he is able to place more calls.2) Next, another detection:4/2/18 0:222d37337b576cdf52X.X.X.X11810213550011711Fraud_detectead0This time it's due to the "total calls" hitting, since he had placed 29 calls, and the 30th one hits the "critical" threshold.3) He seems to be able to place another call 3 hours later:4/2/18 3:2020580b68fb2d185bX.X.X.X11810355692075970OK780and another 28 calls within the next 5 hours, before finally getting blocked again:4/2/18 8:325f3aa44b6451bd4cX.X.X.X11810355692075972Fraud_detectead0So the "total calls" limit is hitting again, which is good.The question is: why did the "total calls" reset for this guy? One possible answer could be timezone-related. I'm not sure whether the "0:22" from the CDR correlates with the local OpenSIPS machine time. Remember that OpenSIPS resets all stats if it detects a "new day" or a "new interval". IMO, the day change is the most likely cause of this behavior.Let me know if the above clears your questions. Also, one of your SIP statuses has a typo: "Fraud_detectead".Cheers,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 04.04.2018 14:00, Denis via Users wrote:Liviu, and another interesting case.Here, https://yadi.sk/i/-vRrJXtz3U5m2Z, you can find cdr of the fraud case.In the table:time - time of the callcallid - sip callidsrc_domain - source ipsrc_user - caller (from one number)dst_user - calleesip_reason and duration - column from acc table. Several sip callid with the same value deal with serial forking. So, sip_reason "fraud_detected" means that fraud module detected bad calls.Why do we have a situation when after fraud detected there are successful bad calls? Fraud profile is the same as mentioned early. Thank you. -- С уважением, Денис.Best regards, Denis 03.04.2018, 18:28, "Liviu Chircu" <li...@opensips.org>: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" <li...@opensips.org>: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:

Re: [OpenSIPS-Users] Opensips 2.5 and fraud module

2018-04-04 Thread Denis via Users
Liviu, and another interesting case.Here, https://yadi.sk/i/-vRrJXtz3U5m2Z, you can find cdr of the fraud case.In the table:time - time of the callcallid - sip callidsrc_domain - source ipsrc_user - caller (from one number)dst_user - calleesip_reason and duration - column from acc table. Several sip callid with the same value deal with serial forking. So, sip_reason "fraud_detected" means that fraud module detected bad calls.Why do we have a situation when after fraud detected there are successful bad calls? Fraud profile is the same as mentioned early. Thank you. -- С уважением, Денис.Best regards, Denis 03.04.2018, 18:28, "Liviu Chircu" <li...@opensips.org>: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" <li...@opensips.org>: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" <users@lists.opensips.org>: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 2.5 and fraud module

2018-04-03 Thread Denis via Users
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" <li...@opensips.org>: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" <users@lists.opensips.org>: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


Re: [OpenSIPS-Users] Opensips 2.5 and fraud module

2018-03-22 Thread Denis via Users
Hello! Is there any idea about the problem? Thank you. -- С уважением, Денис.Best regards, Denis 16.03.2018, 15:22, "Denis via Users" <users@lists.opensips.org>: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


[OpenSIPS-Users] Opensips 2.5 and fraud module

2018-03-16 Thread 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 list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Add more bodies to INTITE

2017-12-05 Thread Denis via Users
Hello, Razvan! Thank you. And yet two things:1) Can i use rest_client Module for getting prepared xml document for my task? Will this work?2) In the example i can see boundary entity. As i understand this entity serving to divide several bodies of the message. Will "add_body_part()" insert it automatically or i should do it manually? Thank you. -- С уважением, Денис.Best regards, Denis 05.12.2017, 18:37, "Răzvan Crainea" <raz...@opensips.org>:Hi, Denis!Check the new xml module[1]. You can use it to build the XML in the example.[1] http://www.opensips.org/html/docs/modules/2.3.x/xml.htmlBest regards,Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.comOn 12/05/2017 04:36 PM, Denis via Users wrote:Hello, Razvan! I want to ask to analyze the example. Can i add exactly such body, in the such format, and if possible, how?In [1] we have only one param. "body". How can i from this param? Thank you. -- С уважением, Денис.Best regards, Denis 05.12.2017, 17:21, "Răzvan Crainea" <raz...@opensips.org>:Yes, starting with OpenSIPS 2.3 you can add a body part using the add_body_part() function[1].[1] http://www.opensips.org/html/docs/modules/2.3.x/sipmsgops.html#idp5587328Best regards,Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.comOn 12/05/2017 11:02 AM, Denis via Users wrote:Hello! Opensips 2.3 In the link below you can find an example of the INVITE which i want to send to some callee. Before, i received the INVITE from caller with only SDP body. I.e. i need to add some additional body to the INVITE with structure as shown in the example. https://yadi.sk/i/389OOlLX3QKx27 Can i do it, using Opensips? 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 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] Add more bodies to INTITE

2017-12-05 Thread Denis via Users
Hello, Razvan! I want to ask to analyze the example. Can i add exactly such body, in the such format, and if possible, how?In [1] we have only one param. "body". How can i from this param? Thank you. -- С уважением, Денис.Best regards, Denis 05.12.2017, 17:21, "Răzvan Crainea" <raz...@opensips.org>:Yes, starting with OpenSIPS 2.3 you can add a body part using the add_body_part() function[1].[1] http://www.opensips.org/html/docs/modules/2.3.x/sipmsgops.html#idp5587328Best regards,Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.comOn 12/05/2017 11:02 AM, Denis via Users wrote:Hello! Opensips 2.3 In the link below you can find an example of the INVITE which i want to send to some callee. Before, i received the INVITE from caller with only SDP body. I.e. i need to add some additional body to the INVITE with structure as shown in the example. https://yadi.sk/i/389OOlLX3QKx27 Can i do it, using Opensips? 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 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


[OpenSIPS-Users] Add more bodies to INTITE

2017-12-05 Thread Denis via Users
Hello! Opensips 2.3 In the link below you can find an example of the INVITE which i want to send to some callee. Before, i received the INVITE from caller with only SDP body. I.e. i need to add some additional body to the INVITE with structure as shown in the example. https://yadi.sk/i/389OOlLX3QKx27 Can i do it, using Opensips? Thank you for any help. -- С уважением, Денис.Best regards, Denis   

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Opensips crash 2.2

2017-10-13 Thread Denis via Users
Hello! 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: ef09a3fmain.c compiled on 07:49:47 Apr  6 2017 with gcc 5.4.0 Core file is herehttps://yadi.sk/i/dHHtQ8-s3NiyiD -- С уважением, Денис.Best regards, Denis   

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips crash

2017-09-21 Thread Denis via Users
Hello, Brian Opensips 2.2. (i have a problem with 2.3)? And what should i rebuilt, what node?  -- С уважением, Денис.Best regards, Denis   22.09.2017, 01:04, "Brian :" <bri...@iptel.co>:Hi DenisWe had similar issue recently with radius accounting in a single node in a 2.2 cluster. Rebuilding the node from scratch made the issue go away.On Thursday, September 21, 2017, Denis via Users <users@lists.opensips.org> wrote:> In addition>  > "> make[2]: Entering directory '/distr/opensips-2.2/modules/aaa_radius'> Compiling rad.c> Compiling aaa_radius.c> Linking aaa_radius.so> make[2]: Leaving directory '/distr/opensips-2.2/modules/aaa_radius'>  > ">  > During opensips 2.2 installation procedure on the backup.>  > -- > С уважением, Денис.> Best regards, Denis>  >  >  >  >  > 21.09.2017, 16:39, "Denis via Users" <users@lists.opensips.org>:>> Bogdan,>  > Prehistory. I decided to migrate Opensips from 2.2. to 2.3.> Using my test VirtualBox (ubuntu server) i installed 2.3., prepare opensips.cfg an so on. On VB 2.3. started without any problem.> I have two production servers with Opensips 2.2 instance. One main, and the second backup.> All necessary packages for Opensips had been installed on these two servers early, including libradius library.>  > So i installed Opensips2.3., both on main and backup (there were no error dialing with it), to a different directory as Opensips2.2, changed some opensips.cfg parameters (not dialing with radius) and tried to start opensips.> First i tried to start on backup and got the crash. Crash occurs at start time.> Second i tried to start on main and got success.>  > I tried to reinstall Opensips on backup and during installation process i get such information dialing with radius> "> make[2]: Entering directory '/distr/opensips-2.3/modules/aaa_radius'> /bin/sh: 1: pkg-config: not found> /bin/sh: 1: pkg-config: not found> Compiling rad.c> Compiling aaa_radius.c> Linking aaa_radius.so> make[2]: Leaving directory '/distr/opensips-2.3/modules/aaa_radius'> ">  > Something like this)).>  > -- > С уважением, Денис.> Best regards, Denis>  >  >  > 21.09.2017, 15:46, "Bogdan-Andrei Iancu" <bog...@opensips.org>:>> Hi Denis,>> So, when did the crash start ? What was the change that trigger this kind of crash ?>> Regards,>> Bogdan-Andrei Iancu> OpenSIPS Founder and Developer> http://www.opensips-solutions.com>> On 09/21/2017 01:00 PM, Denis wrote:>> Hello, Bogdan!>  > It is real strange.>  > First of all i have Opensips 2.2 on the same server ("backup" server) which is started without any problem using aaa_radius module.> I have another server ("main" server) where opensips 2.3 is started without any problem using aaa_radius module.>  > Yes, /etc/radiusclient-ng/radiusclient.conf exits on backup, it has the same rights as the same file on main server. I can read this file and write into it ,i.e. it is not "broken".>  > libradius has been installed from ubuntu`s repo.>  > -- > С уважением, Денис.> Best regards, Denis>  >  >  > 21.09.2017, 12:44, "Bogdan-Andrei Iancu" <bog...@opensips.org>:>> Hi Denis,>> Not sure if there is something we can do about in OpenSIPS. As we see, in frame 2:>> #2  0x7f3622d9a1e7 in rc_read_config (filename=0x1bc83b0 "/etc/radiusclient-ng/radiusclient.conf") at config.c:457>> opensips triggers the libradius for reading the config file (for radius). And there is only one parameter, the name of the radius config file.>> The crash is inside the libradius without having opensips to pass any wrong data. So the bug is in the libradius.>> Does the /etc/radiusclient-ng/radiusclient.conf file exists ?>> How did you install the libradius ?>> Regards,>> Bogdan-Andrei Iancu> OpenSIPS Founder and Developer> http://www.opensips-solutions.com>> On 09/20/2017 06:04 PM, Denis via Users wrote:>> Hello!>  > Opensips 2.3.> Core file in attachment>  > The problem with aaa_radius module.>  > 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


Re: [OpenSIPS-Users] Opensips crash

2017-09-21 Thread Denis via Users
In addition "make[2]: Entering directory '/distr/opensips-2.2/modules/aaa_radius'Compiling rad.cCompiling aaa_radius.cLinking aaa_radius.somake[2]: Leaving directory '/distr/opensips-2.2/modules/aaa_radius' " During opensips 2.2 installation procedure on the backup. -- С уважением, Денис.Best regards, Denis 21.09.2017, 16:39, "Denis via Users" <users@lists.opensips.org>:Bogdan, Prehistory. I decided to migrate Opensips from 2.2. to 2.3.Using my test VirtualBox (ubuntu server) i installed 2.3., prepare opensips.cfg an so on. On VB 2.3. started without any problem.I have two production servers with Opensips 2.2 instance. One main, and the second backup.All necessary packages for Opensips had been installed on these two servers early, including libradius library. So i installed Opensips2.3., both on main and backup (there were no error dialing with it), to a different directory as Opensips2.2, changed some opensips.cfg parameters (not dialing with radius) and tried to start opensips.First i tried to start on backup and got the crash. Crash occurs at start time.Second i tried to start on main and got success. I tried to reinstall Opensips on backup and during installation process i get such information dialing with radius"make[2]: Entering directory '/distr/opensips-2.3/modules/aaa_radius'/bin/sh: 1: pkg-config: not found/bin/sh: 1: pkg-config: not foundCompiling rad.cCompiling aaa_radius.cLinking aaa_radius.somake[2]: Leaving directory '/distr/opensips-2.3/modules/aaa_radius'" Something like this)). -- С уважением, Денис.Best regards, Denis   21.09.2017, 15:46, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,So, when did the crash start ? What was the change that trigger this kind of crash ?Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
On 09/21/2017 01:00 PM, Denis wrote:Hello, Bogdan! It is real strange. First of all i have Opensips 2.2 on the same server ("backup" server) which is started without any problem using aaa_radius module.I have another server ("main" server) where opensips 2.3 is started without any problem using aaa_radius module. Yes, /etc/radiusclient-ng/radiusclient.conf exits on backup, it has the same rights as the same file on main server. I can read this file and write into it ,i.e. it is not "broken". libradius has been installed from ubuntu`s repo. -- С уважением, Денис.Best regards, Denis   21.09.2017, 12:44, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,Not sure if there is something we can do about in OpenSIPS. As we see, in frame 2:#2  0x7f3622d9a1e7 in rc_read_config (filename=0x1bc83b0 "/etc/radiusclient-ng/radiusclient.conf") at config.c:457opensips triggers the libradius for reading the config file (for radius). And there is only one parameter, the name of the radius config file.The crash is inside the libradius without having opensips to pass any wrong data. So the bug is in the libradius.Does the /etc/radiusclient-ng/radiusclient.conf file exists ?How did you install the libradius ?Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
On 09/20/2017 06:04 PM, Denis via Users wrote:Hello! Opensips 2.3.Core file in attachment The problem with aaa_radius module. 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 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 crash

2017-09-21 Thread Denis via Users
Bogdan, Prehistory. I decided to migrate Opensips from 2.2. to 2.3.Using my test VirtualBox (ubuntu server) i installed 2.3., prepare opensips.cfg an so on. On VB 2.3. started without any problem.I have two production servers with Opensips 2.2 instance. One main, and the second backup.All necessary packages for Opensips had been installed on these two servers early, including libradius library. So i installed Opensips2.3., both on main and backup (there were no error dialing with it), to a different directory as Opensips2.2, changed some opensips.cfg parameters (not dialing with radius) and tried to start opensips.First i tried to start on backup and got the crash. Crash occurs at start time.Second i tried to start on main and got success. I tried to reinstall Opensips on backup and during installation process i get such information dialing with radius"make[2]: Entering directory '/distr/opensips-2.3/modules/aaa_radius'/bin/sh: 1: pkg-config: not found/bin/sh: 1: pkg-config: not foundCompiling rad.cCompiling aaa_radius.cLinking aaa_radius.somake[2]: Leaving directory '/distr/opensips-2.3/modules/aaa_radius'" Something like this)). -- С уважением, Денис.Best regards, Denis   21.09.2017, 15:46, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,So, when did the crash start ? What was the change that trigger this kind of crash ?Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
On 09/21/2017 01:00 PM, Denis wrote:Hello, Bogdan! It is real strange. First of all i have Opensips 2.2 on the same server ("backup" server) which is started without any problem using aaa_radius module.I have another server ("main" server) where opensips 2.3 is started without any problem using aaa_radius module. Yes, /etc/radiusclient-ng/radiusclient.conf exits on backup, it has the same rights as the same file on main server. I can read this file and write into it ,i.e. it is not "broken". libradius has been installed from ubuntu`s repo. -- С уважением, Денис.Best regards, Denis   21.09.2017, 12:44, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,Not sure if there is something we can do about in OpenSIPS. As we see, in frame 2:#2  0x7f3622d9a1e7 in rc_read_config (filename=0x1bc83b0 "/etc/radiusclient-ng/radiusclient.conf") at config.c:457opensips triggers the libradius for reading the config file (for radius). And there is only one parameter, the name of the radius config file.The crash is inside the libradius without having opensips to pass any wrong data. So the bug is in the libradius.Does the /etc/radiusclient-ng/radiusclient.conf file exists ?How did you install the libradius ?Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
On 09/20/2017 06:04 PM, Denis via Users wrote:Hello! Opensips 2.3.Core file in attachment The problem with aaa_radius module. 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


Re: [OpenSIPS-Users] Opensips crash

2017-09-21 Thread Denis via Users
Hello, Bogdan! It is real strange. First of all i have Opensips 2.2 on the same server ("backup" server) which is started without any problem using aaa_radius module.I have another server ("main" server) where opensips 2.3 is started without any problem using aaa_radius module. Yes, /etc/radiusclient-ng/radiusclient.conf exits on backup, it has the same rights as the same file on main server. I can read this file and write into it ,i.e. it is not "broken". libradius has been installed from ubuntu`s repo. -- С уважением, Денис.Best regards, Denis   21.09.2017, 12:44, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,Not sure if there is something we can do about in OpenSIPS. As we see, in frame 2:#2  0x7f3622d9a1e7 in rc_read_config (filename=0x1bc83b0 "/etc/radiusclient-ng/radiusclient.conf") at config.c:457opensips triggers the libradius for reading the config file (for radius). And there is only one parameter, the name of the radius config file.The crash is inside the libradius without having opensips to pass any wrong data. So the bug is in the libradius.Does the /etc/radiusclient-ng/radiusclient.conf file exists ?How did you install the libradius ?Regards,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
On 09/20/2017 06:04 PM, Denis via Users wrote:Hello! Opensips 2.3.Core file in attachment The problem with aaa_radius module. 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


[OpenSIPS-Users] Opensips crash

2017-09-20 Thread Denis via Users
Hello! Opensips 2.3.Core file in attachment The problem with aaa_radius module. Thank you for any help. -- С уважением, Денис.Best regards, Denis   [BEGIN] 20.09.2017 18:01:52
root@opensips-reserv:/opensipscore# gdb /usr/local/opensips2.3/sbin/opensips 
core
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/opensips2.3/sbin/opensips...done.
[New LWP 1339]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/opensips2.3/sbin/opensips -P 
/sock/opensipstest.pid -u opensips -w /'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x7f3622d99bc8 in rc_conf_int (rh=, optname=) at config.c:500
500 config.c: No such file or directory.
(gdb) bt full
#0  0x7f3622d99bc8 in rc_conf_int (rh=, optname=) at config.c:500
option = 
#1  0x7f3622d99d98 in test_config (rh=rh@entry=0x1bd4990, 
filename=filename@entry=0x1bc83b0 "/etc/radiusclient-ng/radiusclient.conf") at 
config.c:563
No locals.
#2  0x7f3622d9a1e7 in rc_read_config (filename=0x1bc83b0 
"/etc/radiusclient-ng/radiusclient.conf") at config.c:457
configfd = 0x1bd45b0
buffer = "login_local\000/bin/login\000\000 flag for preauthenticated 
login\n\000\000ver\n\000 
leave\n\000\003\000\000\000\000\000\000\000\320.A\000\000\000\000\000\070\205 
f6\177\000\000\000\264!f\000\000\000\000(|*f6\177\000\000\260?\376\377\177\000\000N\277I\000\000\000\000\000\220?\376\377\177\000\000s;L\000\000\000\000\000\070\205
 
f6\177\000\000\060\340\233\376\377\177\000\000\227\350Bf6\177\000\000P|*f6\177\000\000\345\255@f6\177\000\000\064\005\000\000\000\000\000\000\320.A\000\000\000\000\000\220\346"...
p = 
option = 
line = 81
pos = 
rh = 0x1bd4990
#3  0x7f3622fa6cd8 in init_radius_handle () at aaa_radius.c:764
i = 0
da = 0x3
name = 
"i\351Bf6\177\000\000\003\000\000\000\066\177\000\000\000\341\233\376\377\177\000\000\r\b\000\000\001\000\000\000\360>If6\177\000\000\000\376\325+\225_\347\230\000\000\000\000\001\000\000\000\064\005\000\000\000\000\000\000\320.A\000\000\000\000\000\220\346\233\376\377\177",
 '\000' , 
"\341\233\376\377\177\000\000\\\223E\000\000\000\000\000\a\000\000\000\a\000\000\000\240\352Bf6\177\000\000\260=If6\177\000\000
 
?If6\177\000\000h\351Bf6\177\000\000\t\000\000\000\000\000\000\000\320.A\000\000\000\000\000\000\376\325+\225_\347\230\064\005\000\000\000\000\000\000\320.A\000\000\000\000\000\240\341\233\376\377\177\000\000"...
mp = 0x7f366642e96d
__FUNCTION__ = "init_radius_handle"
#4  0x7f3622fa65a1 in send_auth_fixup (param=0x7f366642ee38, param_no=1) at 
aaa_radius.c:571
s = 0x534
__FUNCTION__ = "send_auth_fixup"
#5  0x004a536e in fix_actions (a=0x7f366642e5a0) at route.c:460
t = 0x7f366642ee10
ret = 0
cmd = 0x7f36231aa1b0 
acmd = 0x4a5923 
he = 0x591988
ip = {af = 0, len = 0, u = {addrl = {139871620620168, 1716074840}, 
addr32 = {1715658632, 32566, 1716074840, 0}, addr16 = {57224, 26178, 32566, 0, 
14680, 26185, 0, 0}, 
addr = "\210\337Bf6\177\000\000X9If\000\000\000"}}
si = 0x98e75f952bd5fe00
host = {s = 0x7e9be690 "\v", len = 0}
proto = 0
port = 1332
p = 0x412ed0 <_start>
blh = 0x534
i = 1
s = {s = 0x7e9be280 "\300\342\233\376\377\177", len = 4866230}
---Type  to continue, or q  to quit--- 
model = 0x0
models = {0x534, 0x412ed0 <_start>, 0x7e9be2c0, 0x4a3db7 
, 0x596bd0 <__FUNCTION__.9323>}
xlp = 0x534
ev_id = 32767
__FUNCTION__ = "fix_actions"
#6  0x004a4d9e in fix_actions (a=0x7f3666439330) at route.c:387
t = 0x7f3666439330
ret = 0
cmd = 0x7e9be360
acmd = 0x4a40b6 
he = 0x7f366642d969
ip = {af = 4271629352, len = 32767, u = {addrl = {139871620619568, 
4271629280}, addr32 = {1715658032, 32566, 4271629280, 0}, addr16 = {56624, 
26178, 32566, 0, 58336, 65179, 0, 0}, 
addr = "0\335Bf6\177\000\000\340\343\233\376\000\000\000"}}
si = 0x7f366642dc98
host = {s = 0x534 , len = 

Re: [OpenSIPS-Users] clusterer module

2017-09-20 Thread Denis via Users
Hello, Vlad! It seems, that something wrong on my test Virtual server. I installed two proxies in two different servers (production) and there are no problems with cluster module. Link is up in both proxies. Sorry for worry about it. Thank you. -- С уважением, Денис.Best regards, Denis 18.09.2017, 14:25, "Vlad Patrascu" <vl...@opensips.org>:Hi Denis,For around 6 minutes since startup of the first proxy, the second proxy is either not fully booted up or the clusterer table is not loaded so it can't reply to its pings. The issue occurs from this point on, but the chunk of log messages you've provided ends soon after so I couldn't pinpoint the problem. Also the other logs weren't really helpful. So could you send a slightly longer sequence of logs from startup?Regards,Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.comOn 09/18/2017 10:54 AM, Denis via Users wrote:Hello! Is there any information about problem? Thank you. -- С уважением, Денис.Best regards, Denis 08.09.2017, 13:46, "Denis via Users" <users@lists.opensips.org>:Hello, Vlad! Sorry for long answer. So, here (https://yadi.sk/i/j9a4CZhS3MiJEm) you can find the log file. In this file i tried to display information in chronological order. In the log file:opensips2.2. - first proxyopensipsproxy1 - second proxy opensipsctl.sh - script for the first proxyopensipsproxyctl.sh - script for the second proxy1.1.1.1 - IP of the server (as i mentioned below both proxies are on the same server). Thank you for any help. -- С уважением, Денис.Best regards, Denis 30.08.2017, 13:05, "Vlad Patrascu" <vl...@opensips.org>:Hi Denis,I can't really tell what the problem is from the information you've provided (the traces aren't much help as the messages between nodes are binary data). Can you provide some logs relevant to the clusterer (including debug level) from around the time when the nodes first try to establish the links ?Regards,Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.comOn 08/30/2017 11:46 AM, Denis via Users wrote:Hello! Any information about the problem? Thank you. -- С уважением, Денис.Best regards, Denis 25.08.2017, 16:51, "Denis via Users" <users@lists.opensips.org>:Hello! Back to 2.2.5 resolved the problem. I got replication of, for example, dialog/profile-- С уважением, Денис.Best regards, Denis 24.08.2017, 17:46, "Denis via Users" <users@lists.opensips.org>:Hello! I am developing VoIP architecture with two proxies and one LB.Between these proxies i have a cluster, using corresponding module. All instances (proxies and LB) are on the same server.I started from 2.2 and there were no problems with the cluster.Recently, I upgraded Opensips from 2.2. to 2.3.1 and have got such situation ./opensipsctl.sh fifo clusterer_listCluster:: 1    Node:: 2 DB_ID=2 URL="" Enabled=1 Link_state=Probe   Next_hop=none Description=none ./opensipsproxyctl.sh fifo clusterer_listCluster:: 1    Node:: 1 DB_ID=1 URL="" Enabled=1 Link_state=Up  Next_hop=1 Description=none tcpdump10:33:47.101956 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 381492:381525, ack 3259636718, win 342, options [nop,nop,TS val 65425778 ecr 65424597], length 3310:33:47.101984 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 33, win 6146, options [nop,nop,TS val 65425778 ecr 65425778], length 010:33:51.725437 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65426934 ecr 65425778], length 3310:33:51.725458 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 66, win 6146, options [nop,nop,TS val 65426934 ecr 65426934], length 0 and 10:35:12.589476 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 1471487774:1471487807, ack 2063326017, win 342, options [nop,nop,TS val 65447150 ecr 65445995], length 3310:35:12.589491 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 33, win 342, options [nop,nop,TS val 65447150 ecr 65447150], length 010:35:17.158143 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65448292 ecr 65447150], length 3310:35:17.158153 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 66, win 342, options [nop,nop,TS val 65448292 ecr 65448292], length 0   As you can see node 1 cannot see node 2 (Link_state=Probe). The question is why? 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
,___Users mailing listUsers@lists.opensips.orghtt

Re: [OpenSIPS-Users] clusterer module

2017-09-18 Thread Denis via Users
Hello! Is there any information about problem? Thank you. -- С уважением, Денис.Best regards, Denis 08.09.2017, 13:46, "Denis via Users" <users@lists.opensips.org>:Hello, Vlad! Sorry for long answer. So, here (https://yadi.sk/i/j9a4CZhS3MiJEm) you can find the log file. In this file i tried to display information in chronological order. In the log file:opensips2.2. - first proxyopensipsproxy1 - second proxy opensipsctl.sh - script for the first proxyopensipsproxyctl.sh - script for the second proxy1.1.1.1 - IP of the server (as i mentioned below both proxies are on the same server). Thank you for any help. -- С уважением, Денис.Best regards, Denis 30.08.2017, 13:05, "Vlad Patrascu" <vl...@opensips.org>:Hi Denis,I can't really tell what the problem is from the information you've provided (the traces aren't much help as the messages between nodes are binary data). Can you provide some logs relevant to the clusterer (including debug level) from around the time when the nodes first try to establish the links ?Regards,Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.comOn 08/30/2017 11:46 AM, Denis via Users wrote:Hello! Any information about the problem? Thank you. -- С уважением, Денис.Best regards, Denis     25.08.2017, 16:51, "Denis via Users" <users@lists.opensips.org>:Hello! Back to 2.2.5 resolved the problem. I got replication of, for example, dialog/profile-- С уважением, Денис.Best regards, Denis 24.08.2017, 17:46, "Denis via Users" <users@lists.opensips.org>:Hello! I am developing VoIP architecture with two proxies and one LB.Between these proxies i have a cluster, using corresponding module. All instances (proxies and LB) are on the same server.I started from 2.2 and there were no problems with the cluster.Recently, I upgraded Opensips from 2.2. to 2.3.1 and have got such situation ./opensipsctl.sh fifo clusterer_listCluster:: 1    Node:: 2 DB_ID=2 URL="" Enabled=1 Link_state=Probe   Next_hop=none Description=none ./opensipsproxyctl.sh fifo clusterer_listCluster:: 1    Node:: 1 DB_ID=1 URL="" Enabled=1 Link_state=Up  Next_hop=1 Description=none tcpdump10:33:47.101956 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 381492:381525, ack 3259636718, win 342, options [nop,nop,TS val 65425778 ecr 65424597], length 3310:33:47.101984 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 33, win 6146, options [nop,nop,TS val 65425778 ecr 65425778], length 010:33:51.725437 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65426934 ecr 65425778], length 3310:33:51.725458 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 66, win 6146, options [nop,nop,TS val 65426934 ecr 65426934], length 0 and 10:35:12.589476 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 1471487774:1471487807, ack 2063326017, win 342, options [nop,nop,TS val 65447150 ecr 65445995], length 3310:35:12.589491 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 33, win 342, options [nop,nop,TS val 65447150 ecr 65447150], length 010:35:17.158143 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65448292 ecr 65447150], length 3310:35:17.158153 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 66, win 342, options [nop,nop,TS val 65448292 ecr 65448292], length 0   As you can see node 1 cannot see node 2 (Link_state=Probe). The question is why? 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
,___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


[OpenSIPS-Users] Register and sock_info

2017-09-12 Thread Denis via Users
Hello! Opensips 2.3 On dispatcher add sock_hdrOn proxy use 's' flag in save() function get such error on proxy"ERROR:registrar:set_sock_hdr: non-local socket" What am i doing wrong?Thank you for any help. -- С уважением, Денис.Best regards, Denis   

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] TCP to UDP

2017-09-12 Thread Denis via Users
Hello! Should Opensips change "transport" parameter from tcp to udp in RURI during transition from one protocol to another? Opensips 2.3 Thank you. -- С уважением, Денис.Best regards, Denis   

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] rtpproxy socket

2017-09-12 Thread Denis via Users
Hello, yes sure. 1. On initial INVITE store rtpproxy socket to any dialog value (store_dlg_value)2. In dialplan store rtpproxy socket (as match_exp) with attrs field, in which sock_id of rtpproxy has been inserted.3. Insert additional records to rtpproxy_sockets table with individual sock_id (correspond to attrs value in 2) ) for each rtpproxy instance.4. On re_INVITE fetch dialog value of rtpproxy socket5. Using dp_translate with rtpproxy socket value (as match_exp) find out sock_id of the rtpproxy (see 2) and attrs field)6. Finally, use rtpproxy_offer() with sock_id which you got in 5). -- С уважением, Денис.Best regards, Denis 12.09.2017, 10:57, "Serge S. Yuriev" <m...@nevian.org>:Hi Would you mind to share your experience with us?Thanx.--Wbr, Serge via mobile12.09.2017, 10:20, "Denis via Users" <users@lists.opensips.org>:Hello! I found solution myself. The question is closed. -- С уважением, Денис.Best regards, Denis     08.09.2017, 14:51, "Denis via Users" <users@lists.opensips.org>:Hello! Opensips 2.3 One interesting question about rtpproxy using. I can use multiple rtpproxy through one set. During each call Opensips chooses certain socket inside the certain set of proxies.Till this time everything clear.But during existing session SIP UA (caller or callee never mind) can initiate some re-Invite messages for some reason.And these messages should "marked" by rtpproxy too. And now the question, is there any way, during re-Invite processing, to tell Opensips to choose certain rtpproxy socket which has been chosen at the beginning of the call? Thank you for any help.  -- С уважением, Денис.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 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 socket

2017-09-12 Thread Denis via Users
Hello! I found solution myself. The question is closed. -- С уважением, Денис.Best regards, Denis 08.09.2017, 14:51, "Denis via Users" <users@lists.opensips.org>:Hello! Opensips 2.3 One interesting question about rtpproxy using. I can use multiple rtpproxy through one set. During each call Opensips chooses certain socket inside the certain set of proxies.Till this time everything clear.But during existing session SIP UA (caller or callee never mind) can initiate some re-Invite messages for some reason.And these messages should "marked" by rtpproxy too. And now the question, is there any way, during re-Invite processing, to tell Opensips to choose certain rtpproxy socket which has been chosen at the beginning of the call? 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


[OpenSIPS-Users] rtpproxy socket

2017-09-08 Thread Denis via Users
Hello! Opensips 2.3 One interesting question about rtpproxy using. I can use multiple rtpproxy through one set. During each call Opensips chooses certain socket inside the certain set of proxies.Till this time everything clear.But during existing session SIP UA (caller or callee never mind) can initiate some re-Invite messages for some reason.And these messages should "marked" by rtpproxy too. And now the question, is there any way, during re-Invite processing, to tell Opensips to choose certain rtpproxy socket which has been chosen at the beginning of the call? Thank you for any help.  -- С уважением, Денис.Best regards, Denis   

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] clusterer module

2017-09-08 Thread Denis via Users
Hello, Vlad! Sorry for long answer. So, here (https://yadi.sk/i/j9a4CZhS3MiJEm) you can find the log file. In this file i tried to display information in chronological order. In the log file:opensips2.2. - first proxyopensipsproxy1 - second proxy opensipsctl.sh - script for the first proxyopensipsproxyctl.sh - script for the second proxy1.1.1.1 - IP of the server (as i mentioned below both proxies are on the same server). Thank you for any help. -- С уважением, Денис.Best regards, Denis 30.08.2017, 13:05, "Vlad Patrascu" <vl...@opensips.org>:Hi Denis,I can't really tell what the problem is from the information you've provided (the traces aren't much help as the messages between nodes are binary data). Can you provide some logs relevant to the clusterer (including debug level) from around the time when the nodes first try to establish the links ?Regards,Vlad Patrascu
OpenSIPS Developer
http://www.opensips-solutions.comOn 08/30/2017 11:46 AM, Denis via Users wrote:Hello! Any information about the problem? Thank you. -- С уважением, Денис.Best regards, Denis 25.08.2017, 16:51, "Denis via Users" <users@lists.opensips.org>:Hello! Back to 2.2.5 resolved the problem. I got replication of, for example, dialog/profile-- С уважением, Денис.Best regards, Denis     24.08.2017, 17:46, "Denis via Users" <users@lists.opensips.org>:Hello! I am developing VoIP architecture with two proxies and one LB.Between these proxies i have a cluster, using corresponding module. All instances (proxies and LB) are on the same server.I started from 2.2 and there were no problems with the cluster.Recently, I upgraded Opensips from 2.2. to 2.3.1 and have got such situation ./opensipsctl.sh fifo clusterer_listCluster:: 1    Node:: 2 DB_ID=2 URL="" Enabled=1 Link_state=Probe   Next_hop=none Description=none ./opensipsproxyctl.sh fifo clusterer_listCluster:: 1    Node:: 1 DB_ID=1 URL="" Enabled=1 Link_state=Up  Next_hop=1 Description=none tcpdump10:33:47.101956 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 381492:381525, ack 3259636718, win 342, options [nop,nop,TS val 65425778 ecr 65424597], length 3310:33:47.101984 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 33, win 6146, options [nop,nop,TS val 65425778 ecr 65425778], length 010:33:51.725437 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65426934 ecr 65425778], length 3310:33:51.725458 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 66, win 6146, options [nop,nop,TS val 65426934 ecr 65426934], length 0 and 10:35:12.589476 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 1471487774:1471487807, ack 2063326017, win 342, options [nop,nop,TS val 65447150 ecr 65445995], length 3310:35:12.589491 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 33, win 342, options [nop,nop,TS val 65447150 ecr 65447150], length 010:35:17.158143 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65448292 ecr 65447150], length 3310:35:17.158153 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 66, win 342, options [nop,nop,TS val 65448292 ecr 65448292], length 0   As you can see node 1 cannot see node 2 (Link_state=Probe). The question is why? 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
,___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] codec_exists_re

2017-09-04 Thread Denis via Users
Hello Liviu! Now it is work. Thank you. -- С уважением, Денис.Best regards, Denis 29.08.2017, 20:00, "Liviu Chircu" <li...@opensips.org>:Hi Denis,I just pushed a fix for this down to 2.3. Please let me know if all is good on your side as well.Regards,Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 23.08.2017 15:14, Liviu Chircu wrote:Hi Denis,Thanks for the report - managed to replicate this 100% and opened up a GitHub issue for it [1]. Let's move the discussion over there.Best regards,[1]: https://github.com/OpenSIPS/opensips/issues/1181Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.comOn 23.08.2017 14:10, Denis via Users wrote:Hello! I have upgraded Opensips from 2.2 to version: opensips 2.3.1 (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: 62e4fdfmain.c compiled on 08:07:33 Aug 22 2017 with gcc 5.4.0 In main route i have such logic for INVITE request (without tag) "if (codec_exists_re("PCMA|PCMU|G729")) {
   codec_delete_except_re("PCMA|PCMU|G729");
} else {
  xlog("L_INFO", "main route: No codec");
  send_reply("403", "No_codec_supported");
  exit;
} " This logic worked in 2.2 but not working in 2.3. In syslog i can see "No codec" message (call fails).For making a call i use the X-lite softphone (has been using for testing 2.2.) with PCMA or PCMU codec. 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 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] clusterer module

2017-08-30 Thread Denis via Users
Hello! Any information about the problem? Thank you. -- С уважением, Денис.Best regards, Denis 25.08.2017, 16:51, "Denis via Users" <users@lists.opensips.org>:Hello! Back to 2.2.5 resolved the problem. I got replication of, for example, dialog/profile-- С уважением, Денис.Best regards, Denis 24.08.2017, 17:46, "Denis via Users" <users@lists.opensips.org>:Hello! I am developing VoIP architecture with two proxies and one LB.Between these proxies i have a cluster, using corresponding module. All instances (proxies and LB) are on the same server.I started from 2.2 and there were no problems with the cluster.Recently, I upgraded Opensips from 2.2. to 2.3.1 and have got such situation ./opensipsctl.sh fifo clusterer_listCluster:: 1    Node:: 2 DB_ID=2 URL="" Enabled=1 Link_state=Probe   Next_hop=none Description=none ./opensipsproxyctl.sh fifo clusterer_listCluster:: 1    Node:: 1 DB_ID=1 URL="" Enabled=1 Link_state=Up  Next_hop=1 Description=none tcpdump10:33:47.101956 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 381492:381525, ack 3259636718, win 342, options [nop,nop,TS val 65425778 ecr 65424597], length 3310:33:47.101984 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 33, win 6146, options [nop,nop,TS val 65425778 ecr 65425778], length 010:33:51.725437 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65426934 ecr 65425778], length 3310:33:51.725458 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 66, win 6146, options [nop,nop,TS val 65426934 ecr 65426934], length 0 and 10:35:12.589476 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 1471487774:1471487807, ack 2063326017, win 342, options [nop,nop,TS val 65447150 ecr 65445995], length 3310:35:12.589491 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 33, win 342, options [nop,nop,TS val 65447150 ecr 65447150], length 010:35:17.158143 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65448292 ecr 65447150], length 3310:35:17.158153 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 66, win 342, options [nop,nop,TS val 65448292 ecr 65448292], length 0   As you can see node 1 cannot see node 2 (Link_state=Probe). The question is why? 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] Pending OpenSIPS minor release

2017-08-28 Thread Denis via Users
Hello! Recently i wrote about problems with clusterer module. -- С уважением, Денис.Best regards, Denis 28.08.2017, 17:44, "Liviu Chircu" :Hi all,An OpenSIPS 2.3 minor release bump has been scheduled for Thursday, Aug31st. If you happen to have any GitHub OpenSIPS issues or mailing listbug threads that have not been answered yet, please let us know as soonas possible so they make it onto the fix checklist.Best regards, --Liviu ChircuOpenSIPS Developerhttp://www.opensips-solutions.com___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] clusterer module

2017-08-25 Thread Denis via Users
Hello! Back to 2.2.5 resolved the problem. I got replication of, for example, dialog/profile-- С уважением, Денис.Best regards, Denis 24.08.2017, 17:46, "Denis via Users" <users@lists.opensips.org>:Hello! I am developing VoIP architecture with two proxies and one LB.Between these proxies i have a cluster, using corresponding module. All instances (proxies and LB) are on the same server.I started from 2.2 and there were no problems with the cluster.Recently, I upgraded Opensips from 2.2. to 2.3.1 and have got such situation ./opensipsctl.sh fifo clusterer_listCluster:: 1    Node:: 2 DB_ID=2 URL="" Enabled=1 Link_state=Probe   Next_hop=none Description=none ./opensipsproxyctl.sh fifo clusterer_listCluster:: 1    Node:: 1 DB_ID=1 URL="" Enabled=1 Link_state=Up  Next_hop=1 Description=none tcpdump10:33:47.101956 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 381492:381525, ack 3259636718, win 342, options [nop,nop,TS val 65425778 ecr 65424597], length 3310:33:47.101984 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 33, win 6146, options [nop,nop,TS val 65425778 ecr 65425778], length 010:33:51.725437 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65426934 ecr 65425778], length 3310:33:51.725458 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 66, win 6146, options [nop,nop,TS val 65426934 ecr 65426934], length 0 and 10:35:12.589476 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 1471487774:1471487807, ack 2063326017, win 342, options [nop,nop,TS val 65447150 ecr 65445995], length 3310:35:12.589491 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 33, win 342, options [nop,nop,TS val 65447150 ecr 65447150], length 010:35:17.158143 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65448292 ecr 65447150], length 3310:35:17.158153 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 66, win 342, options [nop,nop,TS val 65448292 ecr 65448292], length 0   As you can see node 1 cannot see node 2 (Link_state=Probe). The question is why? 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


[OpenSIPS-Users] clusterer module

2017-08-24 Thread Denis via Users
Hello! I am developing VoIP architecture with two proxies and one LB.Between these proxies i have a cluster, using corresponding module. All instances (proxies and LB) are on the same server.I started from 2.2 and there were no problems with the cluster.Recently, I upgraded Opensips from 2.2. to 2.3.1 and have got such situation ./opensipsctl.sh fifo clusterer_listCluster:: 1    Node:: 2 DB_ID=2 URL="" Enabled=1 Link_state=Probe   Next_hop=none Description=none ./opensipsproxyctl.sh fifo clusterer_listCluster:: 1    Node:: 1 DB_ID=1 URL="" Enabled=1 Link_state=Up  Next_hop=1 Description=none tcpdump10:33:47.101956 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 381492:381525, ack 3259636718, win 342, options [nop,nop,TS val 65425778 ecr 65424597], length 3310:33:47.101984 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 33, win 6146, options [nop,nop,TS val 65425778 ecr 65425778], length 010:33:51.725437 IP 1.1.1.1.40428 > 1.1.1.1.5040: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65426934 ecr 65425778], length 3310:33:51.725458 IP 1.1.1.1.5040 > 1.1.1.1.40428: Flags [.], ack 66, win 6146, options [nop,nop,TS val 65426934 ecr 65426934], length 0 and 10:35:12.589476 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 1471487774:1471487807, ack 2063326017, win 342, options [nop,nop,TS val 65447150 ecr 65445995], length 3310:35:12.589491 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 33, win 342, options [nop,nop,TS val 65447150 ecr 65447150], length 010:35:17.158143 IP 1.1.1.1.34850 > 1.1.1.1.5041: Flags [P.], seq 33:66, ack 1, win 342, options [nop,nop,TS val 65448292 ecr 65447150], length 3310:35:17.158153 IP 1.1.1.1.5041 > 1.1.1.1.34850: Flags [.], ack 66, win 342, options [nop,nop,TS val 65448292 ecr 65448292], length 0   As you can see node 1 cannot see node 2 (Link_state=Probe). The question is why? Thank you. -- С уважением, Денис.Best regards, Denis   ___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] codec_exists_re

2017-08-23 Thread Denis via Users
Hello! I have upgraded Opensips from 2.2 to version: opensips 2.3.1 (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: 62e4fdfmain.c compiled on 08:07:33 Aug 22 2017 with gcc 5.4.0 In main route i have such logic for INVITE request (without tag) "if (codec_exists_re("PCMA|PCMU|G729")) {
   codec_delete_except_re("PCMA|PCMU|G729");
} else {
  xlog("L_INFO", "main route: No codec");
  send_reply("403", "No_codec_supported");
  exit;
}" This logic worked in 2.2 but not working in 2.3. In syslog i can see "No codec" message (call fails).For making a call i use the X-lite softphone (has been using for testing 2.2.) with PCMA or PCMU codec. Thank you for any help. -- С уважением, Денис.Best regards, Denis   

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips and clusterer

2017-06-06 Thread Denis via Users
Hello Razvan! With [1] i could make it working.Thank you. -- С уважением, Денис.Best regards, Denis 06.06.2017, 13:28, "Răzvan Crainea" <raz...@opensips.org>:Hi, Denis!Are you sure that the two opensips instances are reachable? Can you execute the 'clusterer_list' command on both servers?Also, is the dialog replication working at all?Finally, replicating both dialogs and profiles is not such a good idea. I think replication only the dialog is enough. Check out this thread[1].[1] http://lists.opensips.org/pipermail/users/2017-May/037292.htmlBest regards,Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.comOn 06/05/2017 09:33 AM, Denis via Users wrote:Hello! I am sorry but is there any information about problem?Additional i see in log such message"dialog:receive_prof_binary_packet: server: xxx.xxx.xxx.xxx:44066 temporary disabled" Two instance of the Opensips are on one server.Both instances have similar configuration.modparam("dialog", "accept_replicated_dialogs", 1)
modparam("dialog", "replicate_dialogs_to", 1)
modparam("dialog", "accept_replicated_profiles", 1)
modparam("dialog", "replicate_profiles_to", 1)
modparam("dialog", "replicate_profiles_buffer", 500)
 Thank you. -- С уважением, Денис.Best regards, Denis 31.05.2017, 11:59, "Denis via Users" <users@lists.opensips.org>:Hello! Trying to make replication of the dialog using clusterer module and get fail.In syslog i see such message after answer the callee. WARNING:dialog:receive_prof_binary_packet: bad packet type version: opensips 2.2.4 (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: 281aef5 Thank you for any help. P.S. usrloc replication working normally. -- С уважением, Денис.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


Re: [OpenSIPS-Users] Opensips and clusterer

2017-06-05 Thread Denis via Users
Hello! I am sorry but is there any information about problem?Additional i see in log such message"dialog:receive_prof_binary_packet: server: xxx.xxx.xxx.xxx:44066 temporary disabled" Two instance of the Opensips are on one server.Both instances have similar configuration.modparam("dialog", "accept_replicated_dialogs", 1)
modparam("dialog", "replicate_dialogs_to", 1)
modparam("dialog", "accept_replicated_profiles", 1)
modparam("dialog", "replicate_profiles_to", 1)
modparam("dialog", "replicate_profiles_buffer", 500)
 Thank you. -- С уважением, Денис.Best regards, Denis 31.05.2017, 11:59, "Denis via Users" <users@lists.opensips.org>:Hello! Trying to make replication of the dialog using clusterer module and get fail.In syslog i see such message after answer the callee. WARNING:dialog:receive_prof_binary_packet: bad packet type version: opensips 2.2.4 (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: 281aef5 Thank you for any help. P.S. usrloc replication working normally. -- С уважением, Денис.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


[OpenSIPS-Users] Opensips and clusterer

2017-05-31 Thread Denis via Users
Hello! Trying to make replication of the dialog using clusterer module and get fail.In syslog i see such message after answer the callee. WARNING:dialog:receive_prof_binary_packet: bad packet type version: opensips 2.2.4 (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: 281aef5 Thank you for any help. P.S. usrloc replication working normally. -- С уважением, Денис.Best regards, Denis   

___
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

2017-05-22 Thread Denis via Users
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" <bog...@opensips.org>: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 reponse2) 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 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


[OpenSIPS-Users] Opensips, load_balancing and authentication process

2017-05-17 Thread Denis via Users
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


Re: [OpenSIPS-Users] Opensips crash

2017-04-12 Thread Denis via Users
Hello, Bogdan! Is there any additional information that i should gather about problem?Or everything is clear? Thank you. -- С уважением, Денис.Best regards, Denis 06.04.2017, 15:18, "Denis via Users" <users@lists.opensips.org>:Bogdan, I copied tar to the backup server and restore opensips from tar there (on the same path as in main was).Now, when entering to the gdb on backup, it does not show any warning messages, but the result is the same f 10#0  0x in ?? ()(gdb) p p_cell->method.sNo symbol "p_cell" in current context.(gdb) p p_cell->uas.requestNo symbol "p_cell" in current context.(gdb) p p_cell->uas.statusNo symbol "p_cell" in current context. -- С уважением, Денис.Best regards, Denis   06.04.2017, 14:38, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Oh, that is good !When starting gdb, point to the old opensips binary. To solve the problem with the modules (which are libraries), see:    http://stackoverflow.com/questions/84341/how-do-i-prepend-a-directory-the-library-path-when-loading-a-core-file-in-gdb-on(the first answer)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/06/2017 12:31 PM, Denis wrote:Before making upgrade i made tar archive of the directory where opensips has been installed. Can this help us?It was crash on time only. I do not think, that o can reproduce it. -- С уважением, Денис.Best regards, Denis   06.04.2017, 12:27, "Bogdan-Andrei Iancu" <bog...@opensips.org>:yeah, the opensips binary and module libs do not match the corefile anymore :(.Do you have the old build ?  Also, was this crash on time only ? or can you reproduce it ?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/06/2017 12:17 PM, Denis wrote:Hello, Bogdan. Probably i made a big mistake.I have already updated Opensips from latest git (to solve another problem) So, when i enter in gdb i get such warning message [New LWP 14909]warning: .dynamic section for "/usr/local/opensips2.2/lib64/opensips/modules/dialog.so" is not at the expected address (wrong library or version mismatch?) Anyway, f 10#10 0x7fdf6c4ac158 in ?? () p p_cell->method.sNo symbol "p_cell" in current context. p p_cell->uas.requestNo symbol "p_cell" in current context. p p_cell->uas.statusNo symbol "p_cell" in current context. -- С уважением, Денис.Best regards, Denis   06.04.2017, 11:08, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,Please get some more info from the corefile :    f 10    p p_cell->method.s    p p_cell->uas.request    p p_cell->uas.statusThanks,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/05/2017 11:56 AM, Denis wrote:Ok, Bogdan, I'll be waiting any result. Thank you. -- С уважением, Денис.Best regards, Denis   05.04.2017, 11:53, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,Many thanks for the output - this confirm a suspicious of mine in regards to the cause of the crash - let me try to see if we can reproduce it on our side or if we need more info from your side.Please do not delete the corefile for the moment :)Best 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/05/2017 11:03 AM, Denis wrote:Hello, Bogdan! f 5#5  0x7fdf6844c4f2 in free_dlg_dlg (dlg=0x7fdf6c4ac158) at dlg_hash.c:183183                     destroy_dlg_callbacks_list(dlg->cbs.first); p *dlg->cbs.first$1 = {types = 96, callback = 0x7fdf67531300 , param = 0x0, callback_param_free = 0x7fdf675318fe , next = 0x7fdf84191080} p *dlg->cbs.first->next$2 = {types = 96, callback = 0x7fdf67531300 , param = 0x7fdf83c9f340, callback_param_free = 0x7fdf675318fe , next = 0x0} p *dlg->cbs.first->next->nextCannot access memory at address 0x0 p *dlg->cbs.first->next->next->nextCannot access memory at address 0x20 and so on with at address 0x20 -- С уважением, Денис.Best regards, Denis   04.04.2017, 18:43, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Super :)we got to something useful.Now, again in GDB please do:f 5p *dlg->cbs.firstp *dlg->cbs.first->nextp *dlg->cbs.first->next->nextand keep adding "->next" until you get error from gdb.Thanks,Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2

Re: [OpenSIPS-Users] Opensips crash

2017-04-06 Thread Denis via Users
ing" 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" <bog...@opensips.org>: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" <bog...@opensips.org>: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" <bog...@opensips.org>: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" <bog...@opensips.org>: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

Re: [OpenSIPS-Users] Opensips crash

2017-04-06 Thread Denis via Users
egards,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" <bog...@opensips.org>: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" <bog...@opensips.org>: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" <bog...@opensips.org>:Hello Denis,Thank you for the report. Do you see any CRITICAL log just before the crash, something like:    "bad pointer 0xxxx (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 for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.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


Re: [OpenSIPS-Users] Opensips crash

2017-04-06 Thread Denis via Users
 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" <bog...@opensips.org>: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" <bog...@opensips.org>: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 for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.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


Re: [OpenSIPS-Users] Opensips drouting probing

2017-04-05 Thread Denis via Users
Bogdan, it seems to be working now. Thank you! Additional moments. 1) As i see in log do_routing returns the same error, '-1', in "no prefix in dr_rules" as weel as in "All the gateways are disabled". For my project it is enough, but, in a future, i think, it will be more useful if do_routing will returns several codes, one for each reason.2) Now, in situation of "All the gateways are disabled" Opensips returns 404 without any script functions. So if 1) will be released, admin will have possibility to chose which SIP code Opensips will send in each reason. -- С уважением, Денис.Best regards, Denis   05.04.2017, 15:02, "Bogdan-Andrei Iancu" :Hi Denis,Thank you for your help - the problem was found and fixed in head, 2.3 , 2.2 and 1.11 versions.Please update from GIT and give it a try. Let me know if it works for you now.Best 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 08:38 PM, Bogdan-Andrei Iancu wrote: Could you send me (off list) the full content of this routeid route ?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 06:16 PM, Denis wrote:Yes, without routeid Opensips returns 404 code! -- С уважением, Денис.Best regards, Denis   04.04.2017, 17:59, "Bogdan-Andrei Iancu" :And if you remove the routeid (in the rule definition), does the routing works ok ?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:56 PM, Denis wrote:No, i don`t -- С уважением, Денис.Best regards, Denis   04.04.2017, 16:22, "Bogdan-Andrei Iancu" :Do you do an "drop" or "exit" in that routeid ??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:16 PM, Denis wrote:Bogdan, Ok, dr_rules has filled 'routeid' column.In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.In my example, dialed prefix does not verified. So, route with do_routing951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  
} else {
   ..
}  
1867: } The last strings for the call flow in syslog: :951][me][core xlog]:952][me][module do_routing]:1867][me][core if]:1848][me][module dp_translate]INFO:drouting:do_routing: All the gateways are disabled That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips. -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:14, "Bogdan-Andrei Iancu" :Hi Denis,Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.Use script_trace() function to see how your INVITE is handled :    http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43Regards,___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips crash

2017-04-05 Thread Denis via Users
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" <bog...@opensips.org>: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 for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.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


Re: [OpenSIPS-Users] Opensips crash

2017-04-05 Thread Denis via Users
 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" <bog...@opensips.org>: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 for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.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


Re: [OpenSIPS-Users] Opensips drouting probing

2017-04-04 Thread Denis via Users
Yes, without routeid Opensips returns 404 code! -- С уважением, Денис.Best regards, Denis   04.04.2017, 17:59, "Bogdan-Andrei Iancu" <bog...@opensips.org>:And if you remove the routeid (in the rule definition), does the routing works ok ?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:56 PM, Denis wrote:No, i don`t -- С уважением, Денис.Best regards, Denis   04.04.2017, 16:22, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Do you do an "drop" or "exit" in that routeid ??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:16 PM, Denis wrote:Bogdan, Ok, dr_rules has filled 'routeid' column.In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.In my example, dialed prefix does not verified. So, route with do_routing951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  
} else {
   ..
}  
1867: } The last strings for the call flow in syslog: :951][me][core xlog]:952][me][module do_routing]:1867][me][core if]:1848][me][module dp_translate]INFO:drouting:do_routing: All the gateways are disabled That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips. -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:14, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.Use script_trace() function to see how your INVITE is handled :    http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43Regards,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 03/28/2017 04:46 PM, Denis via Users wrote:In additional,a part of the opensips.cfg xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
send_reply("404", "Not found");
 exit;
} a part of the log Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: Prepare routingMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing_1: using weights in GW selectionMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: using dr group 2, rule_idx 0, username 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: dpid is 20004 partition is defaultMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_get_svalue: searching 15Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: input is 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: Checking with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: Regex operator testing. Got result: -1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: No matching rule for input 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: could not translate 88123364021 with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: INFO:drouting:do_routing: All the gateways are disabledMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy

Re: [OpenSIPS-Users] Opensips drouting probing

2017-04-04 Thread Denis via Users
I will check it and tell the result -- С уважением, Денис.Best regards, Denis   04.04.2017, 17:59, "Bogdan-Andrei Iancu" <bog...@opensips.org>:And if you remove the routeid (in the rule definition), does the routing works ok ?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:56 PM, Denis wrote:No, i don`t -- С уважением, Денис.Best regards, Denis   04.04.2017, 16:22, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Do you do an "drop" or "exit" in that routeid ??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:16 PM, Denis wrote:Bogdan, Ok, dr_rules has filled 'routeid' column.In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.In my example, dialed prefix does not verified. So, route with do_routing951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  
} else {
   ..
}  
1867: } The last strings for the call flow in syslog: :951][me][core xlog]:952][me][module do_routing]:1867][me][core if]:1848][me][module dp_translate]INFO:drouting:do_routing: All the gateways are disabled That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips. -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:14, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.Use script_trace() function to see how your INVITE is handled :    http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43Regards,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 03/28/2017 04:46 PM, Denis via Users wrote:In additional,a part of the opensips.cfg xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
send_reply("404", "Not found");
 exit;
} a part of the log Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: Prepare routingMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing_1: using weights in GW selectionMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: using dr group 2, rule_idx 0, username 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: dpid is 20004 partition is defaultMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_get_svalue: searching 15Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: input is 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: Checking with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: Regex operator testing. Got result: -1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: No matching rule for input 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: could not translate 88123364021 with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: INFO:drouting:do_routing: All the gateways are disabledMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy_avp_l

Re: [OpenSIPS-Users] Opensips crash

2017-04-04 Thread Denis via Users
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" <bog...@opensips.org>: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" <bog...@opensips.org>: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" <bog...@opensips.org>: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 for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.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


Re: [OpenSIPS-Users] Opensips drouting probing

2017-04-04 Thread Denis via Users
No, i don`t -- С уважением, Денис.Best regards, Denis   04.04.2017, 16:22, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Do you do an "drop" or "exit" in that routeid ??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:16 PM, Denis wrote:Bogdan, Ok, dr_rules has filled 'routeid' column.In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.In my example, dialed prefix does not verified. So, route with do_routing951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  
} else {
   ..
}  
1867: } The last strings for the call flow in syslog: :951][me][core xlog]:952][me][module do_routing]:1867][me][core if]:1848][me][module dp_translate]INFO:drouting:do_routing: All the gateways are disabled That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips. -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:14, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.Use script_trace() function to see how your INVITE is handled :    http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43Regards,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 03/28/2017 04:46 PM, Denis via Users wrote:In additional,a part of the opensips.cfg xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
send_reply("404", "Not found");
 exit;
} a part of the log Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: Prepare routingMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing_1: using weights in GW selectionMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: using dr group 2, rule_idx 0, username 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: dpid is 20004 partition is defaultMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_get_svalue: searching 15Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: input is 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: Checking with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: Regex operator testing. Got result: -1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: No matching rule for input 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: could not translate 88123364021 with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: INFO:drouting:do_routing: All the gateways are disabledMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy_avp_list: destroying list (nil)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: dialog 0x7f77f3c8bc70 changed from state 1 to state 5, due event 1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:dlg_onreply: dialog 0x7f77f3c8bc70 failed (negative reply)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 1

Re: [OpenSIPS-Users] Opensips crash

2017-04-04 Thread Denis via Users
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" <bog...@opensips.org>: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" <bog...@opensips.org>: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 for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.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


Re: [OpenSIPS-Users] Opensips drouting probing

2017-04-04 Thread Denis via Users
Bogdan, Ok, dr_rules has filled 'routeid' column.In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.In my example, dialed prefix does not verified. So, route with do_routing951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  
} else {
   ..
}  
1867: } The last strings for the call flow in syslog: :951][me][core xlog]:952][me][module do_routing]:1867][me][core if]:1848][me][module dp_translate]INFO:drouting:do_routing: All the gateways are disabled That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips. -- С уважением, Денис.Best regards, Denis   04.04.2017, 14:14, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.Use script_trace() function to see how your INVITE is handled :    http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43Regards,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 03/28/2017 04:46 PM, Denis via Users wrote:In additional,a part of the opensips.cfg xlog ("Prepare routing");
if (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
send_reply("404", "Not found");
 exit;
} a part of the log Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: Prepare routingMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing_1: using weights in GW selectionMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:do_routing: using dr group 2, rule_idx 0, username 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:drouting:internal_check_rt: found rgid 2 (rule list 0x7f77f0f63188)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: dpid is 20004 partition is defaultMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_get_svalue: searching 15Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: input is 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: Checking with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: Regex operator testing. Got result: -1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:translate: No matching rule for input 88123364021Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialplan:dp_translate_f: could not translate 88123364021 with dpid 20004Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: INFO:drouting:do_routing: All the gateways are disabledMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 2 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding string paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:evi_param_set: adding int paramMar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:core:destroy_avp_list: destroying list (nil)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:next_state_dlg: dialog 0x7f77f3c8bc70 changed from state 1 to state 5, due event 1Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:dlg_onreply: dialog 0x7f77f3c8bc70 failed (negative reply)Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 1 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: unref dlg 0x7f77f3c8bc70 with 1 -> 0 in entry 0x7f77ef003548Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:unref_dlg: ref <=0 for dialog 0x7f77f3c8bc70Mar 28 09:38:28 ubuntu-amd64 /usr/local/opensips2.2/sbin/opensips[7170]: DBG:dialog:destroy_dlg: destroying dialo

Re: [OpenSIPS-Users] Opensips crash

2017-04-04 Thread Denis via Users
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" <bog...@opensips.org>: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 for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.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


[OpenSIPS-Users] Opensips crash

2017-04-04 Thread Denis via Users
Hello! Server:: OpenSIPS (2.2.3 (x86_64/linux)) Thank you for any help. P.S. Opensips has been compiled with QM_MALLOC and DBG_MALLOC flags -- С уважением, Денис.Best regards, Denis   #0  0x7fe069215428 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/unix/sysv/linux/raise.c:54
resultvar = 0
pid = 14909
selftid = 14909
#1  0x7fe06921702a in __GI_abort () at abort.c:89
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 
0x20}, sa_mask = {__val = {137438953472, 140597487971682, 
140597487972240, 0, 140597559685120,
  140597568830240, 8422349725574235136, 140597568830016, 
140597559685120, 1, 140601814054893, 0, 0, 140601816922912, 0, 1}}, sa_flags = 
1805468968, sa_restorer = 0x7fdf6b99f000}
sigs = {__val = {32, 0 }}
#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:483
f = 
prev = 
next = 
size = 
__FUNCTION__ = "qm_free"
#3  0x7fdf67531aa1 in dlg_free_acc_mask (param=0x7fdf83c9f340) at 
acc_logic.c:211
__FUNCTION__ = "dlg_free_acc_mask"
#4  0x7fdf6842bbb5 in destroy_dlg_callbacks_list (cb=0x0) at dlg_cb.c:76
cb_t = 0x7fdf84191080
__FUNCTION__ = "destroy_dlg_callbacks_list"
#5  0x7fdf6844c4f2 in free_dlg_dlg (dlg=0x7fdf6c4ac158) at dlg_hash.c:183
dv = 
i = 
#6  destroy_dlg (dlg=dlg@entry=0x7fdf6c4ac158) at dlg_hash.c:247
ret = 
__FUNCTION__ = "destroy_dlg"
#7  0x7fdf68456bc5 in unref_dlg (dlg=0x7fdf6c4ac158, cnt=) 
at dlg_hash.c:777
d_entry = 0x7fdf6c04ea08
__FUNCTION__ = "unref_dlg"
#8  0x7fdf6a04a501 in run_trans_callbacks (type=type@entry=4096, 
trans=trans@entry=0x7fdf83d93d68, req=req@entry=0x0, rpl=rpl@entry=0x0, 
code=code@entry=0) at t_hooks.c:209
params = {req = 0x0, rpl = 0x0, code = 0, param = 0x7fdf83b74200, 
extra1 = 0x0, extra2 = 0x0}
cbp = 0x7fdf83b741f0
backup = 0x8901f8 
trans_backup = 0x
__FUNCTION__ = "run_trans_callbacks"
#9  0x7fdf6a01b219 in free_cell (dead_cell=dead_cell@entry=0x7fdf83d93d68) 
at h_table.c:125
b = 
i = 
rpl = 
tt = 
foo = 
p = 
__FUNCTION__ = "free_cell"
#10 0x7fdf6a05b212 in delete_cell (p_cell=p_cell@entry=0x7fdf83d93d68, 
unlock=unlock@entry=1) at timer.c:239
__FUNCTION__ = "delete_cell"
#11 0x7fdf6a05bf9f in wait_handler (wait_tl=0x7fdf83d93de8) at timer.c:445
p_cell = 0x7fdf83d93d68
#12 timer_routine (ticks=, set=) at timer.c:1069
tl = 0x7fdf83d93de8
tmp_tl = 0x7fdf846bcce8
id = 2
__FUNCTION__ = "timer_routine"
#13 0x004a2b6c in handle_timer_job () at timer.c:699
t = 0x7fdf6bc58ff0
---Type  to continue, or q  to quit---
__FUNCTION__ = "handle_timer_job"
#14 0x005a5452 in handle_io (idx=, event_type=, fm=) at net/net_udp.c:264
No locals.
#15 io_wait_loop_epoll (h=, t=, repeat=) at net/../io_wait_loop.h:225
ret = 
e = 
n = 2
r = 1
#16 udp_rcv_loop (si=si@entry=0x7fe029214a50) at net/net_udp.c:308
__FUNCTION__ = "udp_rcv_loop"
#17 0x005a69fb in udp_start_processes (chd_rank=chd_rank@entry=0x8902ac 
, startup_done=startup_done@entry=0x0) at net/net_udp.c:372
si = 0x7fe029214a50
load_p = 0x7fdf6e048330
pid = 
i = 3
__FUNCTION__ = "udp_start_processes"
#18 0x0041ad71 in main_loop () at main.c:675
startup_done = 0x0
chd_rank = 4
#19 main (argc=, argv=) at main.c:1265
cfg_stream = 
c = 
r = 
tmp = 0x7fff8373eef8 ""
tmp_len = 
port = 
proto = 
protos_no = 
options = 0x5ed520 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
ret = -1
seed = 42605482
__FUNCTION__ = "main"
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips drouting probing

2017-03-28 Thread Denis via Users
Hello, Bogdan! Is there any idea about problem? Thank you. -- С уважением, Денис.Best regards, Denis 24.03.2017, 07:52, "Denis" <denis7...@mail.ru>:Hello! It does not work.Opensips "freezes" a call. In syslog i see "INFO:drouting:do_routing: All the gateways are disabled" -- С уважением, Денис.Best regards, Denis   23.03.2017, 18:42, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi,You should do :    if (!do_routing(...) ) {        send_reply("404","No Route");        exit;    }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 03/23/2017 04:21 PM, Denis wrote:Hello, Bogdan! "test the return code for do_routing()".How can i do that? I triedif (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
 xlog ("Route4: Reason = $rc");
}but can see in log only "INFO:drouting:do_routing: All the gateways are disabled". Thank you. -- С уважением, Денис.Best regards, Denis   20.03.2017, 17:20, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Failure route does not help you if your routing does not start at all - if do_routing() returns negative. Again, in request route, test the return code for do_routing() - it will return a negative code if no destination is available for routing.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 03/20/2017 02:28 PM, Denis wrote:Hello, Bogdan! Yes, i know about that.In failure_route i haveif (($DLG_status == 1) && t_check_status("408"))action. And it works if i have multiple direction (using alternative mode) for the prefix.But when i use only one direction for the prefix i have the problem described below. Thank you. -- С уважением, Денис.Best regards, Denis   20.03.2017, 15:24, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,I suspect a scripting error on your side. If all the destinations are disabled, the do_routing() returns a negative code into the script - you need to handle this case and send back whatever negative reply you want. The Drouting modules does not do any SIP signalling for you.Best 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 03/17/2017 07:50 AM, Denis via Users wrote:Hello! According to drouting module documentation i am trying to introduce a probing feature to control destination SIP UA access.Almost everything works correct, besides one thing.If i have only one destination, which became inaccessible, Opensips "freezes" a call, i.e. it sends 100 trying (script logging) and after does not sent any code (i expected, that Opensips will sent 408 code in such situation after fr_timeout triggering).Inaccessible destination has "probing" status and i see OPTIONS sent by Opensis to destination. Server:: OpenSIPS (2.2.3 (x86_64/linux)) 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


Re: [OpenSIPS-Users] Opensips drouting probing

2017-03-23 Thread Denis via Users
Hello, Bogdan! "test the return code for do_routing()".How can i do that? I triedif (!do_routing("$avp(5)","W",,"$avp(300)","$avp(3)",)) {
 xlog ("Route4: Reason = $rc");
}but can see in log only "INFO:drouting:do_routing: All the gateways are disabled". Thank you. -- С уважением, Денис.Best regards, Denis   20.03.2017, 17:20, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Failure route does not help you if your routing does not start at all - if do_routing() returns negative. Again, in request route, test the return code for do_routing() - it will return a negative code if no destination is available for routing.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 03/20/2017 02:28 PM, Denis wrote:Hello, Bogdan! Yes, i know about that.In failure_route i haveif (($DLG_status == 1) && t_check_status("408"))action. And it works if i have multiple direction (using alternative mode) for the prefix.But when i use only one direction for the prefix i have the problem described below. Thank you. -- С уважением, Денис.Best regards, Denis   20.03.2017, 15:24, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,I suspect a scripting error on your side. If all the destinations are disabled, the do_routing() returns a negative code into the script - you need to handle this case and send back whatever negative reply you want. The Drouting modules does not do any SIP signalling for you.Best 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 03/17/2017 07:50 AM, Denis via Users wrote:Hello! According to drouting module documentation i am trying to introduce a probing feature to control destination SIP UA access.Almost everything works correct, besides one thing.If i have only one destination, which became inaccessible, Opensips "freezes" a call, i.e. it sends 100 trying (script logging) and after does not sent any code (i expected, that Opensips will sent 408 code in such situation after fr_timeout triggering).Inaccessible destination has "probing" status and i see OPTIONS sent by Opensis to destination. Server:: OpenSIPS (2.2.3 (x86_64/linux)) 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


Re: [OpenSIPS-Users] Opensips crash

2017-03-22 Thread Denis via Users
Ok, thank you. I will try. -- С уважением, Денис.Best regards, Denis 22.03.2017, 16:21, "Răzvan Crainea" <raz...@opensips.org>:Hi, Denis!Please recompile opensips with QM_MALLOC and DBG_MALLOC flags. This will provide more information about your crash.You can use this[1] tutorial to enable QM_MALLOC.[1] http://www.opensips.org/Documentation/TroubleShooting-OutOfMemBest regards,Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.comOn 03/22/2017 02:30 PM, Denis via Users wrote:Hello! Server:: OpenSIPS (2.2.2 (x86_64/linux)) Information from the core you can find here https://yadi.sk/i/Kr0nzENF3GF9VM 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 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


[OpenSIPS-Users] Opensips crash

2017-03-22 Thread Denis via Users
Hello! Server:: OpenSIPS (2.2.2 (x86_64/linux)) Information from the core you can find here https://yadi.sk/i/Kr0nzENF3GF9VM Thank you for any help.  -- С уважением, Денис.Best regards, Denis   ___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips drouting probing

2017-03-20 Thread Denis via Users
Hello, Bogdan! Yes, i know about that.In failure_route i haveif (($DLG_status == 1) && t_check_status("408"))action. And it works if i have multiple direction (using alternative mode) for the prefix.But when i use only one direction for the prefix i have the problem described below. Thank you. -- С уважением, Денис.Best regards, Denis   20.03.2017, 15:24, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,I suspect a scripting error on your side. If all the destinations are disabled, the do_routing() returns a negative code into the script - you need to handle this case and send back whatever negative reply you want. The Drouting modules does not do any SIP signalling for you.Best 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 03/17/2017 07:50 AM, Denis via Users wrote:Hello! According to drouting module documentation i am trying to introduce a probing feature to control destination SIP UA access.Almost everything works correct, besides one thing.If i have only one destination, which became inaccessible, Opensips "freezes" a call, i.e. it sends 100 trying (script logging) and after does not sent any code (i expected, that Opensips will sent 408 code in such situation after fr_timeout triggering).Inaccessible destination has "probing" status and i see OPTIONS sent by Opensis to destination. Server:: OpenSIPS (2.2.3 (x86_64/linux)) 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


[OpenSIPS-Users] Opensips drouting probing

2017-03-16 Thread Denis via Users
Hello! According to drouting module documentation i am trying to introduce a probing feature to control destination SIP UA access.Almost everything works correct, besides one thing.If i have only one destination, which became inaccessible, Opensips "freezes" a call, i.e. it sends 100 trying (script logging) and after does not sent any code (i expected, that Opensips will sent 408 code in such situation after fr_timeout triggering).Inaccessible destination has "probing" status and i see OPTIONS sent by Opensis to destination. Server:: OpenSIPS (2.2.3 (x86_64/linux)) Thank you for any help. -- С уважением, Денис.Best regards, Denis   

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Opensips routing

2017-03-06 Thread Denis via Users
Hello! Server:: OpenSIPS (2.2.2 (x86_64/linux)) In the link https://yadi.sk/d/6r2V-d7Y3FBTbV you can find archive with two files:- log of the call;- a part of the cfg file. In the log;1.1.1.1 - caller2.2.2.2 - Opensips3.3.3.3 - callee. The question is, should Opensips, in such situation (have a look log), makes call to the alternative direction (present in dr_carriers) in case of $avp(1229)==1 (have a look cfg) and $var(radius) !==1 (have a look cfg)? Thank you. -- С уважением, Денис.Best regards, Denis   ___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] rtpproxy and record calls

2017-02-09 Thread Denis via Users
Hello Razvan! I am sorry for long answer, only now could return to these questions. So 1) I run rtpproxy_start_recording() for both INVITE and 200 OK.The some content of the opensips.cfg"...modparam("rtpproxy", "rtpproxy_sock", "1 == udp::221") route[1]if (is_method("INVITE")&&!has_totag()) {   
if (isflagset(10)) {
  if ($avp(3000)==1)  xlog("L_INFO", "Route1:$rm was received and call_record detected(IPS=$si, SP=$sp,  IPD=$rd, RP=$Rp,  FROMTAG=$ft, TOTAG=$tt)");
   rtpproxy_start_recording("1");
 }
}. onreply_route[1]if (isflagset(10) && $avp(1003)==1) {
  rtpproxy_start_recording("1");  
}"In syslog of the Opensips instance i can see " Route1:INVITE was received and call_record detected(IPS=, SP=5068,  IPD=, RP=5065,  FROMTAG=5reZ564rtpHBg, TOTAG=)"In syslog of the rtpproxy instance i can see "INFO:handle_copy:DLGCH_KklSW2IoYjFiRlxYZ2RhYXxFSFdlK2R+f0JXXmt5MWspSVEM: starting recording RTP session on port 38598"but only when 200 OK has been received. I usertpproxy_engage("conrf",,"1",);for make an rtp proxy. 2) I understand that "/" is a valid character, but, to speak the truth, did not invite it in any call-id before. Only when started using topo_hiding with Opensips. May i ask to make some patch to remove "/" from callid generation? Thank you.-- С уважением, Денис.Best regards, Denis 04.01.2017, 18:55, "Răzvan Crainea" <raz...@opensips.org>:Hi, Denis!Regarding 1, did you try to run rtpproxy_start_recording() for both INVITE and 200 OK?Regarding 2, '/' is a valid character in Call-id. Therefore the problem is at the RTPProxy side - before writing the CDR they should escape (or transform somehow) the '/' character in something else.Best regards,Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.comOn 01/04/2017 05:24 PM, Денис Путято via Users wrote:Hello! Is there any information about the problem? Thank you.--С уважением,Путято ДенисBest regards, Denis14:47, 27 декабря 2016 г., Denis via Users <users@lists.opensips.org>: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
,___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 backup

2017-02-08 Thread Denis via Users
Sorry, but one more time.If both instance: muster and slave are in active mode (i.e. running), will slave properly handle dialogs (for example when BYE has been received) initiated on muster (in case of fail one)?I am using dialog module with db_mode = 1. Thank you. -- С уважением, Денис.Best regards, Denis   08.02.2017, 10:46, "Johan De Clercq" <jo...@democon.be>:as long as your sql instances are in perfect sync and if you use dialogs with db in realtime, it should work.I think however that it is much better to share an instance of mysql instead of using one for each opensips with replication . 2017-02-08 7:55 GMT+01:00 Denis via Users <users@lists.opensips.org>:Hello! There is one consulting question. If i have a two instance of the Opensips which are working with active/standby mode and there is mysql replication between two instance. Suppose standby Opensips will run permanently because listen parameter will be, for example, udp:eth1:5060. So, the question is, if active Opensips will fail, will standby Opensips be handle dialogs properly which have been initiated on active one early? 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


[OpenSIPS-Users] Opensips backup

2017-02-07 Thread Denis via Users
Hello! There is one consulting question. If i have a two instance of the Opensips which are working with active/standby mode and there is mysql replication between two instance. Suppose standby Opensips will run permanently because listen parameter will be, for example, udp:eth1:5060. So, the question is, if active Opensips will fail, will standby Opensips be handle dialogs properly which have been initiated on active one early? Thank you. -- С уважением, Денис.Best regards, Denis   

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips crash

2017-02-05 Thread Denis via Users
Hello, Bogdan! Could you, please, tell me how can i checked, that the version of Opensips is latest? Thank you. -- С уважением, Денис.Best regards, Denis   05.02.2017, 19:05, "Bogdan-Andrei Iancu" <bog...@opensips.org>:Hi Denis,First, be sure you use the latest 2.2 from GIT.Now, the crash indicates a memory corruption, so please activate the memory debugger:  Run 'make menuconfig' from the main source dir -> Configure Compile Options -> Configure Compile Flags -> check QM_MALLOC and DBG_MALLOC. Then hit 'q' to go back to the previous menu, and hit 'Save Changes'.Regards,Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.comOn 02/02/2017 10:03 AM, Denis via Users wrote:Hello! Server:: OpenSIPS (2.2.2 (x86_64/linux)) Information from the core file: https://yadi.sk/i/IfhdM1Y83CQvPk 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


[OpenSIPS-Users] rtpproxy and record calls

2016-12-27 Thread 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 list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] rtpproxy 2.0 and extractaudio

2016-12-27 Thread Denis via Users
Hello, Flavio! Thank you very much for your help! I made some test and it worked.But, in additional, i want to ask you about g729 codec. In rtpproxy documentation says that beginning from 2.0 g729 codec supported.In the dictionary of extractaudo i see some g729* files. Is there necessary to compile bcg729, or it needs exactly for extractaudio? Thank you.  -- С уважением, Денис.Best regards, Denis   27.12.2016, 11:27, "Flavio Goncalves" <fla...@voffice.com.br>:Hi,  Yes you can extract audio from rtpproxy. The extractaudio utility is very handy and you can compile with G.729 from the linphone project bcg729. It is very easy to use, simply  use the utility followed by the name of the recording without any extension. Check the source code for the other options. Running without parameters gives you the command syntax. The only tip, is save the rtp in PCAP mode and  don't use the file extension when calling the command. It mixes both channels together automagically.  Best regards,  Flavio E. Goncalves   2016-12-24 11:07 GMT-02:00 Денис Путято via Users <users@lists.opensips.org>:I read about it, but if i need extract g729?--С уважением,Путято ДенисBest regards, Denis18:08, 23 декабря 2016 г., Ovidiu Sas <o...@voipembedded.com>: Here are the steps to extract the audio:https://voipembedded.wordpress.com/2011/11/15/extracting-audio-from-calls-recorded-with-rtpproxy/ Regards, Ovidiu Sas  On Dec 23, 2016 09:52, "Denis via Users" <users@lists.opensips.org> 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" <bog...@opensips.org>:Hi Denis,You mean to record the RTP going through rtpproxy ?Regards,Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://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 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 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

2016-12-23 Thread Denis via Users
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 Iancu
OpenSIPS Founder and Developer
http://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 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] uac_replace_from and top_hiding

2016-12-23 Thread Denis via Users
Ok, thank you. -- С уважением, Денис.Best regards, Denis 23.12.2016, 15:56, "Răzvan Crainea" <raz...@opensips.org>:Hi, Denis!No, topology_hiding is not meant to change the From and To domains. If you want to change them, you have to do it explicitely in the script using the uac_replace_from/to() functions. There are no incompatibilities between topology_hiding and these functions, they should work just fine.Best regards,Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.comOn 12/23/2016 02:49 PM, Denis via Users wrote:Hello! I wander is there any reason to use uac_replace_from function with top_hiding? Or this will not work?Because top_hiding doesn`t change "From domain" field. -- С уважением, Денис.Best regards, Denis___
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


[OpenSIPS-Users] uac_replace_from and top_hiding

2016-12-23 Thread Denis via Users
Hello! I wander is there any reason to use uac_replace_from function with top_hiding? Or this will not work?Because top_hiding doesn`t change "From domain" field. -- С уважением, Денис.Best regards, Denis   

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users