сервис_asterisk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_asterisk [2022/04/12 09:25]
val [С использованием Call файлов]
сервис_asterisk [2022/04/15 19:31]
val [С использованием Call файлов]
Line 224: Line 224:
 </​code><​code>​ </​code><​code>​
 ... ...
-; voip1.un и server.corp.un одна и та же система+; voip1.un и server.corp.un ​(курс CGP) одна и та же система
 ; приходится подключаться к ней с разных портов :) ; приходится подключаться к ней с разных портов :)
  
Line 231: Line 231:
 protocol=udp protocol=udp
 bind=0.0.0.0:​5062 bind=0.0.0.0:​5062
 +;​local_net=192.168.1.0/​255.255.255.0
 ;​local_net=192.168.X.0/​255.255.255.0 ;​local_net=192.168.X.0/​255.255.255.0
 ;​external_media_address=172.16.1.X ;​external_media_address=172.16.1.X
Line 1775: Line 1776:
 ... ...
  
-;For IMAP/SMTP+;;;For IMAP/SMTP
 ;​charset=UTF-8 ;​charset=UTF-8
 ;​locale=ru_RU.UTF-8 ;​locale=ru_RU.UTF-8
Line 1784: Line 1785:
 ... ...
  
-;For IMAP +;;;For IMAP 
-;debian# apt install asterisk-voicemail-imapstorage +;;;debian# apt install asterisk-voicemail-imapstorage 
-;debian# cp /​etc/​dovecot/​private/​dovecot.pem /​usr/​local/​share/​ca-certificates/​dovecot.crt +;;;debian# cp /​etc/​dovecot/​private/​dovecot.pem /​usr/​local/​share/​ca-certificates/​dovecot.crt 
-;debian# update-ca-certificates +;;;debian# update-ca-certificates 
-;debian# service asterisk restart+;;;debian# service asterisk restart
 ;​imapserver=server.corpX.un ;​imapserver=server.corpX.un
 ;​imapfolder=INBOX ;​imapfolder=INBOX
  
-;For SMTP+;;;For SMTP
 ;debian# apt install postfix mailutils ;debian# apt install postfix mailutils
  
Line 1917: Line 1918:
  
 <​code>​ <​code>​
-server# cat 1.call+# cat call.txt
 </​code><​code>​ </​code><​code>​
-Channel: ​sip/401 +Channel: ​Local/voip1_00000X@default 
-Extension: ​601+Extension: ​89161234567
 Context: default Context: default
-CallerId: ​Conferencia ​<601>+CallerId: ​CorpX<84992636363>
 </​code><​code>​ </​code><​code>​
-server# ​cat 2.call +server# ​cp call.txt /​var/​spool/​asterisk/​outgoing/​
-</​code><​code>​ +
-Channel: sip/402 +
-Extension: 601 +
-Context: default +
-CallerId: Conferencia <​601>​ +
-</​code><​code>​ +
-server# cat 3.call +
-</​code><​code>​ +
-Channel: sip/403 +
-Extension: 601 +
-Context: default +
-CallerId: Conferencia <​601>​ +
-</​code><​code>​ +
-server# cp [123].call ​/​var/​spool/​asterisk/​outgoing/​+
 </​code><​code>​ </​code><​code>​
 # cat /​usr/​share/​originate_call_file.sh # cat /​usr/​share/​originate_call_file.sh
Line 1956: Line 1943:
 # /​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 ====
Line 2522: Line 2502:
 ... ...
 </​code>​ </​code>​
-==== Приложение SHELL ====+==== Функция SHELL ====
  
   * !!! Название функции только ЗАГЛАВНЫМИ буквами   * !!! Название функции только ЗАГЛАВНЫМИ буквами
Line 3140: Line 3120:
 [402] [402]
 ;​secret=tpassword402 ;​secret=tpassword402
-md5secret=29c91aa064cf462f5146b7ee81e7ba49+md5secret=a77b8ed36b4be2c14c2d7e4dfad34b46
 ... ...
 </​code>​ </​code>​
сервис_asterisk.txt · Last modified: 2023/12/02 08:15 by val