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
http://lists.sip-router.org/cgi-bi
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 Router
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@lists.
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
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 =
sip:#t...@test.tu
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
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 read
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 am
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
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 -fali
LD_EXTRA_OPTS="$(LD_EXTRA_OPTS)" \
group_include="opensipg"
>
> Cheers,
> Daniel
>
> On 09/02/2017 22:48, Juha Heinanen wrote:
> > Daniel-Constantin Mierla writes:
> >
> >> the GIT branch 5.0 has just been created, it will ho
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
Daniel-Constantin Mierla writes:
> > I'm not aware of one, but xhttp requests inherently trigger an event_route:
> >
> > http://kamailio.org/docs/modules/4.4.x/modules/xhttp.html#idp49731828
> >
> > If you had a need to execute some other logic that cannot be located
> > there, I suppose you could
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
http://lists.sip-router.org/cgi-bin/mailman/list
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
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
us
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) - sr-use
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 wh
Laura writes:
> The LCR modules make the new INVITE using the original To field and
> don't rewrite it like on the first request..
> How is that possibile ?
LCR module never does anything to To header. Look at your config
elsewhere.
-- Juha
___
SIP
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
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 (O
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 chang
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, bu
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 for
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
Alex Balashov writes:
> Check out the ipops module:
>
> http://kamailio.org/docs/modules/4.4.x/modules/ipops.html
Great, thanks, Juha
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://list
I did not find in textops or utils modules a function to check if a
string is an ipv4 address. Does it exist somewhere else?
-- Juha
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.
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 se
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) E
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 sip-pr
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 Rou
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
$t
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.
-- Juh
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
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 cen
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
___
SIP
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: derefere
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) [sip
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 m
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.
-
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: init_tls_
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" (0x100011
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. U
Alberto Sagredo writes:
> 1.- Take a look to keepalived.org
Another possibility is to use corosync/pacemaker. I think someone wrote
a tutorial about it.
-- Juha
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@list
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: '$avp(i:500
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
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
___
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/tls
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 to
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 wh
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
__
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. Als
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
debian jessie c compiler complains about these in kamailio 4.4:
CC (gcc) [sip-proxy]mem/tlsf_malloc.o
mem/tlsf_malloc.c: In function 'tlsf_malloc_init_pkg_manager':
mem/tlsf_malloc.c:1353:16: warning: assignment from incompatible pointer type
ma.xmalloc= tlsf_malloc;
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 f
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 couldn't
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 kamailio
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
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 have
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")
modparam("rti
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 modules/xmlrp
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 any
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 colle
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",
s2=0x7f9
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@lists.si
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 ad
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
_
Juha Heinanen writes:
> I'm not quite sure. I just replaced socket_info.c with the one that is
> enclosed.
Forgot to enclose working socket_info.c.
-- Juha
socket_info.c
Description: socket_info.c
___
SIP Express Router (SER) and Kamail
Daniel-Constantin Mierla writes:
> Have you reverted only e6dd2c172be3712e8c468cbe7e55ba94d81a7b62, or
> also d7fca53e8c5409849ec044098a143e7254129c00.
I'm not quite sure. I just replaced socket_info.c with the one that is
enclosed.
> >From the core file, can you give the output with gdb for:
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
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
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, t
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 eva
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 unt
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 archive
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 eva
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 pr
Was the conclusion that it is not currently possible to evaluate a
string value of a pseudo variable that contains pseudo variables?
If so, I'll add feature request, since that kind of capability would
greatly increase dynamic nature of Kamailio configuration.
-- Juha
___
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 with
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 (SER
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 lcr_cou
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
Igor Olhovskiy writes:
> Yes, but shouldn’t it override by modparam("presence", "max_expires", 3600)
You need to set max_expires to accommodate your needs.
-- Juha
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@li
Igor Olhovskiy writes:
> Is there any possibility to set Expires in PUBLISH message to never in
> Presence module?
> I want to have BLF’s that indicates states, that driven via PUBLISH, but
> can be really irregular (let’s say once a week)
at least in pua_publish, expires parameter can be set to
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 is
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
___
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 style
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 v
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
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?
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 s
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
delet
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 unique too.
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
Daniel-Constantin Mierla writes:
> > why can't kamailio behave the same way no matter if pure tcp connection
> > or one using websocket protocol over tcp connection fails?
> wobsocket management and communication is done in the websocket module,
> which probably does different type of processing.
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: *
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() functi
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
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
___
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 a
1 - 100 of 1197 matches
Mail list logo