From ee4a248e6b3638257471ab7065ec7ec042d735e6 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Tue, 29 Jun 2004 14:44:29 +0000
Subject: [PATCH] Make history configurable

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_sip.c     | 2 ++
 configs/sip.conf.sample | 1 +
 2 files changed, 3 insertions(+)

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 8311161ec0..cdf866f6fb 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8167,6 +8167,8 @@ static int reload_config(void)
 			}
 		} else if (!strcasecmp(v->name, "register")) {
 			sip_register(v->value, v->lineno);
+		} else if (!strcasecmp(v->name, "recordhistory")) {
+			recordhistory = ast_true(v->value);
 		} else if (!strcasecmp(v->name, "tos")) {
 			if (sscanf(v->value, "%i", &format) == 1)
 				tos = format & 0xff;
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample
index 69f11cf7f3..53e22125db 100755
--- a/configs/sip.conf.sample
+++ b/configs/sip.conf.sample
@@ -22,6 +22,7 @@
 
 [general]
 context=default			; Default context for incoming calls
+;recordhistory=yes		; Record SIP history by default (see sip history / sip no history)
 ;realm=mydomain.tld		; Realm for digest authentication
 				; defaults to "asterisk"
 				; Realms MUST be globally unique according to RFC 3261
-- 
GitLab