THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - davy van de moere (davyvdm)
Attached to Project - sip-router
Summary - Coredump on using jsonrpc_request
Task Type - Bug Report
Category - Module
Status - Unconfirmed
Assigned To -
Operating System - Linux
Severity - Medium
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - I tried this with the branch 4.1 and master. Both behave identical.
So from the kamailio-basic.cfg example, I just added this line around line 350 (just above
route(SIPOUT)):
jsonrpc_request("bar.sendsms",
"{'ru':'$rU','rb':'$rb'}",
"JSONRESPONSE", "JSONERROR", "$var(result)");
Doing a ngrep on the netstrings I have:
interface: venet0 (127.0.0.2/255.255.255.255)
filter: (ip or ip6) and ( port 7080 )
#
T 10.66.8.42:44995 -> 192.168.60.45:7080 [AP]
94:{ "id": 2, "jsonrpc": "2.0", "method":
"bar.sendsms", "params": { "ru": "",
"rb": "" } },
##
T 192.168.60.45:7080 -> 10.66.8.42:44995 [AP]
43:{"jsonrpc": "2.0", "result": "12",
"id": 2},
####^Cexit
7 received, 0 dropped
I do get some results from the JSONRESPONSE route.
But when launching a call, or when sending just a register packet, kamailio gives up
with:
Feb 26 06:29:11 SBC01 kamailio[18043]: WARNING: tm [t_lookup.c:1537]: t_unref(): WARNING:
script writer didn't release transaction
Feb 26 06:29:12 SBC01 kamailio[18033]: : [mem/q_malloc.c:468]: qm_free(): BUG: qm_free:
freeing already freed pointer (0xb4c01624), called from tm: h_table.c: free_cell(157),
first free tm: h_table.c: free_cell(157) - aborting
Feb 26 06:29:12 SBC01 kamailio[18023]: ALERT: [main.c:775]: handle_sigs(): child process
18033 exited by a signal 6
Feb 26 06:29:12 SBC01 kamailio[18023]: ALERT: [main.c:778]: handle_sigs(): core was
generated
Feb 26 06:29:12 SBC01 kamailio[18023]: INFO: [main.c:790]: handle_sigs(): INFO:
terminating due to SIGCHLD
Feb 26 06:29:12 SBC01 kamailio[18041]: INFO: [main.c:841]: sig_usr(): INFO: signal 15
received
Feb 26 06:29:12 SBC01 kamailio[18047]: INFO: [main.c:841]: sig_usr(): INFO: signal 15
received
Feb 26 06:29:12 SBC01 kamailio[18043]: INFO: [main.c:841]: sig_usr(): INFO: signal 15
received
Feb 26 06:29:12 SBC01 kamailio[18048]: INFO: [main.c:841]: sig_usr(): INFO: signal 15
received
Feb 26 06:29:12 SBC01 kamailio[18023]: : [mem/q_malloc.c:468]: qm_free(): BUG: qm_free:
freeing already freed pointer (0xb4c01624), called from tm: h_table.c: free_cell(157),
first free tm: h_table.c: free_cell(157) - aborting
Using the jsonrpc_notification on the other hand works like a charm.
Coredump in attach.
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=404
You are receiving this message because you have requested it from the Flyspray bugtracking
system. If you did not expect this message or don't want to receive mails in future,
you can change your notification settings at the URL shown above.