login | register
Thu 04 of Dec, 2008 [00:29 UTC]

voip-info.org

Discuss [1] History

Asterisk func iaxpeer

Created by: murf,Last modification on Sat 14 of Jan, 2006 [06:22 UTC]

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



Comments

Comments Filter
222

333Status numbers

by justhamade, Friday 15 of September, 2006 [23:20:59 UTC]
Any one know the possible status that can be returned? Been looking everywhere and cant find it.

If I find it I will add it to the wiki