SIPPEER(Peername
[,Feld
])
Gibt Informationen über einen SIP-Peer zurück. Gültige Felder sind:
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])})
Interner Hilfetext zu dieser Applikation in Asterisk 1.4: -= 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). Differenz zum internen Hilfetext in Asterisk 1.2: 5c5 < SIPPEER(<peername>[|item]) --- > SIPPEER(<peername>[:item]) |
Siehe auch.
„IAXPEER()
“