SIPPEER(Peername
[,Feld
])
ip
mailbox
context
expire
dynamic
dynamic=yes
gesetzt ist
(yes
|no
).callerid_name
callerid_num
codecs
status
qualify=yes
gesetzt
ist)regexten
regexten
)limit
curcalls
language
useragent
codec[x
]
x
(0-basiert) in der
Reihenfolge der Präferenzaccountcode
; die IP-Adresse des Peers 2001: exten => 123,1,Set(sip_ip=${SIPPEER(2001,ip)}) ; der bevorzugte Codec des Peers: exten => 123,n,Set(sip_ip=${SIPPEER(2001,codec[0])})
————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about function 'SIPPEER' =-
[Syntax]
SIPPEER(<peername>[|item])
[Synopsis]
Gets SIP peer information
[Description]
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 amount of calls
Only available if call-limit is set
- language Default language for peer
- accountcode Account code for this peer
- useragent Current user agent id for peer
- codec[x] Preferred codec index number 'x' (beginning with zero).
--- in Asterisk 1.2
+++ in Asterisk 1.4
@@ -1,7 +1,7 @@
-= Info about function 'SIPPEER' =-
[Syntax]
- SIPPEER(<peername>[:item])
+ SIPPEER(<peername>[|item])
[Synopsis]
Gets SIP peer information
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -1,7 +1,7 @@
-= Info about function 'SIPPEER' =-
[Syntax]
- SIPPEER(<peername>[|item])
+ SIPPEER(<peername>[,item])
[Synopsis]
Gets SIP peer information
@@ -9,19 +9,24 @@
[Description]
Valid items are:
- ip (default) The IP address.
+ - port The port number
- 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.
+ - callgroup The configured Callgroup.
+ - pickupgroup The configured Pickupgroup.
- codecs The configured codecs.
- status Status (if qualify=yes).
- regexten Registration extension
- limit Call limit (call-limit)
+ - busylevel Configured call level for signalling busy
- curcalls Current amount of calls
Only available if call-limit is set
- language Default language for peer
- accountcode Account code for this peer
- useragent Current user agent id for peer
+ - chanvar[name] A channel variable configured with setvar for this peer.
- codec[x] Preferred codec index number 'x' (beginning with zero).
IAXPEER()
“