Synopsis:
Gets IAX peer information
Description:
IAXPEER(<peername|CURRENTCHANNEL>[:item])
If peername specified, valid items are:
- ip: (default) The IP address.
- status: The peer’s status (if qualify=yes)
- mailbox: The configured mailbox.
- context : The configured context.
- expire: The epoch time of the next expire.
- dynamic: Is it dynamic? (yes/no).
- callerid_name: The configured Caller ID name.
- callerid_num: The configured Caller ID number.
- codecs: The configured codecs.
- codec[x]: Preferred codec index number ‘x’ (beginning with zero).
If CURRENTCHANNEL specified, returns IP address of current channel
Notes
- *CLI> show function IAXPEER
Return value
Returns the resulting string.
Example
exten => s,1,Set(foo=${IAXPEER(zizzle:ip)})