forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.6 KiB
73 lines
1.6 KiB
2 years ago
|
phpAMI 1.0
|
||
|
|
||
|
iaxRegistry
|
||
|
Envia "ManagerAction_IAXregistry"
|
||
|
|
||
|
Ver los registros iax
|
||
|
|
||
|
return: Ver listEvent()
|
||
|
link: https://wiki.asterisk.org/wiki/display/AST/ManagerAction_IAXregistry
|
||
|
access: public
|
||
|
array iaxRegistry ()
|
||
|
|
||
|
-------------Interface AMI-------------
|
||
|
Action: IAXregistry
|
||
|
|
||
|
Response: Success
|
||
|
EventList: start
|
||
|
Message: Registrations will follow
|
||
|
|
||
|
Event: RegistryEntry
|
||
|
Host: XXX.XXX.XXX.XXX:4569
|
||
|
DNSmanager: N
|
||
|
Username: astersik-home
|
||
|
Perceived: <Unregistered>
|
||
|
Refresh: 60
|
||
|
State: Rejected
|
||
|
|
||
|
Event: RegistrationsComplete
|
||
|
EventList: Complete
|
||
|
ListItems: 1
|
||
|
---------------------------------------
|
||
|
|
||
|
----------------Ejemplo----------------
|
||
|
include "phpAMI.php";
|
||
|
$ami=new phpAMI("admin","admin");
|
||
|
$login=$ami->login();
|
||
|
if($login["Response"]=="Success"){
|
||
|
print_r($ami->iaxRegistry());
|
||
|
$ami->logoff();
|
||
|
}
|
||
|
---------------------------------------
|
||
|
|
||
|
----------Respuesta de phpAMI----------
|
||
|
Array
|
||
|
(
|
||
|
[Response] => Success
|
||
|
[EventList] => start
|
||
|
[Message] => Registrations will follow
|
||
|
[List] => Array
|
||
|
(
|
||
|
[XXX.XXX.XXX.XXX:4569] => Array
|
||
|
(
|
||
|
[Event] => RegistryEntry
|
||
|
[Host] => XXX.XXX.XXX.XXX:4569
|
||
|
[DNSmanager] => N
|
||
|
[Username] => astersik-home
|
||
|
[Perceived] => <Unregistered>
|
||
|
[Refresh] => 60
|
||
|
[State] => Timeout
|
||
|
)
|
||
|
|
||
|
)
|
||
|
|
||
|
[ListInfo] => Array
|
||
|
(
|
||
|
[Event] => RegistrationsComplete
|
||
|
[EventList] => Complete
|
||
|
[ListItems] => 1
|
||
|
)
|
||
|
|
||
|
)
|
||
|
---------------------------------------
|