mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user