[asterisk-bugs] [JIRA] (ASTERISK-26664) pjsip: pj_thread_register() assertion

Eddie Johnson (JIRA) noreply at issues.asterisk.org
Thu Jan 25 16:56:50 CST 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=241814#comment-241814 ] 

Eddie Johnson commented on ASTERISK-26664:
------------------------------------------

I noticed this is pointing towards a Debian distro.  I am presently having the same issue with Centos 7 Server x86_64

1000/sip:1000 at x.x.x.x:23311;transport=UDP;rinstance=5fc6b528c56c7b23 has been created == Endpoint 1000 is now Reachable – Contact 1000/sip:1000 at x.x.x.x:23311;transport=UDP;rinstance=5fc6b528c56c7b23 is now Unknown. RTT: 0.000 msec – Added contact ‘sip:1001 at x.x.x.x:46849;transport=UDP;rinstance=7759dbbfef6182fb’ to AOR ‘1001’ with expiration of 60 seconds == Contact 1001/sip:1001 at x.x.x.x:46849;transport=UDP;rinstance=7759dbbfef6182fb has been created == Endpoint 1001 is now Reachable – Contact 1001/sip:1001 at x.x.x.x:46849;transport=UDP;rinstance=7759dbbfef6182fb is now Unknown. RTT: 0.000 msec == Setting global variable ‘SIPDOMAIN’ to ‘x.x.x.x’asterisk (external IP) : …/src/pj/os_core_unix.c:692: 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


> pjsip: pj_thread_register() assertion
> -------------------------------------
>
>                 Key: ASTERISK-26664
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26664
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 13.13.0, 13.13.1
>         Environment: Linux, Debian unstable
>            Reporter: Bernhard Schmidt
>         Attachments: paste_903006.txt
>
>
> When a system pjproject library is used with assertions enabled (NDEBUG=0) answering an incoming call leads to the following assertion:
> {noformat}
> asterisk: ../src/pj/os_core_unix.c:692: 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
> {noformat}
> This is caused by this commit: https://github.com/asterisk/asterisk/commit/2b9ad3a5f736b6a4081e172f2a6d35dcd20b51e4
> A production build / embedded pjproject build does not fail since assertions are disabled there. But this still points to a programming error in chan_pjsip (as the assertion says, calling pjlib functions from an unregistered thread).



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



More information about the asterisk-bugs mailing list