From 771ce9e1e79f19e4bd436521116dada0dd8083ba Mon Sep 17 00:00:00 2001
From: Sean Bright <sean@malleable.com>
Date: Fri, 10 May 2013 11:46:00 +0000
Subject: [PATCH] Fix copy/paste error in one-touch-recording implementation.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@388253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_sip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 51022b535a..b4399c3803 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -21396,7 +21396,7 @@ static void handle_request_info(struct sip_pvt *p, struct sip_request *req)
 					feat = ast_find_call_feature(p->relatedpeer->record_on_feature);
 				}
 			} else if (!strcasecmp(c, "off")) {
-				if (ast_strlen_zero(p->relatedpeer->record_on_feature)) {
+				if (ast_strlen_zero(p->relatedpeer->record_off_feature)) {
 					suppress_warning = 1;
 				} else {
 					feat = ast_find_call_feature(p->relatedpeer->record_off_feature);
-- 
GitLab