Following #48 and #80
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/89
-- Commit Summary --
* ctl: use RUN_DIR env to set DEFAULT_CTL_SOCKET
* etc: set ctl "binrpc" to new /var/run/kamailio default value
* utils/kamctl: change fifo default path to /var/run/kamailio
* etc: change fifo default to /var/run/kamailio
-- File Changes --
M etc/kamailio-basic.cfg (4)
M etc/kamailio-oob.cfg (4)
M etc/kamailio.cfg (4)
M modules/ctl/ctl_defaults.h (4)
M utils/kamctl/kamctl.fifo (2)
M utils/kamctl/kamctlrc (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/89.patchhttps://github.com/kamailio/kamailio/pull/89.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/89
Hi All,
I have been experiencing a deadlock when a timeout occurs on a t_relayed()
INVITE. Going through the code I have noticed a possible chance of deadlock
(without re-entrant enabled). Here is my thinking:
t_should_relay_response() is called with REPLY_LOCK when the timer process
fires on the fr_inv_timer (no response from the INVITE that was relayed,
other than 100 provisional) and a 408 is generated. However, from within
that function there are calls to run_failure_handlers() which in turn
*could* try and lock the reply (viz. somebody having a t_reply() call in
the cfg file - in failure route block). This would result in another lock
on the same transaction's REPLY_LOCK....
Has anybody else experienced something like this?
this is on master btw.
Cheers
Jason
Hello,
I am considering to release a new maintenance version from latest stable
branch - to be v4.2.4 - next week, most likely on Thursday, April 2. If
there is anything important to get in and not discussed yet, bring the
topic on development mailing list.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com
If Kamailio is globally configured to send offline notification replies using `modparam("msilo", "from_address", "sip:$rU@example.com")`, there is currently no way to disable the offline notification reply during script processing.
For example, a scenario where you might want to store the original MESSAGE but not send the offline notification reply is when you are also using the IMC module. When `user(a)example.com` is part of an IMC chat, but goes offline for some reason, the MSILO module will store original MESSAGE, then generate the offline notification reply back to the IMC chat, which generates another MESSAGE with `user(a)example.com` as a recipient... This instantly leads to thousands of MESSAGE generations.
I am thinking that it's a nice feature to have offline notification replies enabled when `modparam("msilo", "from_address", "sip:$rU@example.com")` is defined, but that the MSILO module could check the existence (nor non-existence) of a flag to determine whether or not it would generate an offline notification reply, so the logic would be something like:
```
#!define FLT_MSILO_DISABLE_OFFLINE_REPLY 13
modparam("msilo", "from_address", "sip:$rU@example.com")
modparam("msilo", "disable_offline_reply_flag", FLT_MSILO_DISABLE_OFFLINE_REPLY)
```
Then m_store() checks that `from_address` is valid and that `disable_offline_reply_flag` is not set.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/61
Trying to load my server in the background, the main process core dumps at init of db_sqlite
Git head, os/x
(gdb) bt full
#0 0x00007fff8610c66a in _dispatch_barrier_async_f_slow ()
No symbol table info available.
#1 0x00007fff8acd13bd in sqlite3_initialize ()
No symbol table info available.
#2 0x0000000104b75ba3 in sqlite_mod_init () at db_sqlite.c:69
No locals.
#3 0x00000001033bc93c in init_mod (m=0x103809b80) at sr_module.c:943
No locals.
#4 0x00000001033bc414 in init_mod (m=0x103809e58) at sr_module.c:940
No locals.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/43
My websocket TLS server is full of these kinds of messages:
Jan 18 18:10:26 ws0 /usr/sbin/kamailio[19701]: NOTICE: <script>:
http:217.120.x.x:55386: WS connection closed
...
Jan 18 18:10:26 ws0 /usr/sbin/kamailio[19689]: WARNING: <core>
[msg_translator.c:2506]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found
Jan 18 18:10:26 ws0 /usr/sbin/kamailio[19689]: ERROR: <core>
[msg_translator.c:1722]: build_req_buf_from_sip_req(): could not create Via header
Jan 18 18:10:26 ws0 /usr/sbin/kamailio[19689]: ERROR: tm
[t_fwd.c:527]: prepare_new_uac(): could not build request
Jan 18 18:10:26 ws0 /usr/sbin/kamailio[19689]: ERROR: tm
[t_fwd.c:1773]: t_forward_nonack(): ERROR: t_forward_nonack: failure to add branches
Jan 18 18:10:26 ws0 /usr/sbin/kamailio[19689]: ERROR: sl
[sl_funcs.c:387]: sl_reply_error(): ERROR: sl_reply_error used: No error (2/SL)
(repeat these last errors for a bunch of attempted NOTIFY forwards)
The route block does basically something like this:
# add_contact_alias(); # only for requests from the outside
loose_route();
if (!t_relay()) {
sl_reply_error();
}
The problem arises here:
}else if (send_info->proto==PROTO_WS){
...
con = tcpconn_get(send_info->id, &ip, port, from, 0)
...
if (con == NULL) {
LM_WARN("TCP/TLS connection (id: %d) for WebSocket could not be found\n", send_info->id);
The NULL failure status gets returned up to `prepare_new_uac` in `t_fwd.c`:
shbuf=build_req_buf_from_sip_req( i_req, &len, dst, BUILD_IN_SHM);
if (!shbuf) {
LM_ERR("could not build request\n");
ret=E_OUT_OF_MEM;
goto error01;
}
At this point, ser_error will become `E_OUT_OF_MEM` while it should be something like `E_SEND`.
And `E_OUT_OF_MEM` gets translated to `500 No Error` because we're not running in DEBUG mode.
What causes the connection to drop in the first place, you ask?
18:10:18.690738 IP 217.120.x.x.55386 > 195.35.x.x.443: Flags [S], seq 1323983240, win 8192, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0
18:10:18.690863 IP 195.35.x.x.443 > 217.120.x.x.55386: Flags [S.], seq 4077761781, ack 1323983241, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 3], length 0
18:10:18.710846 IP 217.120.x.x.55386 > 195.35.x.x.443: Flags [.], ack 1, win 256, length 0
18:10:18.808751 IP 217.120.x.x.55386 > 195.35.x.x.443: Flags [P.], seq 1:246, ack 1, win 256, length 245
...
18:10:19.233415 IP 195.35.x.x.443 > 217.120.x.x.55386: Flags [.], ack 31348, win 5126, length 0
18:10:26.489764 IP 217.120.x.x.55386 > 195.35.x.x.443: Flags [P.], seq 31348:32473, ack 34578, win 255, length 1125
...
18:10:26.501409 IP 195.35.x.x.443 > 217.120.x.x.55386: Flags [P.], seq 42255:42916, ack 46010, win 5046, length 661
18:10:26.527755 IP 217.120.x.x.55386 > 195.35.x.x.443: Flags [.], ack 36993, win 252, length 0
18:10:26.527860 IP 195.35.x.x.443 > 217.120.x.x.55386: Flags [.], seq 42916:47296, ack 46010, win 5278, length 4380
18:10:26.527888 IP 195.35.x.x.443 > 217.120.x.x.55386: Flags [FP.], seq 47296:48663, ack 46010, win 5278, length 1367
18:10:26.529179 IP 217.120.x.x.55386 > 195.35.x.x.443: Flags [.], ack 40501, win 254, length 0
18:10:26.529200 IP 217.120.x.x.55386 > 195.35.x.x.443: Flags [.], ack 42916, win 251, length 0
18:10:26.547276 IP 217.120.x.x.55386 > 195.35.x.x.443: Flags [.], ack 48664, win 251, length 0
18:10:26.549712 IP 217.120.x.x.55386 > 195.35.x.x.443: Flags [F.], seq 46010, ack 48664, win 251, length 0
18:10:26.549750 IP 195.35.x.x.443 > 217.120.x.x.55386: Flags [.], ack 46011, win 5278, length 0
Where you see that the FIN is initiated by `195.35.x.x` which is the Kamailio websocket server.
The cause (probably) is the WS client closing the connection. In this case after re-subscribing with Expires:0. The presence server attempts to reply with a bunch of NOTIFYs with `Subscription-State: terminated;reason=timeout` but they bounce on the broken connection. If Kamailio would return a nice "477 Unfortunately error on sending to next hop occurred" it'd be prettier.
Getting less "error" messages (a total of 6 *per* expired/unsubscribed subscription) after this error --which is apparently very common -- would be beneficial too.
As for fixing:
- We could change the `via_builder` to set `ser_error` (and check that in `build_req_buf_from_sip_req`), or
- add error-code-out-parameters to all calls from `build_req_buf_from_sip_req` and down.
I'm not sure if either is the best way.
As for the excessive error reporting, would looking at `ser_error` before printing (another) error be an acceptable fix?
Cheers,
Walter Doekes
OSSO B.V.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/47
DMQ Developers,
Our team would like to setup a DMQ bus
<http://kamailio.org/docs/modules/4.2.x/modules/dmq.html#idp2640048> that
contains more than one notification address
<http://kamailio.org/docs/modules/4.2.x/modules/dmq.html#dmq.p.notification_…>
to support a high availability, fault-tolerant system where multiple
servers are used to maintain the list of DMQ nodes. The failure of any one
DMQ node or the startup order should not cause the DMQ bus to lose track of
available nodes. As nodes go offline and online the DMQ bus should be
updated using information from the active nodes. To do this we propose
changing the way DMQ uses the notification address.
Currently the notification address resolves a DNS name to a single IP
address even if a SRV record or multiple A/AAAA records are available. The
proposal is to use all the A/AAAA records or SRV targets returned from a
DNS name query as notification addresses.
Do you have any comments, concerns, suggestions, or recommendations
regarding this proposal? Your input is definitely welcome.
Thank you,
Bob
after handle_subscribe there is no safe way in script to obtain the presently
because re-subscription RURI is ip of kamailio and To-Uri may not contain
the presently.
$subs(uri) will allow access to this value
added as a pv to allow extension to get more properties from subscription
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/118
-- Commit Summary --
* presence: add $subs pv for subscription access
-- File Changes --
M modules/presence/doc/presence_admin.xml (34)
M modules/presence/presence.c (7)
M modules/presence/presence.h (3)
M modules/presence/subscribe.c (51)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/118.patchhttps://github.com/kamailio/kamailio/pull/118.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/118