[asterisk-commits] murf: branch murf/bug7836-1.2 r48450 -
/team/murf/bug7836-1.2/channels/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Dec 13 07:27:08 MST 2006
Author: murf
Date: Wed Dec 13 08:27:08 2006
New Revision: 48450
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48450
Log:
committing the patch submitted by the user for posterity
Modified:
team/murf/bug7836-1.2/channels/chan_zap.c
Modified: team/murf/bug7836-1.2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/murf/bug7836-1.2/channels/chan_zap.c?view=diff&rev=48450&r1=48449&r2=48450
==============================================================================
--- team/murf/bug7836-1.2/channels/chan_zap.c (original)
+++ team/murf/bug7836-1.2/channels/chan_zap.c Wed Dec 13 08:27:08 2006
@@ -3339,7 +3339,7 @@
stop if now if appropriate */
if (ast_bridged_channel(p->subs[SUB_THREEWAY].owner))
ast_moh_stop(ast_bridged_channel(p->subs[SUB_THREEWAY].owner));
- if (p->subs[SUB_THREEWAY].owner->_state == AST_STATE_RINGING) {
+ if (p->subs[SUB_REAL].owner->_state == AST_STATE_RINGING) {
ast_indicate(ast_bridged_channel(p->subs[SUB_REAL].owner), AST_CONTROL_RINGING);
}
if (p->subs[SUB_REAL].owner->cdr) {
@@ -3363,7 +3363,7 @@
ast_mutex_unlock(&p->subs[SUB_THREEWAY].owner->lock);
unalloc_sub(p, SUB_THREEWAY);
} else if (ast_bridged_channel(p->subs[SUB_THREEWAY].owner)) {
- if (p->subs[SUB_REAL].owner->_state == AST_STATE_RINGING) {
+ if (p->subs[SUB_THREEWAY].owner->_state == AST_STATE_RINGING) {
ast_indicate(ast_bridged_channel(p->subs[SUB_THREEWAY].owner), AST_CONTROL_RINGING);
}
ast_moh_stop(ast_bridged_channel(p->subs[SUB_THREEWAY].owner));
@@ -4853,11 +4853,10 @@
}
#endif
res = tone_zone_play_tone(p->subs[index].zfd, ZT_TONE_RINGTONE);
- if (chan->_state != AST_STATE_UP) {
- if ((chan->_state != AST_STATE_RING) ||
- ((p->sig != SIG_FXSKS) &&
+ if (chan->_state != AST_STATE_UP && chan->_state != AST_STATE_RING) {
+ if ((p->sig != SIG_FXSKS) &&
(p->sig != SIG_FXSLS) &&
- (p->sig != SIG_FXSGS)))
+ (p->sig != SIG_FXSGS))
ast_setstate(chan, AST_STATE_RINGING);
}
break;
More information about the asterisk-commits
mailing list