From b730f9435c9899b4b9886f331c1c9bc65391e848 Mon Sep 17 00:00:00 2001 From: Anthony Minessale II Date: Wed, 12 Jan 2005 18:14:47 +0000 Subject: [PATCH] fix bug 3329 (monitor flags) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4770 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_dial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_dial.c b/apps/app_dial.c index 20ca543449..0cbc302b68 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -790,8 +790,8 @@ static int dial_exec(struct ast_channel *chan, void *data) ast_set2_flag(tmp, strchr(transfer, 'h'), DIAL_ALLOWDISCONNECT_IN); ast_set2_flag(&peerflags, strchr(transfer, 'h'), DIAL_ALLOWDISCONNECT_IN); ast_set2_flag(tmp, strchr(transfer, 'f'), DIAL_FORCECALLERID); - ast_set2_flag(tmp, strchr(transfer, 'w'), DIAL_MONITOR_IN); - ast_set2_flag(tmp, strchr(transfer, 'W'), DIAL_MONITOR_OUT); + ast_set2_flag(&peerflags, strchr(transfer, 'w'), DIAL_MONITOR_IN); + ast_set2_flag(&peerflags, strchr(transfer, 'W'), DIAL_MONITOR_OUT); ast_set2_flag(tmp, strchr(transfer, 'g'), DIAL_GO_ON); } strncpy(numsubst, number, sizeof(numsubst)-1);