summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-07-23 17:20:43 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-07-23 17:20:43 +0000
commit3fe5a70e0744d9e87e243e28ff5a1ff67854b6f8 (patch)
tree300390c355f584351583dae245cafd83ec27139c /channels
parent70a0b7fcd19303c7756501cf4e5dee63cccf4b6d (diff)
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
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 294e10b4d..2a1b132f7 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -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"