mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
ensure cause code supplied by IAX2 peer is passed up to caller properly (bug #4064)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6751,6 +6751,11 @@ retryowner:
|
||||
memset(&f, 0, sizeof(f));
|
||||
f.frametype = AST_FRAME_CONTROL;
|
||||
f.subclass = AST_CONTROL_CONGESTION;
|
||||
|
||||
/* Set hangup cause according to remote */
|
||||
if (ies.causecode && iaxs[fr.callno]->owner)
|
||||
iaxs[fr.callno]->owner->hangupcause = ies.causecode;
|
||||
|
||||
iax2_queue_frame(fr.callno, &f);
|
||||
if (ast_test_flag(iaxs[fr.callno], IAX_PROVISION)) {
|
||||
/* Send ack immediately, before we destroy */
|
||||
|
Reference in New Issue
Block a user