diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 3851d8ead9..da590ee975 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -110,6 +110,70 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") or 0 on success. + + + Gets IAX peer information. + + + + + + If peername is specified to this value, return the IP address of the + endpoint of the current channel + + + + + If peername is specified, valid items are: + + + (default) The IP address. + + + The peer's status (if qualify=yes) + + + The configured mailbox. + + + The configured context. + + + The epoch time of the next expire. + + + Is it dynamic? (yes/no). + + + The configured Caller ID name. + + + The configured Caller ID number. + + + The configured codecs. + + + Preferred codec index number x (beginning + with 0) + + + + + + + SIPPEER + + + + + Sets or retrieves a remote variable. + + + + + + ***/ /* Define SCHED_MULTITHREADED to run the scheduler in a special @@ -8132,8 +8196,6 @@ static int acf_iaxvar_write(struct ast_channel *chan, const char *cmd, char *dat static struct ast_custom_function iaxvar_function = { .name = "IAXVAR", - .synopsis = "Sets or retrieves a remote variable", - .syntax = "IAXVAR()", .read = acf_iaxvar_read, .write = acf_iaxvar_write, }; @@ -11989,23 +12051,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([,item])", .read = function_iaxpeer, - .desc = "If peername specified, valid items are:\n" - "- ip (default) The IP address.\n" - "- status The peer's status (if qualify=yes)\n" - "- mailbox The configured mailbox.\n" - "- context The configured context.\n" - "- expire The epoch time of the next expire.\n" - "- dynamic Is it dynamic? (yes/no).\n" - "- callerid_name The configured Caller ID name.\n" - "- callerid_num The configured Caller ID number.\n" - "- codecs The configured codecs.\n" - "- codec[x] Preferred codec index number 'x' (beginning with zero).\n" - "\n" - "If CURRENTCHANNEL specified, returns IP address of current channel\n" - "\n" }; static int acf_channel_write(struct ast_channel *chan, const char *function, char *args, const char *value)