diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-09-06 07:19:00 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-09-06 07:19:00 -0500 |
commit | 64c27976ca3ad77d61319bf17ee0d52853b09b62 (patch) | |
tree | 3465f127c4e6e4e8cd55d5a7655a2b36b194c433 /res | |
parent | a9de04ce7db6a53522d9a0a33c178e1dc4211d07 (diff) | |
parent | 9cc46203767172eaa713212cfe2fce5cca106577 (diff) |
Merge "res_pjsip_t38: Make t38_reinvite_response_cb tolerant of NULL channel" into 15
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip_t38.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip_t38.c b/res/res_pjsip_t38.c index 27eff424a..ce914a1e8 100644 --- a/res/res_pjsip_t38.c +++ b/res/res_pjsip_t38.c @@ -302,9 +302,9 @@ static int t38_reinvite_response_cb(struct ast_sip_session *session, pjsip_rx_da } state = t38_state_get_or_alloc(session); - if (!state) { + if (!session->channel || !state) { ast_log(LOG_WARNING, "Received response to T.38 re-invite on '%s' but state unavailable\n", - ast_channel_name(session->channel)); + session->channel ? ast_channel_name(session->channel) : "unknown channel"); return 0; } |