Yet another conversion of '|' to ','

(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
1.6.1
Tilghman Lesher 18 years ago
parent 70a0b7fcd1
commit 3fe5a70e07

@ -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"

Loading…
Cancel
Save