Re: [SR-Users] sr-users Digest, Vol 143, Issue 5

2017-04-04 Thread Juha Heinanen
Narayan P writes: > I mean to say that all of the headers in a SIP message. See remove_hf_re function. -- Juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

Re: [SR-Users] Issue in replacing message header in kamailio

2017-04-04 Thread Juha Heinanen
Narayan P writes: > Hi Can anybody help me on this.Any API to replace a message header > completely in kamailio configuration file and its usage. What do you mean with "message" header? I don't remember such SIP header. -- Juha ___ SIP Express

Re: [SR-Users] looks like dp_translate with pvs in repl_exp is badly broken

2017-03-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > are you using dialog plan with match_dynamic set to 1 or the default > 0? no dynamic_match setting, i.e., default 0. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

[SR-Users] looks like dp_translate with pvs in repl_exp is badly broken

2017-03-22 Thread Juha Heinanen
Juha Heinanen writes: > when match_exp of dp 100 is ^#test and repl_exp is sip:$rU@$rd this code: > > xlog("L_INFO", "** ru = $ru\n"); > dp_translate(100, "$rU/$var(res)"); > xlog("L_INFO", "** res = $var(res)\n&qu

[SR-Users] looks like dp_translate with pvs in repl_exp is badly broken

2017-03-22 Thread Juha Heinanen
when match_exp of dp 100 is ^#test and repl_exp is sip:$rU@$rd this code: xlog("L_INFO", "** ru = $ru\n"); dp_translate(100, "$rU/$var(res)"); xlog("L_INFO", "** res = $var(res)\n"); produces: Mar 22 08:21:17 lohi /usr/bin/sip-proxy[7543]: INFO: ** ru =

Re: [SR-Users] TCP stack is not doing load distribution among children for SIP

2017-03-07 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > > So, for example, if k2 is a presence server and k1 is forwarding > > subscribes/publish requests to it, only one process at k2 would be > > processing them since the tcp connection between k1 and k2 is reused? > > > Those were the observations described by the

Re: [SR-Users] TCP stack is not doing load distribution among children for SIP

2017-03-07 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > So, I expect kamailio wil reuse the connection between kamailio1 and > kamailio2. The tcp manager process selects the least loaded tcp worker > when a new connection is accepted, and the worker start consuming the > packets on it until there is nothing to be

[SR-Users] want to see active users SIP users

2017-02-24 Thread Juha Heinanen
Mandar Nagarkar writes: > I want to see active users SIP users for this purpose I checked the > location table of kamailio database it does have active users entries > however as per my observation there is 45 secs to 1 min delay before > the entry actually added to this table i.e. suppose if I

Re: [SR-Users] [sr-dev] Branch 5.0 created

2017-02-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Where do you set the QUIET? When building the usual source code or when > building the debs? When building the debs. I added to debian/rules: # Uncomment this to turn on verbose mode. # export QUIET=verbose Might be a good idea to add those lines to official

Re: [SR-Users] [sr-dev] Branch 5.0 created

2017-02-11 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > They were reported in the past, iirc, but apparently only by a specific > version of compiler, or maybe some specific flags to gcc. I set QUIET=verbose and got the exact command (below). -- Juha gcc -funroll-loops -Wcast-align -m64 -minline-all-stringops

[SR-Users] [sr-dev] Branch 5.0 created

2017-02-09 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > the GIT branch 5.0 has just been created, it will host the release > series 5.0.x. To get this branch from GIT, you can use: > > git clone https://github.com/kamailio/kamailio.git kamailio > cd kamailio > git checkout -b 5.0 origin/5.0 > > Hopefully before the

[SR-Users] execute config route by ctp command?

2017-02-01 Thread Juha Heinanen
Is there a way to execute a named config route, such as an event_route, by an rpc command? -- Juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

Re: [SR-Users] comma as param.count delimiter produces parse error

2017-01-14 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Not sure who added this transformation, but I will try to add support > for comma as delimiter in the params. Thanks if you have time for it. In the meantime I'm converting , to something else before applying the param transforms. -- Juha

[SR-Users] comma as param.count delimiter produces parse error

2017-01-12 Thread Juha Heinanen
Parameter list transformation param.count produces parse error when delimiter is comma (,) character. From document: {param.value,name[, delimiter]} 'delimiter' allows you to specify a single character to use as the parameter delimiter. For example, when parsing HTTP URL query strings

Re: [SR-Users] [sr-dev] VERY IMPORTANT: deciding when to remove the MI code

2016-12-02 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Can you find that discussion in the archive? Open an item on bug tracker > and add the link to the discussion there, so we don't forget about it. Done, Juha ___ SIP Express Router (SER) and Kamailio (OpenSER) -

Re: [SR-Users] [sr-dev] VERY IMPORTANT: deciding when to remove the MI code

2016-12-01 Thread Juha Heinanen
Brandon Armstead writes: > +1 - I'm all for cleaning up any technical debt and moving on with more > normalized concept. I'm also in favor of getting rid on MI interface. I'm myself relying only on one MI command (pua_publish) for which an RPC command does not exist (or did not exist last time

[SR-Users] Call forking priority

2016-09-28 Thread Juha Heinanen
Igor Potjevlesch writes: > I have a proxy that manage fix calls and a proxy that manage mobile calls. > I want to implement call forking so when I call to a fix phone the call goes > to the fix proxy and it forks to the mobile proxy who manage the call and > viceversa. I want the fix to ring 2 or

Re: [SR-Users] Location Table In db_mode 3

2016-09-25 Thread Juha Heinanen
Gholamreza Sabery writes: > Thank you so much. I will try it; but it seems that this option affects the > whole database. I think it applies to the whole mysql server, i.e., to all of its databases. -- Juha ___ SIP Express Router (SER) and Kamailio

Re: [SR-Users] LCR routing, and finaly route to media gateway if not found

2016-09-23 Thread Juha Heinanen
Loic Chabert writes: > In fact, kamailio is out from lcr at this point, no more gateway to try > (all gateways are down). > I just want to send call to a static server for playing sound. > > To be more specific, if no gateways are not set on database, a sound must > be played. > > Should i

[SR-Users] LCR routing, and finaly route to media gateway if not found

2016-09-23 Thread Juha Heinanen
Loic Chabert writes: > To accomplish this, i re-write the RURI: "sip:error1@errorserver.local", > and launch RELAY route. But kamailio dont make a DNS query to find IP of > "errorserver.local", only change RURI and try to send to the last LCR > gateway. > > I have also try to add a new branch,

Re: [SR-Users] detect failed socket

2016-08-29 Thread Juha Heinanen
Camille Oudot writes: > one solution would be to use the handle_lost_tcp parameter from usrloc > so that the record will be removed from it if the connection is closed: > > http://kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.handle_lost_tcp would it be big job to add support

Re: [SR-Users] RTPEngine

2016-08-17 Thread Juha Heinanen
Dragos Oancea writes: > Try to pass > " --log-level=2 --log-facility=local7" from command line and set local7 > to write to a file in your /etc/rsyslog.conf. without restart: During runtime, the log level can be decreased by sending the signal SIGURS1 to the daemon and can be increased with

Re: [SR-Users] SIP Outbound / t_next_contacts()

2016-07-24 Thread Juha Heinanen
Colin Morelli writes: > When there's one registration binding in the locations table, > t_load_contacts doesn't seem to do anything and as a result > t_next_contacts fails. t_next_contacts() does work as specified in README: Function returns 1 if contacts_avp was not empty and a destination

[SR-Users] SIP Outbound / t_next_contacts()

2016-07-24 Thread Juha Heinanen
Colin Morelli writes: > 8(27) DEBUG: tm [t_serial.c:191]: t_load_contacts(): nr_branches is 0 > 8(27) DEBUG: tm [t_serial.c:194]: t_load_contacts(): nothing to do - only > one contact! > 8(27) DEBUG: tm [t_serial.c:455]: t_next_contacts(): no contacts in > contacts_avp - we are done! > 8(27)

Re: [SR-Users] access to tls X509v3 Subject Alternative Name

2016-07-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > The right format to try for a variable with index would have been > $(tls_my_san_hostname[2]) -- have you tried that, too? $var(san2) = $(tls_my_san_hostname[2]); xlog("L_INFO", "*** $var(san2)\n"); produces: Jul 13 09:51:44 sars

Re: [SR-Users] access to tls X509v3 Subject Alternative Name

2016-07-12 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > haven't tested nor looked at source code -- have you tried to see if it > works with index (e.g, $tls_my_san_hostname[2])? $var(san) = $tls_my_san_hostname[2]; results in $var(san) == 0. -- Juha ___ SIP Express

[SR-Users] access to tls X509v3 Subject Alternative Name

2016-07-11 Thread Juha Heinanen
Is there some means to get access to local and peer ssl certificate X509v3 Subject Alternative Name value? For example, if there is this in certificate: Subject: CN=foo.bar.com X509v3 Subject Alternative Name: DNS:foo.bar.com, DNS:foo.car.com, DNS:car.com

Re: [SR-Users] Kamailio WEBRTC questions/ confusions

2016-07-04 Thread Juha Heinanen
Zaka writes: > Put another way, can a Kamailio Box & a smartphone (Browser or Linphone) do > the job? You can do a demo where your websocket sip client runs in your browser and then calls linphone or another websocket sip client via Kamailio, but that does not give you a call center demo. --

Re: [SR-Users] Increase diversion counter

2016-07-04 Thread Juha Heinanen
Igor Potjevlesch writes: > I was thinking to increase it and put the value in the parameter of the > module like: > modparam("diversion", "suffix", ";privacy=off;$dic") > > But it doesn't work like this. > > So, I guess I can put this value in a variable, increase the variable > and use textop

[SR-Users] Kamailio WEBRTC questions/ confusions

2016-07-04 Thread Juha Heinanen
Zaka writes: > 2: Customer will use web browser (websocket compatible of course) and enter > address of the KAMAILIO Box or we shall need another KAMAILIO to > statelessly forward the call to next available operator using Hunt Group or > similar scheme? kamailio could route the call to a call

Re: [SR-Users] Increase diversion counter

2016-07-04 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > look at the textopsx module -- there are some functions to get/set > parameters from/to sip headers. see http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#dic_-_diversion_counter_parameter -- juha ___

Re: [SR-Users] 4.4 compiler warnings on debian jessie

2016-06-08 Thread Juha Heinanen
I let compile go through all modules that I use and noticed that now also tls module warning are gone! That is great. The only remaining ones are on cfg/cfg_ctx. -- Juha CC (gcc) [sip-proxy]cfg/cfg_ctx.o cfg/cfg_ctx.c: In function 'cfg_set_now': cfg/cfg_ctx.c:485:5: warning:

Re: [SR-Users] 4.4 compiler warnings on debian jessie

2016-06-08 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Can you try with master branch and see if the warning for tlsf malloc > disappeared? I changed the prototypes of malloc functions to use size_t > to be compatible with standard malloc(). Changes are only in master branch. The warning are now gone: CC (gcc)

Re: [SR-Users] 4.4 fails to start on debian jessie due to tls issue

2016-06-08 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Indeed there was a fix yesterday afternoon, backported right now to > older stable branches. Thanks, now it still remains to fix xmlrpc module. -- Juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users

[SR-Users] 4.4 fails to start on debian jessie due to tls issue

2016-06-08 Thread Juha Heinanen
Juha Heinanen writes: > Sorry, the version of Kamailio on this host is 4.3 build on April 7, > 2016. I rebuilt Kamailio on latest Jessie and after that Kamailio stared OK. Just a warning to those who have automatic security updates on: your Kamailio may fail to start after an upgrade. -

[SR-Users] 4.4 fails to start on debian jessie due to tls issue

2016-06-07 Thread Juha Heinanen
Sorry, the version of Kamailio on this host is 4.3 build on April 7, 2016. -- Juha - > Was this fixed on master? > > Jun 8 08:12:46 sars /usr/bin/sip-proxy[19017]: : tls [tls_init.c:557]: > init_tls_h(): ERROR: tls:

[SR-Users] 4.4 fails to start on debian jessie due to tls issue

2016-06-07 Thread Juha Heinanen
Was this fixed on master? Jun 8 08:12:46 sars /usr/bin/sip-proxy[19017]: : tls [tls_init.c:557]: init_tls_h(): ERROR: tls: init_tls_h: installed openssl library version is too different from the library the Kamailio tls module was compiled with: installed "OpenSSL 1.0.1t 3 May 2016"

Re: [SR-Users] High availability

2016-06-05 Thread Juha Heinanen
Fred Posner writes: > If it's just 2 servers, consider as Juha said, corosync/pacemaker with > drbd. Yes, and if you prefer to use mysql master-master replication instead of drbd, you can still use corosync/pacemaker for active/passive kamailio sip proxy that share the same virtual ip address.

[SR-Users] Issue with LCR an failover routers

2016-05-30 Thread Juha Heinanen
Alberto Sagredo writes: > Actually im using ... > if(!next_gw()) { > > xlog("No hay GW de Backup"); > > sl_send_reply("503", "Service not available - No gateway"); > > exit; > > } else { > > xlog("Enviado por primer GW\n"); > > xlog("ruri_user_avp:

[SR-Users] 4.4 compiler warnings on debian jessie

2016-05-21 Thread Juha Heinanen
I'll come back to mem/tlsf_malloc.c issue. Camille asked if the compiler warnings on mem/tlsf_malloc.c were occurring on x86 32 bit machine. I now tried and, yes, they do not appear on i386 jessie, but not on amd64 jessie. So looks like this is the same issue that Ovidiu has reported. -- Juha

Re: [SR-Users] Enum module and parallel branching

2016-05-16 Thread Juha Heinanen
Loic Chabert writes: > Q value follow DNS NAPTER response order. > > Any ideas why my invite request has been sent at the same time, and not one > after another ? Special parameter needed in tm module ? perhaps you should try t_load_contacts()/next_contacts() calls. -- juha

Re: [SR-Users] 4.4 compiler warnings on debian jessie

2016-05-12 Thread Juha Heinanen
Juha Heinanen writes: > I have the same. Perhaps it has to do with some other defines. Do you > remember what to add to debian/rules in order to see all gcc parameters > during compilation? I did 'apt-get dist-upgrade'. The following packages were upgraded and the mem/tlsf_malloc.c

Re: [SR-Users] 4.4 compiler warnings on debian jessie

2016-05-12 Thread Juha Heinanen
Camille Oudot writes: > I'm also compiling on Debian 8, x86_64-linux-gnu architecture, but > cannot see these warnings, whether I run > > make MEMDBG=0 cfg > > or > > make MEMDBG=1 cfg > > before compiling. My gcc version is 4.9.2 (Debian 4.9.2-10). I have the same. Perhaps it has

Re: [SR-Users] 4.4 compiler warnings on debian jessie

2016-05-11 Thread Juha Heinanen
camille.ou...@orange.com writes: > All I see is that we are assigning a > void* (*)(tlsf_t, size_t) > to a > void* (*)(void* , unsigned long) > yet tlsf_t is defined as `typedef void* tlsf_t`, and size_t and unsigned long > have the same width on this architecture... Is that true also

Re: [SR-Users] 4.4 compiler warnings on debian jessie

2016-05-11 Thread Juha Heinanen
camille.ou...@orange.com writes: > is this happening on a x86 32 bits machine? I'm getting the warning in x86_64-linux-gnu environment. > Do compiling with clang generates an error too? If yes, is the error message > more specific about the issue? I don't clang. -- Juha

Re: [SR-Users] 4.4 compiler warnings on debian jessie

2016-05-11 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > we try to address the warnings as soon as possible, but sometime is a > matter of resources. The author of the tlsf code is Camille, which may > have some vacation, be traveling or really busy with other things -- it > is less than one day since you reported.

[SR-Users] 4.4 compiler warnings on debian jessie

2016-05-11 Thread Juha Heinanen
I have not got any comments about getting rid of 4.4 compiler warnings in mem/tlsf_malloc.c. I'm afraid that if such warnings are tolerated, it will soon be difficult to distinguish real problems from all the warning noise during. In my opinion, a sign of high quality software project is that no

[SR-Users] LCR Module Question

2016-05-06 Thread Juha Heinanen
Alberto Sagredo writes: > > I do not know if its enough to add under same lcr_id or its better to add > with different one and add several lcr_rule and lcr_rule_target > > Acordding to next_gw() function, what is better to be used? In my case. a > primary providers is used and only a backup one

Re: [SR-Users] xmlrpc crash

2016-05-03 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > And I think I found the issue -- when the type was not provided, the > pointer inside the xmlNode structure was used instead of using the > function to return a clone of the content, in order to free it later via > xmlrpc module garbage collector. > > I

Re: [SR-Users] xmlrpc crash

2016-05-03 Thread Juha Heinanen
in my sems xmlrpc test, i changed htable.reload command to permissions.trustedReload (that does not have parameters) and have not been able to produce a crash. my conclusion is that xmlrpc string parameter value without is causing the crash (perhaps due to memory allocation bug either in

Re: [SR-Users] xmlrpc crash

2016-05-03 Thread Juha Heinanen
string parameter value without tags is legal in xmlrpc: Scalar s s can be scalars, type is indicated by nesting the value inside one of the tags listed in this table: Tag TypeExample orfour-byte signed integer-12 0 (false) or 1 (true) 1 string hello world

Re: [SR-Users] xmlrpc crash

2016-05-03 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I checked the xmlrpc module commit log and last code changes were in > September 2014 - even those are not related to any xml ops. In the past, > have you used the xmlrpc commands for other similar deployments with an > older version than 4.4 of kamailio? I

Re: [SR-Users] xmlrpc crash

2016-05-03 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Thinking more of it -- is the route[cleaner] executed with rtimer on a > dedicated timer process? I have two timer routes: modparam("rtimer", "timer", "name=stat_timer;interval=60;mode=1") modparam("rtimer", "exec", "timer=stat_timer;route=stats")

Re: [SR-Users] xmlrpc crash

2016-05-03 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > What is the version of kamailio running there? 4.4 build from git on April 7. > xmlrpc is compiled by default to use system memory manager (expecting to > need big chunks for some responses), can you recompile it to use the > pkg? You have to edit

Re: [SR-Users] xmlrpc crash

2016-05-03 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > These ones are no longer related to xmlrpc, but triggered by an sqlops > query - first bracktrace, the other two are during the signal > handling. OK, but there must be some kind of relation to xmlrpc, because I have had this same test system running without

Re: [SR-Users] xmlrpc crash

2016-05-02 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > do you get any error messages in the logs or error code in the xmlrpc > reply? no error messages. the crash does not happen immediate when xmlrpc request is served. in the example below, the crash came about 20 sec later perhaps as result of some garbage

[SR-Users] xmlrpc crash

2016-05-01 Thread Juha Heinanen
i was sending some xmlrpc requests to kamailio and got crash. -- juha (gdb) where #0 0x7f9c465da634 in __GI___libc_free (mem=0x17828c0) at malloc.c:2945 #1 0x7f9c39e0b797 in collect_garbage () at xmlrpc.c:741 #2 0x7f9c39e12669 in dispatch_rpc (msg=0x0, s1=0x17828b0 "ams",

Re: [SR-Users] Kamailio Blind Call Forwarding

2016-04-18 Thread Juha Heinanen
Alex Balashov writes: > No, Kamailio cannot build new, independent call legs. This is a > function of a B2BUA. Yes, real easy with SEMS, for example. -- Juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

[SR-Users] [kamailio 5.0] upgrade VS rollback/backward compatibility

2016-04-12 Thread Juha Heinanen
Alex Lutay writes: > The point here that Kamailio checks DB table_version and doesn't start > if the version mismatch found. Yes, it makes sense to be able to run older version of k on newer table versions as long as newer versions of tables are backwards compatible, e.g., a new field has been

Re: [SR-Users] 4.4 crash at start

2016-04-06 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Thanks! Can you try with the patch > 1545b8de396e8e5d0ef24c9102beff18b3cf36e5? I tried and there was no crash. > Also, check that all listen ip addresses are actually used by kamailio > (they should be printed at startup). They were all listed. -- Juha

[SR-Users] 4.4 crash at start

2016-04-06 Thread Juha Heinanen
Juha Heinanen writes: > Perhaps recent commit e6dd2c172be3712e8c468cbe7e55ba94d81a7b62 is to > blame of the crash. Yes, I reverted the commit in my local source and the crash is gone. -- Juha ___ SIP Express Router (SER) and Kamailio (OpenSER

[SR-Users] 4.4 crash at start

2016-04-06 Thread Juha Heinanen
Juha Heinanen writes: > I build kamailio from latest 4.4 git source and got crash at start: > > (gdb) where > #0 0x00449af8 in add_interfaces ( > if_name=0x7f0e770106e8 "192.98.102.10", family=0, port=13880, proto=1978, > ai_l=0x1277600

[SR-Users] 4.4 crash at start

2016-04-06 Thread Juha Heinanen
I build kamailio from latest 4.4 git source and got crash at start: (gdb) where #0 0x00449af8 in add_interfaces ( if_name=0x7f0e770106e8 "192.98.102.10", family=0, port=13880, proto=1978, ai_l=0x1277600) at socket_info.c:1210 #1 0x0044ad77 in fix_socket_list (list=0x5,

Re: [SR-Users] pseudo variables in strings

2016-04-05 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I added pv_evalx() function in pv module which evaluates twice a string > containing variables. No time to test it, so any feedback is > appreciated. It will be also good to stress test it and check if there > is a memory leak for pkg, as the result for first

Re: [SR-Users] about rtpengine versions

2016-04-05 Thread Juha Heinanen
Richard Fuchs writes: > The version tag in the master branch is always one ahead of the latest > release branch, to make sure that builds from master are seen as newer > than release branches. The last release branch is 4.3.x, so master was > updated to 4.4. It's not a real released version

[SR-Users] about rtpengine versions

2016-04-05 Thread Juha Heinanen
I noticed that 15 days ago there was rtpengine commit https://github.com/sipwise/rtpengine/commit/aac8899b612dc8103b89f3f9c921f88af3501303 titled "Release new version 4.4.0.0+0~mr4.4.0.0", but I could not find the corresponding branch or tag. If someone wants to use that version, is 'git

Re: [SR-Users] pseudo variables in strings

2016-04-04 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I added pv_evalx() function in pv module which evaluates twice a string > containing variables. No time to test it, so any feedback is > appreciated. It will be also good to stress test it and check if there > is a memory leak for pkg, as the result for first

Re: [SR-Users] pseudo variables in strings

2016-04-04 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Dialplan can evaluate variables, is it a special case you need to return > variables and then evaluate after dp_translate() again? I made a test rule: match_exp subst_exp repl_exp ^\#11\#$ (empty)$fu and dp_translate(id) on sip:#11#@test.tutpro.com

Re: [SR-Users] pseudo variables in strings

2016-04-02 Thread Juha Heinanen
Alex Balashov writes: > Yes, either by separating the PV elements, e.g. > > $var(x) = $fU + "abc"; Alex, I cannot do that, because the string that contains pvs is result of a dp_translate call. > ... or with the newer $_s() PV created for this purpose: > > $var(x) = $_s($fUabc); No luck

[SR-Users] pseudo variables in strings

2016-04-01 Thread Juha Heinanen
If I have a string that contains pseudo variables, e.g,, $var(uri_pattern) = "sip:$f...@tutpro.com"; is it somehow possible to replace them with their values, something like: $var(uri) = eval("$var(uri_pattern)"); -- Juha ___ SIP Express Router

[SR-Users] Multiple LCR instances with LCR module

2016-03-25 Thread Juha Heinanen
DanB writes: > I was wondering if any of you use multiple LCR instances with LCR module > since I could see that the documentation allows it, however for some > reason the queries to load data (both on restart or kamcmd lcr.reload) > somehow hardcode the value of 1 inside: check that your

Re: [SR-Users] Kamailio 5.0 - B2BUA

2016-03-24 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > You said sems is calable but lacks docs, I guess that is less time > consuming to sort out for someone really interested given it is open > source than implementing something from scratch. I have been sending requests out from Kamailio via SEMS, for example, if

Re: [SR-Users] Kamailio 5.0 - Better way of dealing with stateless CANCELs

2016-03-15 Thread Juha Heinanen
Alex Balashov writes: > ‎I don't know about that. Granted, I work largely within the > intra-carrier/intra-industrial space, not so much with end-user > endpoints, but to me it seems UDP is still the overwhelming norm. In that space I would assume that SIP over TLS is mandatory. Anything else

Re: [SR-Users] Kamailio 5.0 - Better way of dealing with stateless CANCELs

2016-03-15 Thread Juha Heinanen
Alex Balashov writes: > I definitely had in mind a minimalistic solution which has few > dependencies on other elements of state -- and certainly, in my mind, it > was implicitly UDP-only. I thought that SIP over UDP had already disappeared from the planet. -- Juha

Re: [SR-Users] Kamailio 5.0 - B2BUA

2016-03-03 Thread Juha Heinanen
Would the proposed B2BUA be based on dialog module? If so, I remember a few years ago that there were some fundamental problems with dialog module and it was proposed to design a new dialog-ng module. I haven't followed what (if anything) happened. Would the proposed B2BUA also include SBC

[SR-Users] LCR Commands Kamctl

2016-03-01 Thread Juha Heinanen
Alberto Sagredo writes: > I have just edited kamctl in order to make lcr commands work. Hope that > helps someone. > > Using Kamailio 4.3.0 > > Please find kamctl attached also Alberto, Thanks for your kamctl contribution. If you like it to be committed to next release, please provide a new

[SR-Users] catching lost websocket ua

2016-03-01 Thread Juha Heinanen
Juha Heinanen writes: > The function that is run at the close has ws_connection_t argument: > > static void wsconn_run_route(ws_connection_t *wsc) > > ws_connection_t record has these two fields: > > int id; /* id and id_hash are id

Re: [SR-Users] catching lost websocket ua

2016-03-01 Thread Juha Heinanen
Juha Heinanen writes: > So the index would be: > > CONSTRAINT connection_idx UNIQUE (`server_id`, `connection_id`) I added the index. Should also version number be updated in case some people do db upgrades automatically when version changes?

Re: [SR-Users] catching lost websocket ua

2016-02-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > The index can be useful if there is an operation in the config file, > because I think the module doesn't do any match internally only on this > column. It is possible to save connection_id to hash table based on source ip/port and then on connection close add

Re: [SR-Users] catching lost websocket ua

2016-02-29 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > > Also, an index on connection_id would need to be created for location > > table. > > there is already a connection_id in the database table location? Or do > you mean something else? Yes, but no index on it. Without an index, it may take a long time to

[SR-Users] catching lost websocket ua

2016-02-28 Thread Juha Heinanen
Juha Heinanen writes: > If it is, may be its value could be made available to the event route in > a pseudo variable. Also, an index on connection_id would need to be created for location table. Is connection_id unique or can there be duplicates? If unique, the index could be uniq

[SR-Users] catching lost websocket ua

2016-02-28 Thread Juha Heinanen
I have done some more digging on websocket:closed event route. In DB_ONLY mode, easy deregistration of a websocket UA at connection close would require access in the event route to connection_id of the closed connection. The function that is run at the close has ws_connection_t argument: static

[SR-Users] catching lost websocket ua

2016-02-21 Thread Juha Heinanen
when a ua that has registered over tcp has lost its connection to sip proxy, t_relay() succeeds and branch failure route is executed: Feb 21 05:07:26 lohi /usr/bin/sip-proxy[20528]: INFO: ** entering branch_route [CONTACT_BRANCH] Feb 21 05:07:26 lohi /usr/bin/sip-proxy[20528]: INFO:

Re: [SR-Users] LCR

2016-02-15 Thread Juha Heinanen
Alexey V. Panfilov writes: > It's a pity. May I ask (as feature request) to add it to the future > version of Kam? I currently don't need such a feature. It might be possible to implement it by adding target_id field to struct target and to struct matched_gw_info. Then add_gws_into_avps()

[SR-Users] LCR

2016-02-14 Thread Juha Heinanen
Alexey V. Panfilov writes: > I'm using LCR module in my kamailio setup. I can access to the > gw_uri_avp's value of matched gateway, but I'd like to get value of > selected id of lcr_rule_target. Is there any way to get it? id of lcr_rule_target is not currently stored in gw_uri_avp. only flags

Re: [SR-Users] Presence: Notify on publication status refresh

2016-01-25 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > So the condition is that if a PUBLISH with no body is received and it > matches and existing record based on the value of SIP-If-Match header, > then don't trigger NOTIFY requests at all... right? Right, -- Juha ___

Re: [SR-Users] Presence: Notify on publication status refresh

2016-01-21 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > > Is it possible to configure Kamailio that wouldn’t send NOTIFY request > > to watchers when publication status refresh (PUBLISH without XML Body) > > occur? > > > > no NOTIFY should be sent? Or the NOTIFY in this case should be sent > without body, just with

Re: [SR-Users] rtpengine graphite statistics server

2016-01-15 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Not familiar with this per se, but as I understood, graphite is just a > rendering engine gathering metrics from a storage engine such as statsd. > So might be that rtpengine has the option to push metrics to statsd, > then graphite can build graphs out of them

[SR-Users] rtpengine graphite statistics server

2016-01-12 Thread Juha Heinanen
rtpengine README.md mentions "graphite statistics server". is that server openly available somewhere? -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org

Re: [SR-Users] [sr-dev] Panning next major release - v4.4

2016-01-08 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > replying on this announcement to get it fresh in mind for everyone and, > if it is needed, start relevant discussions for upcoming major release > 4.4. I too would like to have capability to reload tls certificates without restarting Kamailio. -- Juha

Re: [SR-Users] [sr-dev] Panning next major release - v4.4

2016-01-08 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Afaik, tls.cfg can be reloaded at runtime, that should reload the tls > certificates linked there. Have you tried and it doesn't work? > > http://www.kamailio.org/docs/modules/stable/modules/tls.html#tls.r.tls.reload I just tried by replacing ca_list file of

Re: [SR-Users] [sr-dev] Panning next major release - v4.4

2016-01-08 Thread Juha Heinanen
Juha Heinanen writes: > I just tried by replacing ca_list file of my proxy (that contained ca > certs of my peers) with a single bogus ca cert. Then I executed tls.cfg > and made a call from one of the peers to my proxy. My proxy still > recognized the call as coming from the peer

Re: [SR-Users] notify takes several seconds to generate

2015-12-28 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Isn't setting the value to 0sec disabling the buffering? yes, but Note: setting this parameter to 0 when subs_db_mode is 3 keeps the old behaviour (sending NOTIFY requests immediately). This (old) behaviour is disabled by default in DB only mode because

[SR-Users] notify takes several seconds to generate

2015-12-27 Thread Juha Heinanen
i noticed that kamailio 4.3 presence server takes several seconds to generate notify when it receives subscribe request. for example: Dec 27 15:42:01 lohi /usr/bin/sip-proxy[7363]: INFO: Routing SUBSCRIBE to presence server at Dec 27

[SR-Users] notify takes several seconds to generate

2015-12-27 Thread Juha Heinanen
Juha Heinanen writes: > i noticed that kamailio 4.3 presence server takes several seconds to > generate notify when it receives subscribe request. OK, found the reason. subs_db_mode=3 and notifier_processes=1 (default) and waitn_time=5 (default) means that NOTIFY requests may be buffered

[SR-Users] lost mysql connections

2015-12-21 Thread Juha Heinanen
Juha Heinanen writes: > for some reason once in a while kamailio processes fail to execute mysql > queries while at the same time an mysql test script that is run once per > second from cron works fine. forgot to mention that this is with kamailio 4.2. looks like there has been db_mysq

Re: [SR-Users] lost mysql connections

2015-12-21 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Is mysql server writing any error messages? I'll find out. > Do you use ssl connections for mysql? No, these mysql connections are without ssl. -- Juha ___ SIP Express Router (SER) and Kamailio (OpenSER) -

Re: [SR-Users] rtpengine module rtpengine_disable_tout question

2015-12-19 Thread Juha Heinanen
Mititelu Stefan writes: > does this mean that after 60 seconds is passed, rtpengine module will > > again try to use that RTP proxy, i.e., the RTP proxy does never become > > permanently disabled unless disabled by nh_enable_rtpp mi command? > > > > After the timer expiration, the node is retried

[SR-Users] crash in version 4.0

2015-12-18 Thread Juha Heinanen
core dump occurred in kamailio version 4.0. does anyone remember if a bug causing such a crash would possibly have been fixed in some later kamailio version? -- juha -- Dec 17 17:16:59 node5 /usr/sbin/sip-proxy[21089]:

[SR-Users] lost mysql connections

2015-12-18 Thread Juha Heinanen
for some reason once in a while kamailio processes fail to execute mysql queries while at the same time an mysql test script that is run once per second from cron works fine. kamailio executes mysql queries during normal sip message processing and also when it processes an OPTIONS ping test

  1   2   3   4   5   6   7   8   9   10   >