88 lines
1.6 KiB
Text
88 lines
1.6 KiB
Text
info["owner"] = "asterisk"
|
|
info["group"] = "asterisk"
|
|
info["perms"] = 0644
|
|
|
|
include("secrets")
|
|
|
|
out("""[general]
|
|
language=fr
|
|
context=crans-from-external
|
|
outofcall_message_context=crans-sms
|
|
vmexten=666
|
|
bindport=5060•
|
|
bindaddr=::
|
|
srvlookup=yes•
|
|
domain = crans.org
|
|
fromdomain=crans.org
|
|
domain = sip.crans.org
|
|
domain = sip.v6.crans.org
|
|
domain = sip.v4.crans.org
|
|
qualify = 10000
|
|
qualifyfreq = 60
|
|
realm = asterisk
|
|
rtpholdtimeout=300
|
|
rtptimeout=60
|
|
register => 0033972113270:G1mrWTZ43Z8S@sip.ovh.fr
|
|
|
|
tlsenable=yes
|
|
tcpenable=yes
|
|
tlsbindaddr=::
|
|
tcpbindaddr=::
|
|
tlscertfile=/etc/asterisk/cert/asterisk.pem
|
|
tlscafile=/etc/ssl/certs/cacert.org.pem
|
|
tlscipher=ALL
|
|
tlsclientmethod=tlsv1
|
|
|
|
videosupport=yes
|
|
disallow=all
|
|
allow=alaw
|
|
allow=ulaw
|
|
allow=h263
|
|
;allow=h263p
|
|
;allow=h261•
|
|
allow=h264
|
|
;allow=g729
|
|
;maxcallbitrate=512
|
|
;localnet=138.231.0.0/255.255.0.0
|
|
;localnet=138.231.144.0/255.225.248.0
|
|
;localnet=138.231.136.0/255.225.248.0
|
|
|
|
nat=force_rport,comedia
|
|
|
|
|
|
[forfait-ovh]
|
|
type=peer
|
|
host=sip.ovh.fr
|
|
;allow=all
|
|
context=ovh-sip
|
|
language=fr
|
|
insecure=port,invite
|
|
fromuser=""" + secrets.sip_username + """
|
|
unername=""" + secrets.sip_username + """
|
|
secret=""" + secrets.sip_secret + """
|
|
canreinvite=no
|
|
dtmfmode=auto
|
|
video=no
|
|
restrictcid=no
|
|
amaflags=default
|
|
|
|
;template par default des lignes pour le crans
|
|
[default-crans](!)
|
|
type=friend
|
|
transport=udp,tcp,tls
|
|
fromdomain=crans.org
|
|
host=dynamic
|
|
context=crans-sip
|
|
language=fr
|
|
insecure=port
|
|
canreinvite=no
|
|
dtmfmode=auto
|
|
call-limit = 10
|
|
video=yes
|
|
restrictcid=no
|
|
amaflags=default
|
|
accept_outofcall_message=yes
|
|
outofcall_message_context=crans-sms
|
|
encryption=may
|
|
|
|
#include "/usr/scripts/var/sip/sip_accounts" """)
|