[sr-dev] [kamailio/kamailio] Kamailio 5 coredump 11 (SEGV) upcon receiving MESSAGE via jsonrpcs (#1030)

Anthony Messina notifications at github.com
Sat Mar 11 03:12:57 CET 2017


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/kamailio/files/835428/kamailio-coredump-jsonrpcs-message.txt)

```
"""
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170310/dfc48917/attachment.html>


More information about the sr-dev mailing list