Module: kamailio
Branch: master
Commit: 776a3143948445c68f8a7b4cabba0c1a21f9f6ad
URL: https://github.com/kamailio/kamailio/commit/776a3143948445c68f8a7b4cabba0c1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-11-05T08:39:34+01:00
sipcapture: updated the docs for functions
- missing parameters to existing functions and docs for float2int()
---
Modified: src/modules/sipcapture/doc/sipcapture_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/776a3143948445c68f8a7b4cabba0c1…
Patch: https://github.com/kamailio/kamailio/commit/776a3143948445c68f8a7b4cabba0c1…
---
diff --git a/src/modules/sipcapture/doc/sipcapture_admin.xml b/src/modules/sipcapture/doc/sipcapture_admin.xml
index c5590b3c1c..8dc500d0cf 100644
--- a/src/modules/sipcapture/doc/sipcapture_admin.xml
+++ b/src/modules/sipcapture/doc/sipcapture_admin.xml
@@ -203,7 +203,7 @@ modparam("sipcapture", "capture_on", 1)
</section>
<section id="sipcapture.p.capture_mode">
- <title><varname>capture_mode</varname> (integer)</title>
+ <title><varname>capture_mode</varname> (str)</title>
<para>
This parameter can be used for defining a capture mode which can be used in
the sip_capture calls as a parameter. A capture mode has a name and some parameters.
@@ -518,7 +518,7 @@ modparam("sipcapture", "nonsip_hook", 1)
<title>Functions</title>
<section id="sipcapture.f.sip_capture">
<title>
- <function moreinfo="none">sip_capture([table])</function>
+ <function moreinfo="none">sip_capture([table], [cmode])</function>
</title>
<para>
Store the current processed HEP/IPIP SIP message in database. It is stored in the
@@ -532,10 +532,14 @@ modparam("sipcapture", "nonsip_hook", 1)
as an argument of the sip_capture function.
</para>
</listitem>
+ <listitem>
+ <para><emphasis>cmode</emphasis> - The reference to the capture_mode
+ parameter.
+ </para>
+ </listitem>
</itemizedlist>
<para>
- This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
- ONREPLY_ROUTE, BRANCH_ROUTE.
+ This function can be used from ANY_ROUTE.
</para>
<emphasis>
Default value is "NULL".
@@ -548,12 +552,14 @@ sip_capture();
...
sip_capture("sip_capture_call_20160124");
...
+sip_capture("", "cmode");
+...
</programlisting>
</example>
</section>
<section id="sipcapture.f.report_capture">
<title>
- <function moreinfo="none">report_capture([table],[data])</function>
+ <function moreinfo="none">report_capture([table], [cid], [data])</function>
</title>
<para>
Store the current processed HEP REPORT message in database.
@@ -563,13 +569,18 @@ sip_capture("sip_capture_call_20160124");
<listitem>
<para><emphasis>table</emphasis> - The table where REPORT message will be stored.
</para>
- <para><emphasis>data</emphasis> - The custom report data.
+ </listitem>
+ <listitem>
+ <para><emphasis>cid</emphasis> - The correlation id.
+ </para>
+ </listitem>
+ <listitem>
+ <para><emphasis>data</emphasis> - The custom report data in JSON format.
</para>
</listitem>
</itemizedlist>
<para>
- This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
- ONREPLY_ROUTE, BRANCH_ROUTE.
+ This function can be used from ANY_ROUTE.
</para>
<emphasis>
Default value is "NULL".
@@ -580,14 +591,32 @@ sip_capture("sip_capture_call_20160124");
...
report_capture();
...
-report_capture("report_data");
+report_capture("report_data", "$ci");
...
-report_capture("report_data", "{\"MOS\":4.1,\"PACKET_LOST\":100"});
+report_capture("report_data", "$ci", "{\"MOS\":4.1,\"PACKET_LOST\":100"});
...
</programlisting>
</example>
</section>
-
+ <section id="sipcapture.f.float2int">
+ <title>
+ <function moreinfo="none">float2int(fval, ival)</function>
+ </title>
+ <para>
+ Return the value of atof(fval) * atoi(ival). On case the result is 0,
+ then -1 is returned.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>report_capture()</function> usage</title>
+ <programlisting format="linespecific">
+...
+$var(res) = float2int("10.5", "1");
+...
+</programlisting>
+ </example>
</section>
<section>
I have a task to change the backend database of kamailio to mongodb. I have updated the DBURL to a valid URL of mongodb. Kamailio startup successfully firsttime when i insert some documents into the version collection. But after a user registed into kamailio, a location collection will be created. In this case i stop kamailio and try to start kamailio again, kamailio failed to startup. The log is:
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:349]: db_mongodb_get_columns(): 20 columns returned from the query
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:158]: db_allocate_columns(): allocate 160 bytes for result names at 0x7f934f907a30
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:169]: db_allocate_columns(): allocate 80 bytes for result types at 0x7f934f8fe290
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[0] named: username
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:403]: db_mongodb_get_columns(): allocate 16 bytes for RES_NAMES[0] at 0x7f934f907b38
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:438]: db_mongodb_get_columns(): use DB1_STRING result type
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:467]: db_mongodb_get_columns(): RES_NAMES(0x7f934f907b38)[0]=[username] (2)
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[1] named: contact
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:403]: db_mongodb_get_columns(): allocate 16 bytes for RES_NAMES[1] at 0x7f934f907bb0
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:438]: db_mongodb_get_columns(): use DB1_STRING result type
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:467]: db_mongodb_get_columns(): RES_NAMES(0x7f934f907bb0)[1]=[contact] (2)
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[2] named: expires
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:403]: db_mongodb_get_columns(): allocate 16 bytes for RES_NAMES[2] at 0x7f934f907c28
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:428]: db_mongodb_get_columns(): use DB1_DATETIME result type
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:467]: db_mongodb_get_columns(): RES_NAMES(0x7f934f907c28)[2]=[expires] (9)
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[3] named: q
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:403]: db_mongodb_get_columns(): allocate 16 bytes for RES_NAMES[3] at 0x7f934f907ca0
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:423]: db_mongodb_get_columns(): use DB1_DOUBLE result type
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:467]: db_mongodb_get_columns(): RES_NAMES(0x7f934f907ca0)[3]=[q] (1)
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[4] named: callid
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:403]: db_mongodb_get_columns(): allocate 16 bytes for RES_NAMES[4] at 0x7f934f907d18
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:438]: db_mongodb_get_columns(): use DB1_STRING result type
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:467]: db_mongodb_get_columns(): RES_NAMES(0x7f934f907d18)[4]=[callid] (2)
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[5] named: cseq
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:403]: db_mongodb_get_columns(): allocate 16 bytes for RES_NAMES[5] at 0x7f934f907d90
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:413]: db_mongodb_get_columns(): use DB1_INT result type
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:467]: db_mongodb_get_columns(): RES_NAMES(0x7f934f907d90)[5]=[cseq] (16)
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[6] named: flags
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:403]: db_mongodb_get_columns(): allocate 16 bytes for RES_NAMES[6] at 0x7f934f907e08
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:413]: db_mongodb_get_columns(): use DB1_INT result type
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:467]: db_mongodb_get_columns(): RES_NAMES(0x7f934f907e08)[6]=[flags] (16)
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[7] named: cflags
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:403]: db_mongodb_get_columns(): allocate 16 bytes for RES_NAMES[7] at 0x7f934f9150e0
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:413]: db_mongodb_get_columns(): use DB1_INT result type
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:467]: db_mongodb_get_columns(): RES_NAMES(0x7f934f9150e0)[7]=[cflags] (16)
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[8] named: user_agent
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:403]: db_mongodb_get_columns(): allocate 16 bytes for RES_NAMES[8] at 0x7f934f915158
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:438]: db_mongodb_get_columns(): use DB1_STRING result type
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:467]: db_mongodb_get_columns(): RES_NAMES(0x7f934f915158)[8]=[user_agent] (2)
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: db_mongodb [mongodb_dbase.c:377]: db_mongodb_get_columns(): Found a field[9] named: received
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: ERROR: db_mongodb [mongodb_dbase.c:387]: db_mongodb_get_columns(): field [received] not found in result iterator
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: ERROR: db_mongodb [mongodb_dbase.c:752]: db_mongodb_store_result(): failed to set the columns
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: ERROR: db_mongodb [mongodb_dbase.c:931]: db_mongodb_query(): failed to store result
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: ERROR: db_mongodb [mongodb_dbase.c:940]: db_mongodb_query(): failed to do the query
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:79]: db_free_columns(): freeing 20 columns
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[0] at 0x7f934f907b38
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[1] at 0x7f934f907bb0
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[2] at 0x7f934f907c28
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[3] at 0x7f934f907ca0
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[4] at 0x7f934f907d18
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[5] at 0x7f934f907d90
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[6] at 0x7f934f907e08
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[7] at 0x7f934f9150e0
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:83]: db_free_columns(): freeing RES_NAMES[8] at 0x7f934f915158
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:96]: db_free_columns(): freeing result names at 0x7f934f907a30
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:101]: db_free_columns(): freeing result types at 0x7f934f8fe290
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: DEBUG: <core> [db_res.c:138]: db_free_result(): freeing result set at 0x7f934f8fe158
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: ERROR: usrloc [udomain.c:457]: preload_udomain(): db_query failed
Nov 3 18:53:38 kamailio-1 ./kamailio[40735]: ERROR: usrloc [usrloc_mod.c:429]: child_init(): child(1): failed to preload domain 'location'
--
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/1300
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests.
If you have questions about using Kamailio or related to its configuration file,
ask on sr-users mailing list:
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing
C code, ask on sr-dev mailing list
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement), you can delete the text of
the template and only add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
Kamailio segfaults possibly when trying to write to the DB when it can't.
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
Shutdown Kamailio when the DB is no longer connected (I see this most often with a system reboot)
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
Stack trace of thread 6620:
#0 0x00007f8df3c54c4a get_event (pua.so)
#1 0x00007f8df3c4e450 send_publish (pua.so)
#2 0x00007f8df3a3c189 ul_publish (pua_usrloc.so)
#3 0x00007f8df71feda0 run_ul_callbacks (usrloc.so)
#4 0x00007f8df7201136 wb_timer (usrloc.so)
#5 0x00007f8df720233a timer_urecord (usrloc.so)
#6 0x00007f8df71fa644 mem_timer_udomain (usrloc.so)
#7 0x00007f8df7225ae9 synchronize_all_udomains (usrloc.so)
#8 0x00007f8df7207d18 destroy (usrloc.so)
#9 0x000000000051d55e destroy_modules (kamailio)
#10 0x0000000000418269 cleanup (kamailio)
#11 0x00000000004199cc shutdown_children (kamailio)
#12 0x000000000041a3f7 handle_sigs (kamailio)
#13 0x0000000000424062 main_loop (kamailio)
#14 0x0000000000429ca3 main (kamailio)
#15 0x00007f8e05b8a88a __libc_start_main (libc.so.6)
#16 0x000000000041795a _start (kamailio)
#0 0x00007f8df3c54c4a in get_event (ev_flag=1) at event_list.c:128
event = 0x7f8dfb007073
#1 0x00007f8df3c4e450 in send_publish (publ=0x7f8e053b8fd8) at send_publish.c:510
met = {s = 0x7f8df3ca0c62 "PUBLISH", len = 7}
str_hdr = 0x0
presentity = 0x0
body = 0x0
tuple_id = 0x0
cb_param = 0x0
hash_code = 0
etag = {s = 0x0, len = 0}
ver = 0
result = 500171648
ret_code = 0
ev = 0x0
uac_r = {method = 0x7f8dfe86ed88, headers = 0x7f8e05369010, body = 0x7ffd1dd002a0, ssock = 0x7f8df84a5d4f <pkg_proc_update_stats+115>, dialog = 0x7f8dffe6a138, cb_flags = 0, cb = 0x800000 <yystos+2976>,
cbp = 0x524c18 <get_is_fparam+2277>, callid = 0x208250}
res = 0x0
dbpres = {id = {s = 0x4 <error: Cannot access memory at address 0x4>, len = 0}, pres_uri = 0x7f8dfba03520, event = 15, expires = 0, desired_expires = 4, flag = 0, db_flag = 0, cb_param = 0x0, next = 0x0, ua_flag = 0,
outbound_proxy = 0x7ffd1dd00630, etag = {s = 0x1 <error: Cannot access memory at address 0x1>, len = 0}, tuple_id = {s = 0x0, len = 7817596}, body = 0x2, content_type = {s = 0x0, len = 0}, watcher_uri = 0xffffffffffffffff,
call_id = {s = 0x59f2890c <error: Cannot access memory at address 0x59f2890c>, len = 500172592}, to_tag = {s = 0x0, len = 0}, from_tag = {s = 0x1 <error: Cannot access memory at address 0x1>, len = 96725184}, cseq = 4,
version = 0, extra_headers = 0x7f8e05c3e8c0 <__libc_wait+32>, record_route = {s = 0x0, len = 0}, remote_contact = {s = 0x4 <error: Cannot access memory at address 0x4>, len = 0}, contact = {
s = 0x7f8dffe6a14a "Yealink SIP-T48G 35.81.0.25", len = 6659449}}
pres_uri = {s = 0x0, len = 0}
watcher_uri = {s = 0x0, len = 0}
extra_headers = {s = 0x0, len = 0}
ret = -1
__func__ = "send_publish"
#2 0x00007f8df3a3c189 in ul_publish (c=0x7f8dff996470, type=8, param=0x0) at ul_publish.c:324
body = 0x0
uri = {s = 0x7f8e054e5d68 "sip:user@example.com", len = 25}
at = 0x7f8dfe937d78 "@example.com.0"
publ = 0x7f8e053b8fd8
size = 192
content_type = {s = 0x7f8df3a4007c "application/pidf+xml", len = 20}
error = 3097352
__func__ = "ul_publish"
#3 0x00007f8df71feda0 in run_ul_callbacks (type=8, c=0x7f8dff996470) at ul_callback.h:85
cbp = 0x7f8dfba02d50
__func__ = "run_ul_callbacks"
#4 0x00007f8df7201136 in wb_timer (_r=0x7f8dff74f340) at urecord.c:382
ptr = 0x7f8dff996470
t = 0x208150
old_state = (unknown: 5393688)
op = 0
res = 0
__func__ = "wb_timer"
#5 0x00007f8df720233a in timer_urecord (_r=0x7f8dff74f340) at urecord.c:461
No locals.
#6 0x00007f8df71fa644 in mem_timer_udomain (_d=0x7f8dfbad5088, istart=0, istep=1) at udomain.c:1015
ptr = 0x7f8dff74f340
t = 0x7f8df6919048
i = 20
#7 0x00007f8df7225ae9 in synchronize_all_udomains (istart=0, istep=1) at dlist.c:761
res = 0
ptr = 0x7f8dfbacd920
#8 0x00007f8df7207d18 in destroy () at usrloc_mod.c:442
__func__ = "destroy"
#9 0x000000000051d55e in destroy_modules () at core/sr_module.c:811
t = 0x7f8e053d38c0
foo = 0x7f8e053d33b0
__func__ = "destroy_modules"
#10 0x0000000000418269 in cleanup (show_status=1) at main.c:525
memlog = 0
__func__ = "cleanup"
#11 0x00000000004199cc in shutdown_children (sig=15, show_status=1) at main.c:667
__func__ = "shutdown_children"
#12 0x000000000041a3f7 in handle_sigs () at main.c:698
chld = 4292094
chld_status = 5363279
any_chld_stopped = 0
memlog = -1
__func__ = "handle_sigs"
#13 0x0000000000424062 in main_loop () at main.c:1756
i = 2
pid = 6639
si = 0x0
si_desc = "udp receiver child=1 sock=[2603:300A:134:50E0:0:0:0:3]:5060\000\000\000\000\000\220\b\320\035\375\177\000\000hBc\005\216\177\000\000\020\t\320\035\375\177\000\000\252\360\017\005\216\177\000\000ȉc\005\216\177\000\000\000\000\000\000\001\000\000\000HnN\005\216\177\000\000(9\255\373\215\177\000"
nrprocs = 2
woneinit = 1
__func__ = "main_loop"
#14 0x0000000000429ca3 in main (argc=6, argv=0x7ffd1dd00bc8) at main.c:2643
cfg_stream = 0x1ce0010
c = -1
r = 0
tmp = 0x7ffd1dd01f06 ""
tmp_len = 0
port = 0
proto = 0
options = 0x72e440 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
ret = -1
seed = 2969426471
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 2
n_lst = 0x7f8e065858d0
p = 0x7ffd1dd00a20 "\377\377\377\377"
st = {st_dev = 22, st_ino = 3045, st_nlink = 2, st_mode = 16872, st_uid = 986, st_gid = 983, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1508981501, tv_nsec = 204171040},
st_mtim = {tv_sec = 1509020740, tv_nsec = 222461911}, st_ctim = {tv_sec = 1509020740, tv_nsec = 222461911}, __glibc_reserved = {0, 0, 0}}
__func__ = "main"
info locals
cfg_stream = 0x1ce0010
c = -1
r = 0
tmp = 0x7ffd1dd01f06 ""
tmp_len = 0
port = 0
proto = 0
options = 0x72e440 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
ret = -1
seed = 2969426471
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 2
n_lst = 0x7f8e065858d0
p = 0x7ffd1dd00a20 "\377\377\377\377"
st = {st_dev = 22, st_ino = 3045, st_nlink = 2, st_mode = 16872, st_uid = 986, st_gid = 983, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1508981501, tv_nsec = 204171040}, st_mtim = {
tv_sec = 1509020740, tv_nsec = 222461911}, st_ctim = {tv_sec = 1509020740, tv_nsec = 222461911}, __glibc_reserved = {0, 0, 0}}
__func__ = "main"
(gdb) list
123 pua_event_t* event;
124 event= pua_evlist->next;
125
126 while(event)
127 {
128 if(event->ev_flag== ev_flag)
129 {
130 return event;
131 }
132 event= event->next;
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
systemd[1]: Stopping Kamailio SIP Server...
kamailio[6620]: WARNING: db_postgres [km_dbase.c:242]: db_postgres_submit_query(): postgres query command failed, connection status 1, error [SSL connection has been closed unexpectedly]
systemd[1]: kamailio.service: Main process exited, code=dumped, status=11/SEGV
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
The version is the 5.0.4 release, though it happened in previous releases as well.
* **Kamailio Version** -
```
version: kamailio 5.0.4 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 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: unknown
compiled on 18:37:03 Oct 25 2017 with gcc 7.2.1
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
Fedora 26 x86_64
Linux chicago.example.com 4.13.9-200.fc26.x86_64 #1 SMP Mon Oct 23 13:52:45 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
```
--
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/1287
Hello,
I am planning to create the got branch 5.1 (to be used for v5.1.x
series) by end of next week (likely on Friday, Nov 10, 2017). After
that, the master will be open for new features and fixes will need to be
backported to 5.1.
Should anyone want a different schedule, reply to the mailing lists and
propose your plans.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - www.asipto.com
Kamailio World Conference - www.kamailioworld.com