diff options
author | Jonathan Rose <jrose@digium.com> | 2013-08-09 17:28:15 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-08-09 17:28:15 +0000 |
commit | b3813c8bc5cd14721ed3248aa37bbf29a9b2aba5 (patch) | |
tree | 0ff6c92e11de1213c15f00acc0e46c98c055d578 /channels | |
parent | 6fe21ef48eede571957863484a203124a6118d9f (diff) |
pbx: Make originate threads indicate dial status when synchronous
This makes it so that we can detect failures to originate as with
earlier versions of Asterisk, which restores the Asterisk 11 behavior
for the originate manager action. This was causing the ACL tests for
SIP and IAX2 to fail since those tests expected originate failures
when ACLs would cause rejections. Also, this patch fixes crashes in
chan_sip when ACLs rejected peers during registration verification.
(closes issue ASTERISK-22212)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2753/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c02f022ef..51eaef2f8 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -17345,7 +17345,7 @@ static enum check_auth_result register_verify(struct sip_pvt *p, struct ast_sock break; } - if (peer->endpoint) { + if (peer && peer->endpoint) { ast_endpoint_blob_publish(peer->endpoint, ast_endpoint_state_type(), blob); } } |