aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authoranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-12 18:14:47 +0000
committeranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-12 18:14:47 +0000
commite234ddbf1fd9d54f6280810e6cf684585b8fe0e2 (patch)
tree4e7797aa1538906a206d20041ded401a6bbe2fd6 /apps/app_dial.c
parenta3e0f97d777ceefdbdff29bb9dd511a43c62eecd (diff)
fix bug 3329 (monitor flags)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4770 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-xapps/app_dial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 20ca54344..0cbc302b6 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);