Using python-requests to generate a MESSAGE injected via jsonrpcs, Kamailio (built from
the 5.0 branch @ 49bafac) dumps core. This did not occur in 4.4.5. See attached gdb
output.
[
kamailio-coredump-jsonrpcs-message.txt](https://github.com/kamailio/kamaili…
```
"""
Generate a SIP MESSAGE via Kamailio's jsonrpcs module
"""
headers = ("From: <{0}>\r\n"
"To: <{1}>\r\n"
"Max-Forwards: 1\r\n"
"X-Kamailio-Message: noreply\r\n"
"Content-Type: text/plain; "
"charset=utf-8\r\n").format(self.sender, self.recipient)
content = {
'id': 1,
'jsonrpc': '2.0',
'method': 'tm.t_uac_start',
'params': [
'MESSAGE',
self.recipient,
SIP_NEXTHOP,
'.',
headers,
self.body
]
}
#
http://docs.python-requests.org/en/latest/user/quickstart/
try:
r = requests.post(KAMAILIO_RPC_URL, allow_redirects=False,
json=content, timeout=5)
```
--
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/1030