login | register
Tue 02 of Dec, 2008 [14:48 UTC]

voip-info.org

Discuss [1] History

Asterisk func sippeer

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

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



Comments

Comments Filter
222

333Setting call-limit?

by MrHall, Tuesday 03 of October, 2006 [00:30:26 UTC]
I would like to create an optional call-waiting - the most elegant way I can see of doing this would be to set call-limit, however I don't think you can do this from within the dial-plan.
Is there any plan to have Set(SIPPEER(limit)=2) or similar made available? Is there another way of doing this that I am unaware of?