IAXPEER(Peer-Name[:Feld])
Peer-Name kann
auch CURRENTCHANNEL für den aktuellen Kanal sein.
Feld ist einer der folgenden Parameter:ipstatusqualify=yes gesetzt
ist)mailboxcontextexpiredynamicdynamic)
ist (yes|no).callerid_namecallerid_numcodecscodec[x]x (0-basiert) in der
Reihenfolge der Präferenz; die IP-Adresse von peer1 abfragen:
exten => 123,1,Set(foo=${IAXPEER(peer1:ip)})————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about function 'IAXPEER' =-
[Syntax]
IAXPEER(<peername|CURRENTCHANNEL>[|item])
[Synopsis]
Gets IAX peer information
[Description]
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--- in Asterisk 1.2
+++ in Asterisk 1.4
@@ -1,7 +1,7 @@
-= Info about function 'IAXPEER' =-
[Syntax]
- IAXPEER(<peername|CURRENTCHANNEL>[:item])
+ IAXPEER(<peername|CURRENTCHANNEL>[|item])
[Synopsis]
Gets IAX peer information--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -1,7 +1,7 @@
-= Info about function 'IAXPEER' =-
[Syntax]
- IAXPEER(<peername|CURRENTCHANNEL>[|item])
+ IAXPEER(<peername|CURRENTCHANNEL>[,item])
[Synopsis]
Gets IAX peer informationSIPPEER()“