Re: [SR-Users] usrloc module with dbmode=2 does not insert records to database

2017-01-16 Thread Vik Killa
de module parameter > for usrloc). > > Cheers, > Daniel > > On 16/01/2017 14:46, Vik Killa wrote: > > The record we added via RPC was first creating a new contact (and > inserting into the db), this was working fine. But we found that if we > cleared the database, any &qu

Re: [SR-Users] usrloc module with dbmode=2 does not insert records to database

2017-01-16 Thread Vik Killa
; > Cheers, > Daniel > > On 14/01/2017 16:25, Vik Killa wrote: > > resolution update -- > we found that setting > `modparam("usrloc", "db_check_update", 1)` > > fix the issue by inserting missing rows on re-reg > > Thanks! > > > On Fr

Re: [SR-Users] usrloc module with dbmode=2 does not insert records to database

2017-01-14 Thread Vik Killa
resolution update -- we found that setting `modparam("usrloc", "db_check_update", 1)` fix the issue by inserting missing rows on re-reg Thanks! On Fri, Jan 13, 2017 at 9:30 AM, Vik Killa wrote: > Hi Daniel, > RPC flush is not setting the flag, but im not sure that i

Re: [SR-Users] usrloc module with dbmode=2 does not insert records to database

2017-01-13 Thread Vik Killa
; } Any ideas? Thanks, /V On Fri, Jan 13, 2017 at 9:24 AM, Vik Killa wrote: > Hi, > We have tried using these flags: > > save("location") > save("location", "0x00") > save("location", "0x04") > > And still memory does not get

Re: [SR-Users] usrloc module with dbmode=2 does not insert records to database

2017-01-13 Thread Vik Killa
la wrote: > Hello, > > that flag is used to mark a contact for storage only in memory. The save() > function has a parameter with flags where this kind of storage can be set. > Can you check the RPC command is setting this flag? > Cheers, > Daniel > > > On 13/01/

Re: [SR-Users] usrloc module with dbmode=2 does not insert records to database

2017-01-13 Thread Vik Killa
't quite understand the logic in that code. Does anyone have an idea of why `if (_c->flags & FL_MEM) {` returns? Thanks, /V On Thu, Jan 12, 2017 at 4:34 PM, Vik Killa wrote: > Hello, > we've noticed that the usrloc module does not "sync" all the record

[SR-Users] usrloc module with dbmode=2 does not insert records to database

2017-01-12 Thread Vik Killa
Hello, we've noticed that the usrloc module does not "sync" all the records from memory into the database. I use a bash script to generate in-memory AoRs ( http://paste.debian.net/plain/908521) then i perform kamcmd ul.flush and no records are inserted. We have tried various usrloc parameters but n

Re: [SR-Users] BLF: Turning a key on/off without a dialog

2016-04-25 Thread Vik Killa
one way is to send PUBLISH to kamailio and it will send NOTIFY updates accordingly. another way is update the presence database and trigger NOTIFY updates with pres_refresh_watchers() On Mon, Apr 25, 2016 at 10:42 AM, Ali Pey wrote: > Hello, > > I use presence and dialog modules for my BLF keys;

Re: [SR-Users] using re.subst with an $avp or $var

2016-01-11 Thread Vik Killa
eply On Mon, Jan 11, 2016 at 1:49 PM, Vik Killa wrote: > Hi Daniel, > We are experimenting with the dialplan module. > I have a question about the reload of records. > We will have 35326 rows in our dialplan table. I expect this would take a > while to load into memory. Does the rel

Re: [SR-Users] using re.subst with an $avp or $var

2016-01-11 Thread Vik Killa
ng of records from > database can be done via mi/rpc command, thus without restarting kamailio. > > dialplan module is particularly useful when needing to deal with lot of > substitutions specific for groups of users. > > Cheers, > Daniel > > > On 08/01/16 22:45, Vik Killa

Re: [SR-Users] using re.subst with an $avp or $var

2016-01-08 Thread Vik Killa
Hi Alex, Thank you! Your suggestion will most likely fit our solution. /V On Fri, Jan 8, 2016 at 4:42 PM, Alex Balashov wrote: > On 01/08/2016 04:40 PM, Vik Killa wrote: > > That last statement was in-accurate. Im not trying to modify the R-URI >> at all actually. >>

Re: [SR-Users] using re.subst with an $avp or $var

2016-01-08 Thread Vik Killa
That last statement was in-accurate. Im not trying to modify the R-URI at all actually. I'd like to create a variable. On Fri, Jan 8, 2016 at 4:38 PM, Vik Killa wrote: > I'm not trying to replace the R-URI like in your example, im trying to > remove a prefix from the RURI &

Re: [SR-Users] using re.subst with an $avp or $var

2016-01-08 Thread Vik Killa
I'm not trying to replace the R-URI like in your example, im trying to remove a prefix from the RURI On Fri, Jan 8, 2016 at 4:34 PM, Alex Balashov wrote: > On 01/08/2016 04:28 PM, Vik Killa wrote: > > $var(destnumber1) = >> $(ru{re.subst,/^sip:$var(Pref

Re: [SR-Users] using re.subst with an $avp or $var

2016-01-08 Thread Vik Killa
Assuming the answer is no this is not possible, then does anyone know of a way to accomplish this? Perhaps with textops module? Thanks, /V On Fri, Jan 8, 2016 at 4:30 PM, Alex Balashov wrote: > On 01/08/2016 04:28 PM, Vik Killa wrote: > > $var(destnumber1) = >> $(ru

[SR-Users] using re.subst with an $avp or $var

2016-01-08 Thread Vik Killa
Hello, Is it possible to use $avp() or $var() inside re.subst? Example: $var(PrefixMatch) = "00"; $var(destnumber1) = $(ru{re.subst,/^sip:$var(PrefixMatch)(.*)@(.*)/\1/}); $var(destnumber2) = $(ru{re.subst,/^sip:00(.*)@(.*)/\1/}); xlog("L_INFO", "des

Re: [SR-Users] using pipelimit at CPS (1 second)

2016-01-07 Thread Vik Killa
Do you operate Kamilio in a wholesale environment with many CPS? On Thu, Jan 7, 2016 at 12:22 PM, Alex Balashov wrote: > Vik, > > We have used pipelimit at a sampling interval of 1 second, and, on the > basis of contact with reality, decided to shift to a 3-second sampling > window. > > The majo

[SR-Users] kazoo module documentation

2015-11-20 Thread Vik Killa
Hello, I'm testing kazoo module for use with RabbitMQ I noticed there is a required parameter that is not listed in the documentation: http://kamailio.org/docs/modules/devel/modules/kazoo modparam("kazoo", "pua_mode", 0) The above parameter is required but not documented. Can someone please upda

Re: [SR-Users] Familiar topic about Kamailio with Asterisk behind NAT

2015-10-09 Thread Vik Killa
I struggled with this setup for a while using rtpproxy, i eventually went with rtpengine because it seems to have more features and is still maintained. I wrote a quick how-to (mostly for myself to remember) https://blog.voipxswitch.com/2015/08/11/rtpengine-with-kamailio-as-load-balancer-and-ip-gat

[SR-Users] fix_nated_contact NAT rtpproxy problems

2015-06-25 Thread Vik Killa
Hello, We are trying to get Kamailio working as an SBC using rtpproxy(); The config seems to work except with some carriers, kamailio does not recognize the ACK because it does not match the contact header of the OK I've been trying to figure out how to get kamailio to send the OK back using the p

[SR-Users] permissions module, regular expression matching Request URI

2015-05-06 Thread Vik Killa
Hello, We would like to match specific calls based on two factors: 1. the source IP address 2. the Request URI I see in the permissions module, it is possible to match based on the Source IP + the From URI. We need two match both in order to return the appropriate 'tag' attribute from table. Woul

Re: [SR-Users] issue with TLS and 2 NIC interfaces

2015-05-06 Thread Vik Killa
SIP traffic again and they is forwarding to the destination? > > Cheers, > Daniel > > > On 06/05/15 13:51, Vik Killa wrote: > > Do you do anything special in your kamailio config to handle the NIC > aliases? > > On Mon, May 4, 2015 at 10:21 PM, Slava Bendersky > wrote: &

Re: [SR-Users] issue with TLS and 2 NIC interfaces

2015-05-06 Thread Vik Killa
ved. > > Slava. > > ------ > *From: *"Vik Killa" > *To: *"sr-users" > *Sent: *Monday, May 4, 2015 12:54:21 PM > *Subject: *Re: [SR-Users] issue with TLS and 2 NIC interfaces > > Are you having the same problem as myself? &

Re: [SR-Users] issue with TLS and 2 NIC interfaces

2015-05-04 Thread Vik Killa
gt; method = TLSv1 > verify_certificate = no > require_certificate = no > private_key = > certificate = > ca_list = > crl = > > > Slava > ------ > *From: *"Vik Killa" > *To: *"sr-users" > *Sent: *Wednesday, April 29, 2015 4:32:21 PM

[SR-Users] issue with TLS and 2 NIC interfaces

2015-04-29 Thread Vik Killa
Hello, if i have two interfaces (eth0 and eth0:0) I set kamailio to listen to the IP on eth0:0 This works great except when I try using TLS, kamailio routes traffic from eth0:0 to eth0 then to correct destination It should be just doing eth0:0 -> correct destination If I use UDP/TCP I am not see

Re: [SR-Users] add feature to dmq to allow for HA (heartbeat or pacemaker)

2015-04-24 Thread Vik Killa
state can be added easily enough and I agree > they could be quite useful to other modules. > > Development is frozen currently but I can push to a separate branch if > you're interested in testing? > > Cheers, > Charles > On 24 Apr 2015 13:42, "Vik Killa" wr

[SR-Users] add feature to dmq to allow for HA (heartbeat or pacemaker)

2015-04-24 Thread Vik Killa
Hello, I was looking to implement HA with 2 Kamailio machines. I am aware of the dmq module and I thought that would be a great place to start. The problem I see is that dmq module does not have any "failure" callback mechanism. For instance, if KamA sends dmq ping to KamB, and KamB does not respon

Re: [SR-Users] Kamailio: MI Command: 'trusted_dump' and 'trusted_reload'

2015-04-22 Thread Vik Killa
I know this is an old thread, but I'm having a strange issue like this with trustedDump and trustedReload in permissions module. I compiled latest git: git clone git://git.sip-router.org/kamailio I can only reload trusted data by restart kamailio and when I do trustedDump command, i get strange ou

Re: [SR-Users] cannot register UA when domain is not valid, using usrloc, auth_db and registrar modules

2014-11-14 Thread Vik Killa
Alex, I'm setting the $du to something like sip:192.168.1.200:5060;transport=tcp I'm not touching the request-uri. for some reason kamailio wants to look up the r-uri (3.local) On Thu, Nov 13, 2014 at 5:39 PM, Alex Balashov wrote: > Authentication domains need not to be resolvable. > > It sounds

[SR-Users] cannot register UA when domain is not valid, using usrloc, auth_db and registrar modules

2014-11-13 Thread Vik Killa
Hello, I'm trying to register 1004@3.local (yes i know 3.local is not a valid domain) and kamailio is responding with SIP/2.0 478 Unresolvable destination (478/SL) Why does kamailio require a valid domain? Is there any way to disable kamailio from looking up the domain (i don't see a reason to lo

Re: [SR-Users] kamailio does DNS lookup of from host when using TCP

2014-11-12 Thread Vik Killa
t and send the output? > > Also, it would be good to get the sip message for that case -- inside the > request_route, add: > > xlog("received message: [[$rb]]\n"); > > Cheers, > Daniel > > > On 12/11/14 21:56, Vik Killa wrote: > > Hello, > I'

[SR-Users] kamailio does DNS lookup of from host when using TCP

2014-11-12 Thread Vik Killa
Hello, I'm wondering why kamailio will try doing a DNS lookup of the from host with a REGISTER packet when using TCP? It doesn't do this with UDP. I always get this error since the host is not a valid domain: [resolve.c:1726]: sip_hostport2su(): could not resolve hostname: "3.local" Here is the

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
Alex, Yes, linked-lists attached to a hash bucket. http://en.wikipedia.org/wiki/Hash_table#Collision_resolution On Mon, Oct 20, 2014 at 2:37 PM, Alex Balashov wrote: > Vik, > > What exactly do you mean by "separate chains"? I had assumes you were > referring to lists attached to hash buckets. >

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
correction: "If this is built in, the user does not have to deal with collisions (or even know what they are)...it provides scalability without the user having to do anything." On Mon, Oct 20, 2014 at 12:55 PM, Vik Killa wrote: > Alex, > Separate chains (IMO) is the best

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
e list approach is by far the most common and > straightforward. The best way to minimise collisions entirely is to use a > good hash algorithm appropriate to the types of keys being hashed. > > > On 20 October 2014 12:41:50 GMT-04:00, Vik Killa > wrote: >> >> Alex, >

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
Alex, It is a collision resolution, yes collisions will still happen but it essentially fixes the problem. /V On Mon, Oct 20, 2014 at 12:13 PM, Alex Balashov wrote: > On 10/20/2014 11:17 AM, Vik Killa wrote: > > Why isn't htable designed to use separate chains to avoid collisions

Re: [SR-Users] Hash Table capacity

2014-10-20 Thread Vik Killa
Why isn't htable designed to use separate chains to avoid collisions altogether? On Mon, Aug 19, 2013 at 11:18 AM, Olle E. Johansson wrote: > > 19 aug 2013 kl. 17:02 skrev Elena-Ramona Modroiu : > > On 8/19/13 4:05 PM, Alex Balashov wrote: > > According the docs, the hash table is restricted to

Re: [SR-Users] send remote command to kamailio

2014-10-20 Thread Vik Killa
"xmlrpc modules are packaged separately -- you have to install the package kamailio-xml-modules. No need to re-install from sources." I tried this with apt-get, but mi_xmlrpc could not load, also doing a locate mi_xmlrpc.so failed Apparently, there is a difference between xmlrpc.so and mi_xmlrpc.s

Re: [SR-Users] send remote command to kamailio

2014-10-20 Thread Vik Killa
If any one is interested, I found I had to compile kamailio in order to use the module "mi_xmlrpc" A follow-up question, why doesn't the htable use separate chaining to avoid collisions? Thanks. /V On Fri, Oct 17, 2014 at 11:18 AM, Vik Killa wrote: > Hello, > I'

[SR-Users] send remote command to kamailio

2014-10-17 Thread Vik Killa
Hello, I've installed kamailio from debian repo: deb http://deb.kamailio.org/kamailio wheezy main deb-src http://deb.kamailio.org/kamailio wheezy main I am unable to use any RPC related module though... apt-cache search doesn't show them...I installed every kamailio-* package just to make sure

Re: [SR-Users] routing SIP REGISTER with app_perl

2014-09-16 Thread Vik Killa
4 at 11:52 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > if you want to rely on kamailio to memorize where to send the following > register, the hash table is the right tool. > > Cheers, > Daniel > > > On 16/09/14 03:37, Vik Killa wrote: > &

[SR-Users] routing SIP REGISTER with app_perl

2014-09-15 Thread Vik Killa
Hello, I'm learning Kamailio. My ultimate goal is to be able to route SIP messages from User Agents to specific FS boxes. I'm starting with routing REGISTER messages. I used app_perl to randomly lookup one of the FS box's IP Address from postgres database, then I stored the IP in avp and then in h

[SR-Users] mimic ds_select_dst with app_perl

2014-09-15 Thread Vik Killa
I like dispatcher but i need something more custom to my setup so I want to attempt to emulate some basic behavior of dispatcher. I have a simple perl script kamailio calls, it does a database query to get an IP address and port similar to an item listed into the dispatcher list. my question is h

Re: [SR-Users] app_perl persistent database connection

2014-09-15 Thread Vik Killa
Interesting but could you elaborate on how that will answer my question? On Mon, Sep 15, 2014 at 11:44 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > On 15/09/14 17:03, Vik Killa wrote: > > hello, does kamailio start/run the perl script defined by

[SR-Users] app_perl persistent database connection

2014-09-15 Thread Vik Killa
hello, does kamailio start/run the perl script defined by modparam("app_perl", "filename", "/usr/local/test/bin/sips.pl") at startup and constantly run in background? I want a persistent database connection rather than having to constantly re-connect to database on each transaction. Is this possib

Re: [SR-Users] [Kamailio-Business] [sr-dev] New official Debian and Ubuntu repository

2014-03-05 Thread Vik Killa
This does not work: http://deb.kamailio.org/kamailio/ It is listed on new wiki: http://www.kamailio.org/wiki/packages/debs On Wed, Mar 5, 2014 at 12:30 PM, Victor Seva < linuxman...@torreviejawireless.org> wrote: > Hi, > > 2014-03-05 14:34 GMT+01:00 Vik Killa : > > Can so

Re: [SR-Users] [Kamailio-Business] [sr-dev] New official Debian and Ubuntu repository

2014-03-05 Thread Vik Killa
Can someone update the wiki page? I was confused for days on this: http://www.kamailio.org/dokuwiki/doku.php/packages:debs On Wed, Mar 5, 2014 at 8:21 AM, Vik Killa wrote: > Can someone update the wiki page? I was confused for days on this: > http://www.kamailio.org/dokuwiki/do