Hi im currently using freetds via unixodbc to connect to a sql azure db which is ok but suffers from various connection busy errors. I would like to use the ms odbc driver as it supports MARS (multiple active result sets) which should stop the connection busy errors, and numerous other sql server specific enhancements However despite the odbc driver working fine with the unixodbc cli tools kamailio crashes when I try and start the service.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/501
Hello All,
Kamailio instance just crashed with the following logs
May 13 06:05:34 P172 /usr/local/kamailio/sbin/kamailio[12693]: CRITICAL: <core> [pass_fd.c:275]: receive_fd(): EOF on 10
May 13 06:05:34 P172 /usr/local/kamailio/sbin/kamailio[12667]: ALERT: <core> [main.c:739]: handle_sigs(): child process 12671 exited by a signal 11
May 13 06:05:34 P172 /usr/local/kamailio/sbin/kamailio[12667]: ALERT: <core> [main.c:742]: handle_sigs(): core was generated
May 13 06:05:34 P172 /usr/local/kamailio/sbin/kamailio[12667]: INFO: <core> [main.c:754]: handle_sigs(): terminating due to SIGCHLD
....
....
May 13 06:05:34 P172 /usr/local/kamailio/sbin/kamailio[12667]: INFO: <core> [mem/f_malloc.c:598]: fm_free(): freeing a free fragment (0x7f23ff39cb88/0x7f23ff39cbd0) - ignore
the gdb traces are as below,
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007f23facf0f86 in run_create_callbacks (dlg=0x7f23ff849b18, msg=0x7f24201ead80) at dlg_cb.c:230
#2 0x00007f23fad0cedf in dlg_new_dialog (req=0x7f24201ead80, t=0x7f23ff848488, run_initial_cbs=1) at dlg_handlers.c:869
#3 0x00007f23fad0b80e in dlg_onreq (t=0x7f23ff848488, type=1, param=0x7f241feabc60 <params>) at dlg_handlers.c:722
#4 0x00007f241fbe4b25 in run_reqin_callbacks_internal (hl=0x7f23ff3536e8, trans=0x7f23ff848488, params=0x7f241feabc60 <params>) at t_hooks.c:360
#5 0x00007f241fbe4c31 in run_reqin_callbacks (trans=0x7f23ff848488, req=0x7f24201ead80, code=1) at t_hooks.c:385
#6 0x00007f241fba0e63 in build_cell (p_msg=0x7f24201ead80) at h_table.c:373
#7 0x00007f241fbf6e8c in new_t (p_msg=0x7f24201ead80) at t_lookup.c:1269
#8 0x00007f241fbf8194 in t_newtran (p_msg=0x7f24201ead80) at t_lookup.c:1409
#9 0x00007f241fbc9f8c in t_relay_to (p_msg=0x7f24201ead80, proxy=0x0, proto=0, replicate=0) at t_funcs.c:242
#10 0x00007f241fc0c9e8 in _w_t_relay_to (p_msg=0x7f24201ead80, proxy=0x0, force_proto=0) at tm.c:1425
#11 0x00007f241fc0dc6d in w_t_relay (p_msg=0x7f24201ead80, _foo=0x0, _bar=0x0) at tm.c:1626
#12 0x000000000041f71f in do_action (h=0x7ffd11757ce0, a=0x7f2420089228, msg=0x7f24201ead80) at action.c:1054
#13 0x000000000042c5aa in run_actions (h=0x7ffd11757ce0, a=0x7f2420089228, msg=0x7f24201ead80) at action.c:1549
#14 0x000000000042cc6a in run_actions_safe (h=0x7ffd1175b210, a=0x7f2420089228, msg=0x7f24201ead80) at action.c:1614
#15 0x000000000055a40a in rval_get_int (h=0x7ffd1175b210, msg=0x7f24201ead80, i=0x7ffd117580d4, rv=0x7f2420087d88, cache=0x0) at rvalue.c:912
#16 0x000000000055ea84 in rval_expr_eval_int (h=0x7ffd1175b210, msg=0x7f24201ead80, res=0x7ffd117580d4, rve=0x7f2420087d80) at rvalue.c:1910
#17 0x000000000055eee6 in rval_expr_eval_int (h=0x7ffd1175b210, msg=0x7f24201ead80, res=0x7ffd11758238, rve=0x7f2420089430) at rvalue.c:1918
#18 0x000000000041f1ca in do_action (h=0x7ffd1175b210, a=0x7f2420089e68, msg=0x7f24201ead80) at action.c:1030
#19 0x000000000042c5aa in run_actions (h=0x7ffd1175b210, a=0x7f2420075ef0, msg=0x7f24201ead80) at action.c:1549
#20 0x000000000041f68e in do_action (h=0x7ffd1175b210, a=0x7f242008a0c8, msg=0x7f24201ead80) at action.c:1045
#21 0x000000000042c5aa in run_actions (h=0x7ffd1175b210, a=0x7f2420046f50, msg=0x7f24201ead80) at action.c:1549
#22 0x000000000041bee8 in do_action (h=0x7ffd1175b210, a=0x7f242002e2d0, msg=0x7f24201ead80) at action.c:678
#23 0x000000000042c5aa in run_actions (h=0x7ffd1175b210, a=0x7f242002df30, msg=0x7f24201ead80) at action.c:1549
#24 0x000000000041f68e in do_action (h=0x7ffd1175b210, a=0x7f2420030280, msg=0x7f24201ead80) at action.c:1045
#25 0x000000000042c5aa in run_actions (h=0x7ffd1175b210, a=0x7f242002b418, msg=0x7f24201ead80) at action.c:1549
#26 0x000000000041f68e in do_action (h=0x7ffd1175b210, a=0x7f2420031a10, msg=0x7f24201ead80) at action.c:1045
#27 0x000000000042c5aa in run_actions (h=0x7ffd1175b210, a=0x7f2420031a10, msg=0x7f24201ead80) at action.c:1549
#28 0x000000000041bee8 in do_action (h=0x7ffd1175b210, a=0x7f241ff08e60, msg=0x7f24201ead80) at action.c:678
#29 0x000000000042c5aa in run_actions (h=0x7ffd1175b210, a=0x7f241ff083c8, msg=0x7f24201ead80) at action.c:1549
#30 0x000000000041f68e in do_action (h=0x7ffd1175b210, a=0x7f241ff090c0, msg=0x7f24201ead80) at action.c:1045
#31 0x000000000042c5aa in run_actions (h=0x7ffd1175b210, a=0x7f241feff908, msg=0x7f24201ead80) at action.c:1549
#32 0x000000000042cd53 in run_top_route (a=0x7f241feff908, msg=0x7f24201ead80, c=0x0) at action.c:1635
#33 0x000000000051d57a in receive_msg (
buf=0xabb500 <buf> "INVITE sip:a92a88a0-18d0-11e6-b333-9dc315c4caad@sunilmore.in SIP/2.0\r\nVia: SIP/2.0/UDP sunilmore.in:6000;rport;branch=z9hG4bK87avNBSpD6ajB\r\nMax-Forwards: 69\r\nFrom: \"\" <sip:123456789@sunilmore.in>"..., len=1972, rcv_info=0x7ffd1175b580) at receive.c:240
#34 0x00000000006302f1 in udp_rcv_loop () at udp_server.c:495
#35 0x00000000004b3062 in main_loop () at main.c:1600
#36 0x00000000004ba772 in main (argc=13, argv=0x7ffd1175ba88) at main.c:2616
The version i am using is
version: kamailio 4.4.1 (x86_64/linux) 90be8b
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 90be8b
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/619
Module: kamailio
Branch: master
Commit: 8b2ca1737640b5d860f4bf959a9c663c61aa05b1
URL: https://github.com/kamailio/kamailio/commit/8b2ca1737640b5d860f4bf959a9c663…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-06-06T11:31:51+02:00
modules/ims_registrar_pcscf: incorrect flag when searching for pcontact
---
Modified: modules/ims_registrar_pcscf/notify.c
---
Diff: https://github.com/kamailio/kamailio/commit/8b2ca1737640b5d860f4bf959a9c663…
Patch: https://github.com/kamailio/kamailio/commit/8b2ca1737640b5d860f4bf959a9c663…
---
diff --git a/modules/ims_registrar_pcscf/notify.c b/modules/ims_registrar_pcscf/notify.c
index c23e4b2..67542a9 100644
--- a/modules/ims_registrar_pcscf/notify.c
+++ b/modules/ims_registrar_pcscf/notify.c
@@ -176,7 +176,7 @@ int process_contact(udomain_t * _d, int expires, str contact_uri, int contact_st
LM_DBG("Setting received port in search to %d\n", ci.received_port);
ci.received_proto = received_proto;
LM_DBG("Setting received proto in search to %d\n", ci.received_proto);
- ci.searchflag = (1 << SEARCH_RECEIVED);
+ ci.searchflag = SEARCH_RECEIVED;
} else {
LM_DBG("Contact in NOTIFY does not have an alias....\n");
}
Module: kamailio
Branch: master
Commit: e944564aa6ab8637cc8e45a2aea0e16f57b996db
URL: https://github.com/kamailio/kamailio/commit/e944564aa6ab8637cc8e45a2aea0e16…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2016-06-06T11:31:50+02:00
modules/ims_charging: change WARN to DBG
---
Modified: modules/ims_charging/mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/e944564aa6ab8637cc8e45a2aea0e16…
Patch: https://github.com/kamailio/kamailio/commit/e944564aa6ab8637cc8e45a2aea0e16…
---
diff --git a/modules/ims_charging/mod.c b/modules/ims_charging/mod.c
index 34035d8..f1f8242 100644
--- a/modules/ims_charging/mod.c
+++ b/modules/ims_charging/mod.c
@@ -515,7 +515,7 @@ static int w_ro_ccr(struct sip_msg *msg, char* c_route_name, char* c_direction,
} else if (dir == RO_TERM_DIRECTION){
//get callee IMPU from called part id - if not present then skip this
if ((identity = cscf_get_public_identity_from_called_party_id(msg, &h)).len == 0) {
- LM_WARN("No P-Called-Identity hdr found - will not get callbacks if this IMPU is removed to terminate call");
+ LM_DBG("No P-Called-Identity hdr found - will not get callbacks if this IMPU is removed to terminate call");
goto send_ccr;
}
//get callee contact from request URI