Asterisk func iaxpeer

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)})


See also


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)})


See also


Created by: murf, Last modification: Fri 05 of Nov, 2010 (09:22 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+