Re: [SR-Users] register_timer cb function does not have access to shared memoery var

2016-12-19 Thread Daniel-Constantin Mierla
Hello, is the list a global variable? Is it static? Cheers, Daniel On 19/12/2016 23:23, Andy wrote: > in mod_init I have something like > list = (struct list_t*) shm_malloc . > > this list is available from any functions in the module, > > now there is a timer registered, in the same module

Re: [SR-Users] kamailio 4.4 segmentation fault when dp_translate match dialplan with ftmatch operator and empty match expression

2016-12-19 Thread Daniel-Constantin Mierla
Hello, thanks, it helped and hopefully it is not fixed in master and 4.4 branches? Can you try fetching from git repository and see all ok now? Cheers, Daniel On 20/12/2016 06:56, Julia Boudniatsky wrote: > Hello, > > (gdb) frame 2 > #2 0x7f7dca44d21a in translate (msg=0x7f7dd00bedd8, inpu

Re: [SR-Users] kamailio 4.4 segmentation fault when dp_translate match dialplan with ftmatch operator and empty match expression

2016-12-19 Thread Julia Boudniatsky
Hello, (gdb) frame 2 #2 0x7f7dca44d21a in translate (msg=0x7f7dd00bedd8, input=..., output=0x7fff32793420, idp=0x7f7cc9376648, attrs=0x7fff32793410) at dp_repl.c:636 636 rez = fnmatch(rulep->match_exp.s, input.s, 0); (gdb) list 631 632

[SR-Users] register_timer cb function does not have access to shared memoery var

2016-12-19 Thread Andy
in mod_init I have something like list = (struct list_t*) shm_malloc . this list is available from any functions in the module, now there is a timer registered, in the same module register_timer(callback_f, 0 , 5) the callback_f function when tries to use list, always sees as empty -- Vie

Re: [SR-Users] kamailio 4.4 segmentation fault when dp_translate match dialplan with ftmatch operator and empty match expression

2016-12-19 Thread Daniel-Constantin Mierla
Hello, I mistakenly pointed to a wrong frame, can you do it again for frame 2? frame 2 list Cheers, Daniel On 19/12/2016 21:28, Julia Boudniatsky wrote: > Hello Daniel, > > Thank you for reply. > > > Program terminated with signal 11, Segmentation fault. > #0 0x0036074afb73 in internal_fnm

Re: [SR-Users] kamailio 4.4 segmentation fault when dp_translate match dialplan with ftmatch operator and empty match expression

2016-12-19 Thread Julia Boudniatsky
Hello Daniel, Thank you for reply. Program terminated with signal 11, Segmentation fault. #0 0x0036074afb73 in internal_fnmatch () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install MySQL-shared-5.5.27-1.el6.x86_64 glibc-2.12-1.47.el6.x86_64 libgcc-4.4.6-3.el6.x86_64

Re: [SR-Users] auth result -3

2016-12-19 Thread Daniel Grotti
Yeah,It was auth_db, not auth.Good night! :PDaniel G.___ 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/listinfo/sr-users

Re: [SR-Users] kamailio 4.4 segmentation fault when dp_translate match dialplan with ftmatch operator and empty match expression

2016-12-19 Thread Daniel-Constantin Mierla
Hello, can you give the output in gdb for: frame 0 list The head of 4.4 branch got some extra commits to the module and those commands help to identify the right lines of code. Cheers, Daniel On 19/12/2016 13:47, Julia Boudniatsky wrote: > version: kamailio 4.4.4 id:852c47 > > ENTRY: { >

[SR-Users] INFO: jsonrpcs used instead of mi_fifo in the default kamailio.cfg and kamctl

2016-12-19 Thread Daniel-Constantin Mierla
Hello, with MI code planned to be removed, I updated the kamctl and default kamailio.cfg to use jsonrpcs (jsonrpc server) module instead of mi_fifo to interact with kamailio at runtime. The default fifo file for rpc command is /var/run/kamailio/kamailio_rpc.fifo and expects JSONRPC commands as de

Re: [SR-Users] auth result -3

2016-12-19 Thread Jon Bonilla (Manwe)
El Mon, 19 Dec 2016 16:55:39 +0100 Daniel Grotti escribió: > Hi Jon, > isn't it "invalid user" ? > > > auth_db [authorize.c:199]: get_ha1(): no result for user '48481628780@' > > http://www.kamailio.org/docs/modules/4.4.x/modules/auth_db.html > > > Hi Daniel I was reading the wrong modul

Re: [SR-Users] auth result -3

2016-12-19 Thread Daniel Grotti
Hi Jon, isn't it "invalid user" ? > auth_db [authorize.c:199]: get_ha1(): no result for user '48481628780@' http://www.kamailio.org/docs/modules/4.4.x/modules/auth_db.html Daniel On 12/19/2016 03:23 PM, Jon Bonilla (Manwe) wrote: Hi all I'm getting an auth challenge result of -3 and I don'

Re: [SR-Users] auth result -3

2016-12-19 Thread Pepelux
I think it is user incorrect cheers On 19 December 2016 at 15:23, Jon Bonilla (Manwe) wrote: > Hi all > > I'm getting an auth challenge result of -3 and I don't know what it means > as > it's not listed in the auth module doc. > > Here's syslog' output: > > > db_postgres [km_dbase.c:230]: db_po

[SR-Users] auth result -3

2016-12-19 Thread Jon Bonilla (Manwe)
Hi all I'm getting an auth challenge result of -3 and I don't know what it means as it's not listed in the auth module doc. Here's syslog' output: db_postgres [km_dbase.c:230]: db_postgres_submit_query(): sending query ok: 0x7f36d1f75f00 (2) - [select secret from sip_buddies where username='48

[SR-Users] kamailio 4.4 segmentation fault when dp_translate match dialplan with ftmatch operator and empty match expression

2016-12-19 Thread Julia Boudniatsky
version: kamailio 4.4.4 id:852c47 ENTRY: { PRIO: 16765956 MATCHOP: 2 *MATCHEXP: * MATCHLEN: 0 SUBSTEXP: REPLEXP: ATTRS: 1

Re: [SR-Users] Forking with 404 replies

2016-12-19 Thread José Seabra
Hello Daniel, Thank you for your reply, In this case the phone sent the 404 that didn't match the dialog. In order to avoid kamailio forward 404 on this situations i will use the t_check_trans() as you suggested. Thank you for your great support. Regards José 2016-12-19 8:14 GMT+00:00 Daniel-Con

Re: [SR-Users] RFC: renaming the modules with - (dash) in name

2016-12-19 Thread Daniel-Constantin Mierla
Hello, to conclude the thread on mailing lists - the modules were updated few days ago, the new names: cplc janssonrpcc jsonrpcc jsonrpcs Cheers, Daniel On 08/12/2016 10:46, Daniel-Constantin Mierla wrote: > Hello, > > given the work for 5.0 which will bring major changes on source tree > stru

Re: [SR-Users] Forking with 404 replies

2016-12-19 Thread Daniel-Constantin Mierla
Hello, if the 404 is matching an active transaction, then it should be absorbed when there is another active branch. But if the 404 is not matching the transaction, then it will be forwarded. You can use reply_route {} with a t_check_trans() condition to drop the replies not matching transactions.

Re: [SR-Users] Question on multiple 200OK received after forking

2016-12-19 Thread Daniel-Constantin Mierla
Hello, well, the specs say that all 200ok must be forwarded to the caller, because a middle point cannot decide for the user making the call. Even sending an ACK for the 200ok from a middle point is not enough because the callee of that branch will think it is in an active call. The caller can ta

Re: [SR-Users] (Correction) unusual characters added to reINVITE message

2016-12-19 Thread Daniel-Constantin Mierla
Hello, can you check to see if the UA is sending back same values for From/To as kamailio is sending to it? If not, then it doesn't really care for the constraint of not changing them, so you can skip auto restore of those headers. Or configure kamailio uac module to use dialog module for chang