Re: [OpenSIPS-Users] mid registrar

2018-06-07 Thread Alexey K . via Users
Hi, isn't it what you need? Flag 'm' of mid_registrar_save function - save the contacts only in memory cache without no DB operation; Otherwise, without using it, they are seved in DB. http://www.opensips.org/html/docs/modules/2.4.x/mid_registrar.html#func_mid_registrar_save

[OpenSIPS-Users] NATHELPER vs NAT_TRAVERSAL

2018-06-07 Thread Alexey K . via Users
Hi list, I wonder what's the difference in NATHELPER and NAT_TRAVERSAL modules. They seem to do the same work and have similar functions and tests. --- BR, Alexey http://alexeyka.zantsev.com/   ___ Users mai

Re: [OpenSIPS-Users] pike & exec & iptables

2018-05-23 Thread Alexey K . via Users
Done. 1.  ipset create SIPFLOOD hash:ip timeout 120 comment 2.  iptables -A INPUT -m set --match-set SIPFLOOD src -j DROP 3. add to /etc/sudoers: opensips ALL= NOPASSWD: /sbin/ipset 4. OpenSIPS config (OPTIONS processing for test environment): exec loadmodule "exec.so" antiflood mod

Re: [OpenSIPS-Users] pike & exec & iptables

2018-05-23 Thread Alexey K . via Users
If the shell syntax gets too complex and the OpenSIPS script cannot handle it >anymore, you should make a wrapper .sh around all the logic, and only feed it >parameters. > >Best regards, > >Liviu Chircu >OpenSIPS Developer >http://www.opensips-solutions.com > >On 23.0

[OpenSIPS-Users] pike & exec & iptables

2018-05-22 Thread Alexey K . via Users
Hi all. I use module pike.so and exec.so to automatically add flooding IP addresses to firewall rejecting rules. The code is as follows: pike_check_req(); switch($retcode) { case -2:# detected once - simply drop the request exit; case -1:# detected again -

Re: [OpenSIPS-Users] register to a sip server

2018-04-18 Thread Alexey K . via Users
I had a mistake in previous advice, in a code snippet. For INVITE requests it should be like this of course: if(method=="INVITE" && $rU==00498970043400) { forward("10.0.0.10:5060"); # ip of 1000 phone } --- BR, Alexey http://alexeyka.zan

Re: [OpenSIPS-Users] register to a sip server

2018-04-18 Thread Alexey K . via Users
for:  http://lists.opensips.org/pipermail/users/2018-April/039206.html   Hello As the simplest example, having 10 or smth like that DIDs/inner phone numbers, you may use just core functions - https://www.opensips.org/Documentation/Script-CoreFunctions-2-3#toc18 and core variables https://www.o

Re: [OpenSIPS-Users] Remove contacts frol location table with same SIP_instance ID

2018-04-18 Thread Alexey K . via Users
This is for  http://lists.opensips.org/pipermail/users/2018-April/039337.html   Hi! Try option 'f' for 'save' function of 'registrar' module. I hope this is exactly what you need. --- BR, Alexey http://alexeyka.zantsev.com/  

Re: [OpenSIPS-Users] register to a sip server

2018-04-13 Thread Alexey K . via Users
Hello As the simplest example, having 10 or smth like that DIDs/inner phone numbers, you may use just core functions -  https://www.opensips.org/Documentation/Script-CoreFunctions-2-3#toc18 and core variables   https://www.opensips.org/Documentation/Script-CoreVar-2-3#toc75    to determine the

Re: [OpenSIPS-Users] register to a sip server

2018-04-13 Thread Alexey K . via Users
Hello As the simplest example, having 10 or smth like that DIDs/inner phone numbers, you may use just core functions -  https://www.opensips.org/Documentation/Script-CoreFunctions-2-3#toc18 and core variables  https://www.opensips.org/Documentation/Script-CoreVar-2-3#toc75   to determine the us

Re: [OpenSIPS-Users] register to a sip server

2018-04-13 Thread Alexey K . via Users
Hello As the simplest example, having 10 or smth like that DIDs/inner phone numbers, you may use just core functions -  https://www.opensips.org/Documentation/Script-CoreFunctions-2-3#toc18 and core variables  https://www.opensips.org/Documentation/Script-CoreVar-2-3#toc75   to determine the us

Re: [OpenSIPS-Users] SNMPstats not working

2018-03-12 Thread Alexey K . via Users
Created a ticket on github: https://github.com/OpenSIPS/opensips/issues/1306   But we removed all config files and decided to use MI_JSON  --- BR, Alexey http://alexeyka.zantsev.com/  ___ Users mailing list Us

Re: [OpenSIPS-Users] SNMPstats not working

2018-03-07 Thread Alexey K . via Users
We'll use http://www.opensips.org/html/docs/modules/2.2.x/mi_json.html --- BR, Alexey http://alexeyka.zantsev.com/___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listi

Re: [OpenSIPS-Users] SNMPstats not working

2018-03-06 Thread Alexey K . via Users
upd: created /etc/snmp/snmp.conf like this: mibs +OPENSER-MIB mibs +OPENSER-REG-MIB mibs +OPENSER-SIP-COMMON-MIB mibs +OPENSER-SIP-SERVER-MIB mibs +OPENSER-TC As for now, at least this works: sip01 ~ # snmptranslate -IR -On openserSIPRegStats .1.3.6.1.4.1.27483.3.1.2.1.6 sip01 ~ # snmpwalk -v 2

[OpenSIPS-Users] SNMPstats not working

2018-03-06 Thread Alexey K . via Users
Hi all. - CentOS 7.4.1708 - OpenSIPS 2.2.5 - configured as written here  http://www.opensips.org/html/docs/modules/2.2.x/snmpstats.html  and  http://saevolgo.blogspot.ru/2012/09/opensips-monitoring-using-snmp-part-i.html -  OPENSER-MIB, OPENSER-REG-MIB, OPENSER-SIP-COMMON-MIB,  OPENSER-SIP-SERVER

Re: [OpenSIPS-Users] Quality/delay to registered users

2018-01-27 Thread Alexey K . via Users
Thank you Bogdan, we will wait. >Пятница, 26 января 2018, 19:45 +05:00 от Bogdan-Andrei Iancu >: > >Hi Alexey, > >Right now OpenSIPs can "unregister" contacts which are no longer > answering to pinging (OPTIONS based). For the new upcoming release > 2.4 we are working to actively calc

[OpenSIPS-Users] Quality/delay to registered users

2018-01-25 Thread Alexey K . via Users
Hello all. What is the best way to measure the quality of SIP connection between OpenSIPS as a registrar server and registered subscriber? Something like in Asterisk 'sip show peers', column 'Status'. We have a great number of subscribers which are connected from GSM smartphones (via mobile i

Re: [OpenSIPS-Users] uac_auth and uac_registrant

2017-12-18 Thread Alexey K . via Users
Thank you Ovidiu. Yes, everything works! > >Hello Alexey, > >The functionality of uac_auth module is required by uac_registrant in order to >perform authentications. >You don't need to configure uac_auth parameters for uac_registrant to work. > >Regards, >Ovidiu Sas >

[OpenSIPS-Users] uac_auth and uac_registrant

2017-12-18 Thread Alexey K . via Users
So, I just loaded uac_auth.so as a dependency of uac_registrant.so, and added SIP login/pass/etc via 'opensipsctl registrar add ...' and the registration is successful. But I steel not sure what should we configure in uac_auth parameters... Though, I achieved what I wanted. ---

[OpenSIPS-Users] uac_auth and uac_registrant

2017-12-17 Thread Alexey K . via Users
Hello all. I can not understand where should I configure sip logins, passwords, etc  for outgoing SIP registrations. The documentation says that we must use uac_registrant module,  and load uac_auth before it. Both modules support configuring credentials used for SIP registration, uac_registra

Re: [OpenSIPS-Users] setflag parameters

2017-11-21 Thread Alexey K . via Users
Thank you. -- Best regards, Alexey http://alexeyka.zantsev.com/ ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

[OpenSIPS-Users] setflag parameters

2017-11-21 Thread Alexey K . via Users
Hello all. It's about 'setflag' core function's documentation. For releases 2.3 and 2.4 it's written " The value of the parameter can be in range of 0..31 ". // setflag(13); But as I know, we can also use a string parameter. // setflag(TCP_PERSISTENT); So, it's like an error in documentation. It

Re: [OpenSIPS-Users] permissions module / OpenSIPS 2.3.2 / register permissions

2017-10-13 Thread Alexey K . via Users
Thank you, Bogdan! -- BR, Alexey___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Re: [OpenSIPS-Users] sending sip options

2017-10-12 Thread Alexey K . via Users
as here http://www.opensips.org/html/docs/modules/2.3.x/load_balancer.html#idp5568448 Best regards, Alexey___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

[OpenSIPS-Users] Fwd[2]: Re: sending sip options

2017-10-12 Thread Alexey K . via Users
Oh. The sign you need is replaced here with the 'at' word. I hope you understand tht you need the sign, not the word. As here:  http://www.opensips.org/html/docs/modules/2.3.x/load_balancer.html#idp5568448   Best regards, Alexey ___ Users mailing lis

[OpenSIPS-Users] Fwd: Re: sending sip options

2017-10-12 Thread Alexey K . via Users
Oh. The sign you need is replaced here with the 'at' word. I hope you understand tht you need the sign, not the word. As here:  http://www.opensips.org/html/docs/modules/2.3.x/load_balancer.html#idp5568448   Best regards, Alexey ___ Users mailing list

Re: [OpenSIPS-Users] sending sip options

2017-10-12 Thread Alexey K . via Users
Hello. Try  not this: modparam("load_balancer", "probing_from", "x.x.x.x") but this: modparam("load_balancer", "probing_from", "ping@x.x.x.x") Best regards, Alexey___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman

[OpenSIPS-Users] (no subject)

2017-10-12 Thread Alexey K . via Users
As my friend (Kirill Galinurov, an active OpenSIPS user) told me just now,  - use 'allow_register' function with register.allow/register.deny files; - use 'check_address' function with 'address' table. Though I haven't tried yet. Regards, Alexey___ User

[OpenSIPS-Users] permissions module / OpenSIPS 2.3.2 / register permissions

2017-10-12 Thread Alexey K . via Users
Hello all. Preface -- - OpenSIPS 2.3.2 - permissions module (register permissions handling) I'd like to deny registrations from certain IP, and I've done it successfully using register.deny file. But now I'd like to add/remove addresses without restarting OpenSIPS each time. The