Search:

Asterisk func sippeer

Synopsis:

 Gets SIP peer information
 Doesn't work with RealTime.

Description:

 SIPPEER(<peername>[:item])
 
Valid items are:
  • ip (default): The IP address.
  • 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.
  • status: Status (if qualify=yes).
  • regexten: Registration extension
  • limit: Call limit (call-limit)
  • curcalls: Current number of calls. Only available if call-limit is set
  • language: Default language for peer
  • useragent: Current user agent id for peer
  • codec[x]: Preferred codec index number 'x' (beginning with zero).
  • accountcode: value accountcode field of CDR records for calls coming from this peer



Notes


  • *CLI> show function SIPPEER

Return value

Returns the resulting string.

Example

exten => s,1,Set(foo=${SIPPEER(thatguy:codecs)})


See also


Created by: murf,Last modification on Tue 20 of Mar, 2007 [21:10 UTC] by sergee


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

 
Sponsored by:




Search: