diff options
author | zuul <zuul@gerrit.asterisk.org> | 2017-02-13 10:05:02 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-02-13 10:05:02 -0600 |
commit | 6958241b3f62b90ef68d5a57452e0d73514e3fb8 (patch) | |
tree | 234d500f629fb152b1d57166b868b36322f31504 /channels | |
parent | c38cd504ade1f8d369b35f5d5e79471c5470613c (diff) | |
parent | 2817f87d27f1056ba970ed74d8798b9214aa214f (diff) |
Merge "core: Cleanup some channel snapshot staging anomalies." into 13
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 83f72b9ad..15a3b2584 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8143,7 +8143,9 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit if (!fmt) { ast_log(LOG_WARNING, "No compatible formats could be found for %s\n", ast_channel_name(tmp)); ao2_ref(caps, -1); - tmp = ast_channel_unref(tmp); + ast_channel_stage_snapshot_done(tmp); + ast_channel_unlock(tmp); + ast_hangup(tmp); return NULL; } } |