summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorBJ Weschke <bweschke@btwtech.com>2008-10-21 11:02:08 +0000
committerBJ Weschke <bweschke@btwtech.com>2008-10-21 11:02:08 +0000
commit5a6a59c84b715fdab6b84857c9ac07626ed8910e (patch)
tree30e44c7ad470c1ff8d243947ca15f8c76fa70931 /channels
parent9aefadd7c18457b8ac5d6d7d8c75e0b5264cbe4e (diff)
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/trunk@151327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index c221290e7..1349480e6 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -22723,7 +22723,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 {