From 698d5e8f2fe5e7de3da89ea679c4828a82c424aa Mon Sep 17 00:00:00 2001 From: BJ Weschke Date: Tue, 21 Oct 2008 11:03:27 +0000 Subject: [PATCH] Merged revisions 151327 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r151327 | bweschke | 2008-10-21 07:02:08 -0400 (Tue, 21 Oct 2008) | 7 lines Fix configuration parsing so type=friend still identifies "friend" as a peer even though it is now a legacy configuration verb. (closes issue #13705) reported by: blitzrage patched by: bweschke ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@151328 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 4e65bb770f..2886758c56 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -21987,7 +21987,7 @@ static int reload_config(enum channelreloadreason reason) if (!strcasecmp(utype, "user")) { is_peer = 1; } else if (!strcasecmp(utype, "friend")) { - is_peer = 1; + is_peer = 2; } else if (!strcasecmp(utype, "peer")) is_peer = 2; else {