diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-29 14:44:29 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-29 14:44:29 +0000 |
commit | 71f15f1b0be635fa086dcbc9bd85f59c328ff2ed (patch) | |
tree | 60ff90530ba2210afe7b8c477e94ec25c436dbf8 | |
parent | db03d7ba425b62622f606287822b1fcae4f59cb6 (diff) |
Make history configurable
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3351 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_sip.c | 2 | ||||
-rwxr-xr-x | configs/sip.conf.sample | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8311161ec..cdf866f6f 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 69f11cf7f..53e22125d 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 |