Re: [SR-Users] Using =~ to get the group identifier with longest match

2011-06-06 Thread David Villasmil
Hello Iñaki, I did this a long time ago using a db backend, i can't remember exactly how. the table would be: areacode, route 1 route1 13 route2 I connected to mysql and ran something like: select * from routes where '$rU' like concat(areacode,'%') order by

Re: [SR-Users] Using =~ to get the group identifier with longest match

2011-06-06 Thread David Villasmil
and created a custom cdr for each call. we had around 4k concurrent calls at that time (like 5 years ago) Anyway, good luck! David On Mon, Jun 6, 2011 at 2:52 PM, Iñaki Baz Castillo i...@aliax.net wrote: 2011/6/6 David Villasmil david.villasmil.w...@gmail.com: I connected to mysql and ran something

Re: [SR-Users] FOSDEM 2017

2017-01-26 Thread David Villasmil
Hello Guys, Count me in, as well! David On Thu, Jan 26, 2017 at 3:13 PM DanB wrote: > Hey Daniel, > > Would be there 2 persons for sure, so please count us also in. > > Thanks, > DanB > > ___ > SIP Express Router (SER) and

[SR-Users] Fwd: [sr-dev] git:master:c32a5f64: sipcapture: added $hep(src_ip) variable

2017-02-09 Thread David Villasmil
aram [src_ip] ERROR: [core/pvapi.c:1032]: pv_parse_spec2(): wrong char [)/41] in [$hep(src_ip)] at [11 (5)] ERROR: [core/sr_module.c:1251]: fix_param(): bad PVE format: "sip:$hep(src_ip)" ERROR: [core/mod_fix.c:539]: fixup_spve_null(): Cannot convert function parameter 1 to spve A

Re: [SR-Users] multi domain kamailio

2017-02-27 Thread David Villasmil
Depends on where you want the registration to be done. If you want it done on each asterisk independently, you can use load balancing. If you want it done in kamailio, you need multidomain and route accordingly. On Sun, Feb 26, 2017 at 6:33 PM przeqpiciel wrote: > Let's

Re: [SR-Users] Load balancing traffic with Kamailio

2016-09-29 Thread David Villasmil
Then you got your answer :) On Thu, Sep 29, 2016 at 4:23 PM Nitesh Bansal wrote: > I don't think I received the previous answer and I apologize if I missed > it. > But, unfortunately dispatcher isn't going to do it for me, I think I need > to > use some external tool and

Re: [SR-Users] Replacing Asterisk with Kamailio

2016-09-16 Thread David Villasmil
You might want to look into freeSWITCH also, coupled with Kamailio it's great setup. On Thu, Sep 15, 2016 at 5:31 PM, Valter Nogueira wrote: > I already have both books and I am enrolled in next Flavio's on-line > bootcamp. > > I have never get the rfc3261 end. But I will

Re: [SR-Users] Commercial SBC or Kamailio

2016-09-16 Thread David Villasmil
We've been using kamailio for years on a commercial environment as registrar, and now we just removed the (very expensive) SBC to put kamailio in its place... it can take big loads if configured properly... commercial support is important if you don't have a real-world-expert with you. On Fri,

Re: [SR-Users] Kamailio number of concurrent calls

2016-10-02 Thread David Villasmil
Sipp's media stack doesn't seem to be very good. what i did was to use freeswitch. You can generate calls to fs (or make a script to "originate" staright from fs, though sipp is simples), which will resend it to kamailio. And on answer, it will send the call to a callcenter that will just playback

Re: [SR-Users] custom version database/table

2016-11-28 Thread David Villasmil
I found my problem, because my custom "dispatcher" table is missing some fields, the loading failed. No issue :) On Mon, Nov 28, 2016 at 7:56 PM David Villasmil < david.villasmil.w...@gmail.com> wrote: > I got > > Nov 28 13:38:25 testSVR kamailio[25455]: DEBUG: [db.c

[SR-Users] custom version database/table

2016-11-28 Thread David Villasmil
table_name, table_version) values ('dispatcher','4'); To create an populate the table, but kamailio returns: mod_init(): could not initiate a connect to the database but it does connect properly... any thoughts? Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +346

Re: [SR-Users] custom version database/table

2016-11-28 Thread David Villasmil
/dispatcher.so) ᐧ Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Mon, Nov 28, 2016 at 7:37 PM, Alex Balashov <abalas...@evaristesys.com> wrote: > David, > > There should be some additional log messages and/or some more context > around this

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

2016-12-16 Thread David Villasmil
you can achieve that with the dialog module. http://www.kamailio.org/docs/modules/4.4.x/modules/dialog_ng.html Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Fri, Dec 16, 2016 at 10:33 AM, Cibin Paul <paul_ci...@me.com> wrote: > Hi, > >

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

2016-12-17 Thread David Villasmil
Just thinking out loud, if you use memcached maybe simply storing a variable with the username and checking whether it is set before allowing a call from that user. That would work. David ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users

Re: [SR-Users] Getting destination ip

2016-11-29 Thread David Villasmil
Thanks for your help, $sel(via[1].host) actually shows the internal ip address of the client... :( David Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Tue, Nov 29, 2016 at 9:51 PM, Alberto Llamas <albertollam...@gmail.com> wrote: > Oh I se

[SR-Users] Getting destination ip

2016-11-29 Thread David Villasmil
Hello Guys, I'm wondering how do I get destination IP on a reply? Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 ᐧ ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip

Re: [SR-Users] Getting destination ip

2016-11-29 Thread David Villasmil
Hi David, > > Below instruction should work for you: > > $T_req($rd) > > Cheers, > > On Tue, Nov 29, 2016 at 4:29 PM, David Villasmil < > david.villasmil.w...@gmail.com> wrote: > > Hello Guys, > > I'm wondering how do I get destination IP on a reply? >

Re: [SR-Users] Getting destination ip

2016-12-06 Thread David Villasmil
/879/files Is there any other way? Regards, David Villasmil ᐧ Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Mon, Dec 5, 2016 at 12:08 PM, Daniel-Constantin Mierla <mico...@gmail.com > wrote: > Hello, > > do you need to get this when t

Re: [SR-Users] kamailio dispatcher call flow example

2016-12-23 Thread David Villasmil
maybe this will help: http://www.kamailio.org/events/2013-KamailioWorld/23-Daniel-Constantin.Mierla-Load-Balancing-Load-Balancers.pdf David ᐧ Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Fri, Dec 23, 2016 at 11:12 AM, huan nguyen duy <huanco

Re: [SR-Users] Nightly build config error

2017-03-27 Thread David Villasmil
Sorry, this is on a: cat /etc/debian_version 8.4 ᐧ Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Mon, Mar 27, 2017 at 7:05 PM, David Villasmil < david.villasmil.w...@gmail.com> wrote: > Hello guys, > > I have in my apt the nightly buil

[SR-Users] Nightly build config error

2017-03-27 Thread David Villasmil
onfig file, kamailio starts normally. /* set paths to location of modules */ # mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules/" I'm not 100% sure "mpath" was set before, but i don't remember having to set that up in the near past... Regards, David Villasmil email: david.vill

Re: [SR-Users] $hep(dst_ip)

2017-03-29 Thread David Villasmil
ometime in autumn or around the end of the > year, depending on how development and testing goes on. Typically is like 8 > months of development cycle. > > Cheers, > Daniel > > On 28/03/2017 20:16, David Villasmil wrote: > > Ok thanks. Is there a time frame for that ? >

Re: [SR-Users] $hep(dst_ip)

2017-03-28 Thread David Villasmil
Ok thanks. Is there a time frame for that ? On Tue, Mar 28, 2017 at 8:15 PM Victor Seva < linuxman...@torreviejawireless.org> wrote: > 2017-03-28 15:26 GMT+02:00 David Villasmil <david.villasmil.w...@gmail.com > >: > > Hello guys, > > the merged https://github.

Re: [SR-Users] Kamailio Issue

2017-04-03 Thread David Villasmil
Make sure kamdbctl is really using kamctlrc, I've had situations where is was trying to use it from a different path... On Mon, Apr 3, 2017 at 10:16 PM 노형균 wrote: > Hello all, I’m newbie to Kamailio and I’m having problem with installation. > I tried to install Kamailio through

[SR-Users] Kamailio queues

2015-11-13 Thread David Villasmil Govea
Hello Guys, I'm new to this list. I'm trying to setup a queue with 4.3.3 (x86_64/linux) and I see a couple of things i'm wondering about: - kamdbctl created the table "mohqueues" and the associated value in the "version" tables. Whereas kamailio uses "mohqueue" (no extra "s" at the end). -

[SR-Users] Loading mohqueue stops kamailio from starting up

2015-11-13 Thread David Villasmil Govea
Hello all, I installed kamailio on debian from kamailio's apt repository. Configured it with kamdbctl, started it up properly, no issues. I configured mysql also, worked properly. Next i loaded up "mohqueue" and everything went to hell :) This is my config: loadmodule "mohqueue.so" # -

[SR-Users] (no subject)

2015-11-13 Thread David Villasmil Govea
Hello guys, I'm trying to startup 4.3 and i'm getting the following: 0(4420) DEBUG: [db_row.c:117]: db_allocate_row(): allocate 192 bytes for row values at 0x7fe6bf6b5a48 0(4420) DEBUG: [db_val.c:74]: db_str2val(): converting INT [1] 0(4420) DEBUG: [db_val.c:118]: db_str2val(): converting

Re: [SR-Users] Loading mohqueue stops kamailio from starting up

2015-11-14 Thread David Villasmil Govea
Hello, I had already gotten it to work, thanks! David On Sat, Nov 14, 2015 at 7:15 AM Sebastian Damm <d...@sipgate.de> wrote: > Hi, > > Kamailio tells you, what's wrong. > > On Sat, Nov 14, 2015 at 1:32 AM, David Villasmil Govea < > david.villas...@gmail.com&

[SR-Users] General question about mohqueue

2015-11-16 Thread David Villasmil Govea
Hello list, I've been given a task to setup a predictive dialer with for 8000+ agents taking accepted calls in a queue. I've done this for a much smaller setup in freeSWITCH but i recently saw that kamailio has a mohqueue (which i already setup as a PoC) that might work for this. My question is

Re: [SR-Users] AUTH doesn't work

2015-12-23 Thread David Villasmil Govea
1. # if caller is not local subscriber, then check if it calls 2. # a local destination, otherwise deny, not an open relay here 3. if (from_uri!=myself && uri!=myself) { 4. sl_send_reply("403","Not relaying"); 5. exit; 6. } ᐧ On Wed, Dec 23, 2015

Re: [SR-Users] How to distinguish 200 OK that have byed

2016-04-20 Thread David Villasmil Govea
That's really weird, why are not ACKing the first 200 OK? Is this on purpose? On Wed, Apr 20, 2016 at 8:37 AM 张顺通 wrote: > I want to distinguish the Retransmission 200 OK(INVITE), not the first 200 > OK(INVITE) or every 200 OK(INVITE) > > Every 200 OK will request port