[asterisk-bugs] [JIRA] (ASTERISK-25018) pjsip show endpoints crashes asterisk when qualified aors present

Ivan Poddubny (JIRA) noreply at issues.asterisk.org
Mon Apr 27 00:13:33 CDT 2015


Ivan Poddubny created ASTERISK-25018:
----------------------------------------

             Summary: pjsip show endpoints crashes asterisk when qualified aors present
                 Key: ASTERISK-25018
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25018
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_pjsip, pjproject/pjsip
    Affects Versions: 13.4.0
         Environment: Asterisk built from master branch (835cf047) on Debian 7 x86_64
            Reporter: Ivan Poddubny


Running "pjsip show endpoints" or "pjsip show endpoint XXX" soon after starting Asterisk, where XXX is an endpoint which has 'qualify_frequency' set on aor, leads to segfault in res/res_pjsip/location.c:754 (in function cli_contact_print_body).

The following code is trying to access status->status while status is NULL.
{quote}
               ast_sip_get_contact_short_status_label(status->status),
               (status->status != UNKNOWN ? ((long long) status->rtt) / 1000.0 : NAN));
{quote}

This looks like a regression introduced by https://gerrit.asterisk.org/#/c/147/
Contact status must always exist in order to be printed.



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



More information about the asterisk-bugs mailing list