[asterisk-bugs] [JIRA] (ASTERISK-26829) res_pjsip: Assertion when applying transport configuration via push

Joshua Colp (JIRA) noreply at issues.asterisk.org
Tue Feb 28 18:34:10 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-26829:
-----------------------------------

    Status: Waiting for Feedback  (was: Waiting for Feedback)

> res_pjsip: Assertion when applying transport configuration via push
> -------------------------------------------------------------------
>
>                 Key: ASTERISK-26829
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26829
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 14.3.0
>         Environment: CentOS 7.3, virtualized, x86_64
>            Reporter: Leif Madsen
>            Assignee: Joshua Colp
>         Attachments: backtrace.txt, push.py
>
>
> Working on building out a dynamic configuration controller via ARI and sorcery. Configuration for PJSIP is being pushed from a script living on localhost.
> When running the script, I get this message from the console:
> {code}
> *CLI> asterisk: ../src/pj/os_core_unix.c:674: pj_thread_this: Assertion `!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."' failed.
> Aborted (core dumped)
> {code}
> Script attached to issue to reproduce. Core dump attached to issue.
> My script returns the following Python traceback (last line possibly useful):
> {code}
> # ./push.py 
> Traceback (most recent call last):
>   File "./push.py", line 46, in <module>
>     transport_resp = resp_push(transport_url, transport_config)
>   File "./push.py", line 24, in resp_push
>     resp = requests.put(url, auth=('asterisk', 'asterisk'), json=config)
>   File "/usr/lib/python2.7/site-packages/requests/api.py", line 121, in put
>     return request('put', url, data=data, **kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/api.py", line 50, in request
>     response = session.request(method=method, url=url, **kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request
>     resp = self.send(prep, **send_kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
>     r = adapter.send(request, **kwargs)
>   File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 415, in send
>     raise ConnectionError(err, request=request)
> requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list