Commit 216a520ce2ab04096cc6297c9e7b946be7fead9b
1 parent
e7f98436
add caller id in AMI command
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
asterisk/ami_commands.anubis
| ... | ... | @@ -29,10 +29,11 @@ public define AMI_Action ami_login(AMI_Auth ami_auth, Bool event) = |
| 29 | 29 | public define AMI_Action ami_originate_call(String extension, String out_number) = |
| 30 | 30 | action("Originate", [ |
| 31 | 31 | key_value("Channel", "SIP/"+extension), |
| 32 | + key_value("CallerID", extension), | |
| 32 | 33 | key_value("Exten", out_number), |
| 33 | 34 | key_value("Context", "default"), |
| 34 | 35 | key_value("Priority", "1"), |
| 35 | - key_value("Async", "yes") | |
| 36 | + key_value("Async", "true") | |
| 36 | 37 | ] |
| 37 | 38 | ) |
| 38 | 39 | . |
| ... | ... | @@ -46,6 +47,7 @@ public define AMI_Action |
| 46 | 47 | )= |
| 47 | 48 | action("Originate", [ |
| 48 | 49 | key_value("Channel", "SIP/"+extension), |
| 50 | + key_value("CallerID", extension), | |
| 49 | 51 | key_value("Exten", out_number), |
| 50 | 52 | key_value("Context", context), |
| 51 | 53 | key_value("Priority", "1"), | ... | ... |