projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a105455
)
Congestion with Hangup sends expected RELEASE code (but #1681)
author
Mark Spencer
<markster@digium.com>
Thu, 20 May 2004 07:57:19 +0000
(07:57 +0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 20 May 2004 07:57:19 +0000
(07:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3026
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_zap.c
patch
|
blob
|
history
diff --git
a/channels/chan_zap.c
b/channels/chan_zap.c
index
6fff885
..
6c94ecb
100755
(executable)
--- a/
channels/chan_zap.c
+++ b/
channels/chan_zap.c
@@
-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: