This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_asterisk [2021/11/19 11:21] val [XMPP] |
сервис_asterisk [2022/04/12 09:25] val [С использованием Call файлов] |
||
---|---|---|---|
Line 389: | Line 389: | ||
==== TimeBased контексты ==== | ==== TimeBased контексты ==== | ||
+ | |||
+ | * [[https://wiki.asterisk.org/wiki/display/AST/Contexts%2C+Extensions%2C+and+Priorities#Contexts,Extensions,andPriorities-Dialplansearchorder|Dialplan search order]] | ||
* [[https://www.voip-info.org/asterisk-tips-openhours/|How to include contexts based on time and date]] | * [[https://www.voip-info.org/asterisk-tips-openhours/|How to include contexts based on time and date]] | ||
Line 653: | Line 655: | ||
server*CLI> channel request hangup SIP/<TAB> | server*CLI> channel request hangup SIP/<TAB> | ||
+ | |||
+ | # watch -d "asterisk -x 'cdr show active'" | ||
# curl -v -X GET "http://localhost:8088/ari/channels?api_key=asterisk:asterisk" | # curl -v -X GET "http://localhost:8088/ari/channels?api_key=asterisk:asterisk" | ||
Line 1952: | Line 1956: | ||
# /usr/share/originate_call_file.sh 402 601 Conferencia | # /usr/share/originate_call_file.sh 402 601 Conferencia | ||
# /usr/share/originate_call_file.sh 401 601 Conferencia | # /usr/share/originate_call_file.sh 401 601 Conferencia | ||
+ | </code><code> | ||
+ | # cat test_local.call | ||
+ | </code><code> | ||
+ | Channel: Local/311@default | ||
+ | Extension: 89161234567 | ||
+ | Context: default | ||
+ | CallerId: Echo <311> | ||
</code> | </code> | ||
==== Пример с использованием Asterisk AMI ==== | ==== Пример с использованием Asterisk AMI ==== |