mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 01:36:48 +00:00
Congestion with Hangup sends expected RELEASE code (but #1681)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -594,6 +594,8 @@ static int hangup_cause2pri(int cause)
|
||||
return PRI_CAUSE_USER_BUSY;
|
||||
case AST_CAUSE_UNALLOCATED:
|
||||
return PRI_CAUSE_UNALLOCATED;
|
||||
case AST_CAUSE_CONGESTION:
|
||||
return PRI_CAUSE_NORMAL_CIRCUIT_CONGESTION;
|
||||
case AST_CAUSE_NORMAL:
|
||||
default:
|
||||
return PRI_CAUSE_NORMAL_CLEARING;
|
||||
@@ -3989,6 +3991,7 @@ static int zt_indicate(struct ast_channel *chan, int condition)
|
||||
res = 0;
|
||||
break;
|
||||
case AST_CONTROL_CONGESTION:
|
||||
chan->hangupcause = AST_CAUSE_CONGESTION;
|
||||
res = tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_CONGESTION);
|
||||
break;
|
||||
case AST_CONTROL_RADIO_KEY:
|
||||
|
Reference in New Issue
Block a user