Re: [SR-Users] Limiting calls based on CLI and dst number

2016-12-18 Thread Cibin Paul
Hi, Thank you for all your suggestions. I tried the code in route[RELAY] and is working as expected. Need to do couple of tests and will move to production. Regards Cibin > On 18-Dec-2016, at 12:14 PM, Aqs Younas wrote: > > in this case you have to manually take care of in dialog reques

Re: [SR-Users] Limiting calls based on CLI and dst number

2016-12-16 Thread Cibin Paul
Hi, I defined the following two parameters and the error was gone. Still fighting to make the logic work modparam("dialog", "dlg_flag", 4) modparam("dialog", "profiles_with_value", "caller ; callee") Thanks & Regards Cibin > On 17-

Re: [SR-Users] Limiting calls based on CLI and dst number

2016-12-16 Thread Cibin Paul
{ route(LOADBALANCE); } #!endif route(LOCATION); route(RELAY); } reply_route { unset_dlg_profile("caller","$fu"); } Thanks & Regards Cibin > On 16-Dec-2016, at 8:56 PM, Cibin Paul wrote: > > Th

Re: [SR-Users] Limiting calls based on CLI and dst number

2016-12-16 Thread Cibin Paul
Thanks Alex, I will try your suggestion and update here. Regards Cibin On 16-Dec-2016, at 8:38 PM, Alex Balashov wrote: > > The dialog module (dialog, not dialog_ng) would be a cleaner and more > natural solution, since it handles most possible eventualities of dialog > state transition for

Re: [SR-Users] Limiting calls based on CLI and dst number

2016-12-16 Thread Cibin Paul
> On 16-Dec-2016, at 6:34 PM, David Villasmil > wrote: > > you can achieve that with the dialog module. > http://www.kamailio.org/docs/modules/4.4.x/modules/dialog_ng.html > <http://www.kamailio.org/docs/modules/4.4.x/modules/dialog_ng.html> > > Regards, > >

[SR-Users] Limiting calls based on CLI and dst number

2016-12-16 Thread Cibin Paul
Hi, Is there a way to limit the number of active calls per cli or dst number basis? Yesterday my system had a ddos attack in which 123456 (CLI) was hitting 2345 (DID) at a rate of 100-200 calls per minute. I would like to restrict to 2-4 simultaneous calls per CLI/DST. Any help would be apprec

Re: [SR-Users] Updating to SIREMIS 4.3

2016-12-14 Thread Cibin Paul
Hi, Looks like the default timezone is not set for php. Can you check wether your php.ini file has date.timezone = "UTC"? Regards Cibin > On 15-Dec-2016, at 6:49 AM, Kevin Greene wrote: > > Hello fellow SIP people: > > I upgraded from SIREMIS 4.2 to 4.3 for my Kamailio system and I now get t

Re: [SR-Users] Specify alternative OpenSSL engine for Kamailio

2016-06-24 Thread Cibin Paul
Hi, Did you install openssl with shared libraries? If you have pkg-config available, check the output of pkg-config --libs openssl pkg-config --libs libssl Openssl.pc and libssl.pc should be pointed to your new openssl libraries. This is how it worked for me. No changes required in kamaili

Re: [SR-Users] Compiling kamailio with custom openssl

2016-06-23 Thread Cibin Paul
s. Sometimes other > libs might be needed, but then you will get a missing symbol error. > > Cheers, > Daniel > > On 24/06/16 07:08, Cibin Paul wrote: >> Thanks Daniel, >> >> I reconfigured the libssl libraries and got the following result for ldd &

Re: [SR-Users] Compiling kamailio with custom openssl

2016-06-23 Thread Cibin Paul
27; in addition > of what you have there. > > Cheers, > Daniel > > On 23/06/16 09:42, Cibin Paul wrote: >> Hello, >> >> Please find the attached Makefile for tls >> >> Thanks & Regards >> Cibin >> >> >> >> >

Re: [SR-Users] Compiling kamailio with custom openssl

2016-06-23 Thread Cibin Paul
-linux-x86-64.so.2 (0x003976a0) Thanks & Regards Cibin > On 23-Jun-2016, at 1:12 PM, Cibin Paul wrote: > > Hello, > > Please find the attached Makefile for tls > > Thanks & Regards > Cibin > > > > > >> On 23-Jun-2016, a

Re: [SR-Users] Compiling kamailio with custom openssl

2016-06-23 Thread Cibin Paul
perly made. Maybe you can attach it and we can see what is the problem.Cheers, Daniel On 23/06/16 09:36, Cibin Paul wrote: Hello, Yes I have the old libssl too. But the /usr/local/ssl/lib has the new version which

Re: [SR-Users] Compiling kamailio with custom openssl

2016-06-23 Thread Cibin Paul
t; Cheers, > Daniel > > On 23/06/16 09:19, Cibin Paul wrote: >> Hi, >> >> Any pointer please >> >> Regards >> Cibin >> >> >>> On 20-Jun-2016, at 1:36 PM, Cibin Paul < >>> <mailto:paul_ci...@me.com>paul_ci...@me

Re: [SR-Users] Compiling kamailio with custom openssl

2016-06-23 Thread Cibin Paul
Hi, Any pointer please Regards Cibin > On 20-Jun-2016, at 1:36 PM, Cibin Paul wrote: > > Hello Daniel, > > Sorry for late response. I tried adding the following entry in > modules/tls/Makefile > > ifneq ($(SSL_BUILDER),) > DEFS += -I/usr/local/ssl/inclu

Re: [SR-Users] Compiling kamailio with custom openssl

2016-06-20 Thread Cibin Paul
o, > > edit the modules/tls/Makefile to set the DEFS and LIBS with the paths to > your lib. > > Cheers, > Daniel > > > On 17/06/16 13:30, Cibin Paul wrote: >> Hi, >> >> Can any one guide me to compile kamailio with cus

[SR-Users] Compiling kamailio with custom openssl

2016-06-17 Thread Cibin Paul
Hi, Can any one guide me to compile kamailio with custom openssl path please. Thanks & Regards Cibin ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman

Re: [SR-Users] Getting sip.instance in INVITE

2016-05-08 Thread Cibin Paul
; Daniel > > On 05/05/16 12:25, Cibin Paul wrote: >> Hi, >> >> How can I get sip.instance value in the sip header of INVITE? I do get this >> value during REGISTER >> >> Thanks & Regards >> Cibin >> >> >> >> __

[SR-Users] Getting sip.instance in INVITE

2016-05-05 Thread Cibin Paul
Hi, How can I get sip.instance value in the sip header of INVITE? I do get this value during REGISTER Thanks & Regards Cibin ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-

Re: [SR-Users] Random number generation kamailio

2016-03-23 Thread Cibin Paul
e above > assignment -- that will make the result to be string, otherwise will be > another int, rounded after overflow. > > To get string from concatenating two integers you can use alternatives as > pv_printf(...) or $_s(...). > > Cheers, > Daniel > > > On

Re: [SR-Users] Random number generation kamailio

2016-03-23 Thread Cibin Paul
gt; On 23-Mar-2016, at 3:33 PM, Cibin Paul wrote: > > Daniel, > > I tried using $RANDOM. It is always giving a random value between 9 digits to > 10 digits How can I get a random value between 10 digits to 13 digits. > > Regards > Cibin > > > >> On

Re: [SR-Users] Random number generation kamailio

2016-03-23 Thread Cibin Paul
Daniel, I tried using $RANDOM. It is always giving a random value between 9 digits to 10 digits How can I get a random value between 10 digits to 13 digits. Regards Cibin > On 22-Mar-2016, at 1:19 PM, Cibin Paul wrote: > > Thanks Daniel for the pointer. I will check bot

Re: [SR-Users] Random number generation kamailio

2016-03-22 Thread Cibin Paul
Thanks Daniel for the pointer. I will check both modules Regards Cibin > On 22-Mar-2016, at 1:13 PM, Daniel-Constantin Mierla > wrote: > > > > On 22/03/16 08:40, Cibin Paul wrote: >> Thanks Daniel, >> >> I will try app_lua as you said this being fa

Re: [SR-Users] Random number generation kamailio

2016-03-22 Thread Cibin Paul
> Hello, > > besides $RANDOM from cfgutils as pointed already, you can use an > embedded interpreter (e.g., app_lua is really fast). > > If you need some unique values, but not only numbers, see uuid module. > > Cheers, > Daniel > > On 22/03/16 07:54, Cibin Pa

Re: [SR-Users] Random number generation kamailio

2016-03-22 Thread Cibin Paul
Thanks a lot Alex, Now using this random generated number, can I modify the ANI something like this on INVITE if(!($fU=~"^(\+1|1[1-9][0-9]{10})$")) { $fU = ($RANDOM / 73249615); } Regards Cibin > On 22-Mar-2016, at 12:28 PM, Alex Balashov wrote: > > Cibin, >

[SR-Users] Random number generation kamailio

2016-03-21 Thread Cibin Paul
Hi, How can I generate a random number say of length 10-14 in Kamailio. Can I use cfgutils for this. Please advise Regards Cibin ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.s

Re: [SR-Users] SIPURI sending private IP address

2014-12-29 Thread Cibin Paul
Thanks a lot Luis. It worked like a charm. Regards Cibin > On 28-Dec-2014, at 9:50 am, Cibin Paul wrote: > > Thanks Luis. I will check today and inform you. > > Regards > Cibin > > On 28-Dec-2014, at 9:06 am, Luis Jimenez <mailto:ljjime...@gmail.com>> w

Re: [SR-Users] SIPURI sending private IP address

2014-12-28 Thread Cibin Paul
t; the request and you can send that to Asterisk using append_hf. > > append_hf("X-orig-IP: $si"); > > > In Asterisk you can access the headers as ${SIP_HEADER(X-orig-IP)} > > >> On Sat, Dec 27, 2014 at 7:00 PM, Cibin Paul wrote: >> Hey, thanks fo

Re: [SR-Users] SIPURI sending private IP address

2014-12-27 Thread Cibin Paul
o > behind asterisk servers, does that mean the phone is sending to asterisk > first, which then forwards to kamailio? > > Cheers, > Daniel > >> On 26/12/14 18:37, Cibin Paul wrote: >> Hi, >> >> I have a kamailio 4.1 as a gateway and registrar behind

[SR-Users] SIPURI sending private IP address

2014-12-26 Thread Cibin Paul
Hi, I have a kamailio 4.1 as a gateway and registrar behind asterisk servers. On asterisk, I save the IP address of the originating call parsing the SIPURI or SIPCHANNEL(recvip). In both cases, I am receiving the private ip of the user agent registered with kamailio. Do I need to change anythi

Re: [SR-Users] Problem with Kamailio - Asterisk integration (WAS: Re: Unknown caller gets online user's identity)

2014-07-21 Thread Cibin Paul
egration. Only exception I have is >> that I use Kamailio's database for user authentication, and that I have >> no Asterisk database. >> >> Best, >> >> Teijo >> >> 19.7.2014 17:36, Cibin Paul kirjoitti: >>> Hello, >>> >>

Re: [SR-Users] How install Kamailio with Asterisk

2014-07-21 Thread Cibin Paul
Hello, Check the module path and make sure the same path is defined in kamailio.cfg. In your case it might be under /usr/local/lib64/kamailio Regards Cibin > On 21-Jul-2014, at 8:37 pm, ANTHONY HESNAUX wrote: > > hello all, > > I would install kamailio with ASTERISK in realtime on CENTOS 6.5

Re: [SR-Users] Unknown caller gets online user's identity

2014-07-19 Thread Cibin Paul
example users A and B have this extension in their contexts. Now however, > when A is online, any unauthenticated call is handled in A's context so > anybody could get A's privileges. > > Best, > > Teijo > > 19.7.2014 15:30, Cibin Paul kirjoitti: >> Hello,

Re: [SR-Users] Unknown caller gets online user's identity

2014-07-19 Thread Cibin Paul
gt; is the place where I should do modification, but what the modified if > statement should exactly be, I am not sure. > > Best, > > Teijo > > 19.7.2014 14:16, Cibin Paul kirjoitti: >> Hello, >> >> Can you elaborate on your issue. who is handling registrat

Re: [SR-Users] Unknown caller gets online user's identity

2014-07-19 Thread Cibin Paul
. I do not >> know how I could in that case handle individual calls - for example >> determine if given phone can call to given number or not. >> >> Best, >> >> Teijo >> >> 17.7.2014 10:48, Cibin Paul kirjoitti: >>> Hello, >&

Re: [SR-Users] Unknown caller gets online user's identity

2014-07-17 Thread Cibin Paul
Hello, Try allow allowguest=no in sip.conf [general] context and create a peer for kamailio in sip.comf Regards Cibin On 17-Jul-2014, at 12:52 pm, g.aloi...@gmail.com wrote: > Hello, > > There is a message "Possible Security issue with Kamailio - Asterisk Realtime > integration" in Aster

Re: [SR-Users] Unknown caller gets online user's identity

2014-07-17 Thread Cibin Paul
Hello, Try allow allowguest=no in sip.conf [general] context and create a peer for kamailio in sip.comf Regards Cibin On 17-Jul-2014, at 12:52 pm, g.aloi...@gmail.com wrote: > Hello, > > There is a message "Possible Security issue with Kamailio - Asterisk Realtime > integration" in Aster

Re: [SR-Users] KAMILIO-4.1.4 REGISTRATION ISSUE

2014-07-16 Thread Cibin Paul
> #!KAMAILIO line. > > Best, > > Teijo > > 16.7.2014 15:21, Cibin Paul kirjoitti: >> Hello, >> >> I have the following configuration >> #!ifdef WITH_MYSQL >> loadmodule “db_mysql.so" >> >> #!ifdef WITH_AUTH >> loadmodule

Re: [SR-Users] KAMILIO-4.1.4 REGISTRATION ISSUE

2014-07-16 Thread Cibin Paul
") modparam("auth_db", "load_credentials", "") modparam("auth_db", "use_domain", MULTIDOMAIN) Cibin On 16-Jul-2014, at 5:45 pm, g.aloi...@gmail.com wrote: > Hello, > > And you have: > > #!define WITH_MYSQL > and > #!defin

[SR-Users] KAMILIO-4.1.4 REGISTRATION ISSUE

2014-07-16 Thread Cibin Paul
I have kamailio 4.1.4 installed with DB Engine as mysql. I added users using the command kamctl add and I could see the entry in subscriber table. When I am trying to register, kamailio is accepting any combination of username and password not listed in the table. What could be wrong? I followe