This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_asterisk [2025/06/20 07:30] val [Использование СУБД для хранения CDR] |
сервис_asterisk [2025/06/23 17:05] (current) val [Настройка CHAN_SIP каналов] |
||
---|---|---|---|
Line 44: | Line 44: | ||
allow=alaw | allow=alaw | ||
- | directmedia=no ; for webinar | + | ;directmedia=no ; for webinar |
- | nat=force_rport,comedia ; for webinar | + | ;nat=force_rport,comedia ; for webinar |
- | qualify=yes ; for webinar | + | ;qualify=yes ; for webinar |
;context=default | ;context=default | ||
Line 110: | Line 110: | ||
directmedia=no | directmedia=no | ||
;call-limit=1 | ;call-limit=1 | ||
+ | ;transport=tls | ||
+ | ;encryption=yes | ||
[401](office) | [401](office) | ||
Line 203: | Line 205: | ||
;endpoint/set_var=MY-USER-ID=user2@corp13.un | ;endpoint/set_var=MY-USER-ID=user2@corp13.un | ||
;endpoint/callerid=Petr P. Petrov<402> | ;endpoint/callerid=Petr P. Petrov<402> | ||
+ | ;endpoint/force_rport=yes | ||
+ | ;endpoint/rewrite_contact=yes | ||
+ | ;endpoint/rtp_symmetric=yes | ||
+ | ;endpoint/direct_media=no | ||
+ | ;endpoint/acl=acl_office | ||
+ | ;;endpoint/acl=acl_internet | ||
aor/max_contacts=1 | aor/max_contacts=1 | ||
aor/remove_existing=yes | aor/remove_existing=yes | ||
+ | </code><code> | ||
+ | # cat /etc/asterisk/acl.conf | ||
+ | </code><code> | ||
+ | [acl_office] | ||
+ | deny=0.0.0.0/0.0.0.0 | ||
+ | permit=192.168.X.0/255.255.255.0 | ||
+ | |||
+ | [acl_internet] | ||
+ | permit=0.0.0.0/0.0.0.0 | ||
</code> | </code> | ||
Line 2673: | Line 2690: | ||
[general] | [general] | ||
enabled = yes | enabled = yes | ||
+ | ;webenabled = yes | ||
port = 5038 | port = 5038 | ||
bindaddr = 127.0.0.1 | bindaddr = 127.0.0.1 | ||
Line 2715: | Line 2733: | ||
- | === Настройка доступа к ARI === | + | === Настройка http доступа === |
<code> | <code> | ||
# cat /etc/asterisk/http.conf | # cat /etc/asterisk/http.conf | ||
Line 2724: | Line 2742: | ||
;bindaddr=0.0.0.0 | ;bindaddr=0.0.0.0 | ||
bindport=8088 | bindport=8088 | ||
- | </code><code> | + | </code> |
+ | === Настройка доступа к ARI === | ||
+ | <code> | ||
# cat /etc/asterisk/ari.conf | # cat /etc/asterisk/ari.conf | ||
</code><code> | </code><code> |