return 0;
}
- if ((colname = strchr(peername, ':')))
+ if ((colname = strchr(peername, ':'))) /*! \todo : will be removed after the 1.4 relese */
+ *colname++ = '\0';
+ else if ((colname = strchr(peername, '|')))
*colname++ = '\0';
else
colname = "ip";
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"
char *colname;
char iabuf[INET_ADDRSTRLEN];
- if ((colname = strchr(data, ':')))
+ if ((colname = strchr(data, ':'))) /*! \todo Will be deprecated after 1.4 */
+ *colname++ = '\0';
+ else if ((colname = strchr(data, '|')))
*colname++ = '\0';
else
colname = "ip";
struct ast_custom_function sippeer_function = {
.name = "SIPPEER",
.synopsis = "Gets SIP peer information",
- .syntax = "SIPPEER(<peername>[:item])",
+ .syntax = "SIPPEER(<peername>[|item])",
.read = function_sippeer,
.desc = "Valid items are:\n"
"- ip (default) The IP address.\n"