Yet another conversion of '|' to ','
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 23 Jul 2008 17:20:43 +0000 (17:20 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 23 Jul 2008 17:20:43 +0000 (17:20 +0000)
(closes issue #13137)
 Reported by: eliel
 Patches:
       chan_iax2trunk-IAXPEER.patch uploaded by eliel (license 64)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132981 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 294e10b..2a1b132 100644 (file)
@@ -11666,9 +11666,7 @@ static int function_iaxpeer(struct ast_channel *chan, const char *cmd, char *dat
                return 0;
        }
 
-       if ((colname = strchr(peername, ':')))  /*! \todo : will be removed after the 1.4 relese */
-               *colname++ = '\0';
-       else if ((colname = strchr(peername, '|')))
+       if ((colname = strchr(peername, ',')))
                *colname++ = '\0';
        else
                colname = "ip";
@@ -11718,7 +11716,7 @@ static int function_iaxpeer(struct ast_channel *chan, const char *cmd, char *dat
 struct ast_custom_function iaxpeer_function = {
        .name = "IAXPEER",
        .synopsis = "Gets IAX peer information",
-       .syntax = "IAXPEER(<peername|CURRENTCHANNEL>[|item])",
+       .syntax = "IAXPEER(<peername|CURRENTCHANNEL>[,item])",
        .read = function_iaxpeer,
        .desc = "If peername specified, valid items are:\n"
        "- ip (default)          The IP address.\n"