Soporte & Consultoria
Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita
miércoles, 2 de marzo de 2016
ARI COMMANDS
Playing audio on a channel
curl -v -u asterisk:asterisk -X POST "http://localhost:8088/ari/channels/1456957509.267/play?media=sound:/var/lib/asterisk/sounds/en/hello-world"
curl -v -u asterisk:asterisk -X POST "http://localhost:8088/ari/channels/1456957509.267/play?media=sound:/var/www/demo/newb"
LIST ALL ENDPOINTS
curl -v -u asterisk:asterisk -X GET "http://localhost:8088/ari/endpoints"
LIST SIP ENDPOINTS
curl -v -u asterisk:asterisk -X GET "http://localhost:8088/ari/endpoints/SIP"
GET DETAILS OF AN ENDPOINT
root@asterisk-dominicana:~# curl -v -u asterisk:asterisk -X GET "http://localhost:8088/ari/endpoints/SIP/102"
SEND DTMF
curl -v -u asterisk:asterisk -X POST "http://localhost:8088/ari/channels/1456956819.263/dtmf?dtmf=1"
LIST CHANNELS
curl -v -u asterisk:asterisk -X GET "http://localhost:8088/ari/channels"
TRANSFER TO A CONTEXT
curl -v -u asterisk:asterisk -X POST "http://localhost:8088/ari/channels/1456957265.265/continue?context=internal&extension=0&priority=1"
HOLD AND UNHOLD
curl -v -u asterisk:asterisk -X POST "http://localhost:8088/ari/channels/1456957509.267/hold"
curl -v -u asterisk:asterisk -X DELETE "http://localhost:8088/ari/channels/1456957509.267/hold"
START AND STOP RING
curl -v -u asterisk:asterisk -X POST "http://localhost:8088/ari/channels/1456957509.267/ring"
curl -v -u asterisk:asterisk -X DELETE "http://localhost:8088/ari/channels/1456957509.267/ring"
Getting variables from a channel
curl -v -u asterisk:asterisk -X GET "http://localhost:8088/ari/channels/1456957509.267/variable?variable=CHANNEL"
curl -v -u asterisk:asterisk -X GET "http://localhost:8088/ari/channels/1456957509.267/variable?variable=EXTEN"
curl -v -u asterisk:asterisk -X GET "http://localhost:8088/ari/channels/1456957509.267/variable?variable=CALLERID(num)"
Listing bridges
curl -v -u asterisk:asterisk -X POST "http://localhost:8088/ari/bridges"
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario