Commit 45e29b302fac0def4330ce9654cfa2cecd9e69f2
1 parent
a896af96
add example for calling
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
asterisk/ami.anubis
| @@ -158,10 +158,11 @@ global define One | @@ -158,10 +158,11 @@ global define One | ||
| 158 | ( | 158 | ( |
| 159 | List(String) args | 159 | List(String) args |
| 160 | )= | 160 | )= |
| 161 | - if asterisk_new_client("192.168.3.20:5038", auth("admin","admin")) is | 161 | + if asterisk_new_client("192.168.0.2:5038", auth("admin","password")) is |
| 162 | { | 162 | { |
| 163 | failure then println(" asterisk new client failure"), | 163 | failure then println(" asterisk new client failure"), |
| 164 | - success(ami_client) then unique | 164 | + success(ami_client) then |
| 165 | + forget(send_action(ami_client, ami_originate_call("1000", "1001"))) | ||
| 165 | //forget(xml_rpc_client_execute(true, rpc_client, "/Settings", "list_domains", empty_param)) | 166 | //forget(xml_rpc_client_execute(true, rpc_client, "/Settings", "list_domains", empty_param)) |
| 166 | //forget(xml_rpc_client_execute(true, rpc_client, "/Settings", "delete_domain", parameters([parameter[string("amisdefontainebleau.org")]]))) | 167 | //forget(xml_rpc_client_execute(true, rpc_client, "/Settings", "delete_domain", parameters([parameter[string("amisdefontainebleau.org")]]))) |
| 167 | //forget(xml_rpc_client_execute(true, rpc_client, "/Settings", "create_domain", empty_param)) | 168 | //forget(xml_rpc_client_execute(true, rpc_client, "/Settings", "create_domain", empty_param)) |