space-voip/conf/sip.conf.tmpl

34 lines
716 B
Cheetah
Raw Normal View History

2018-03-24 12:18:37 +00:00
[general]
context=sip
nat=force_rport,comedia
2020-04-12 17:33:33 +00:00
allowguest=no
register => {{ getv ("/asterisk/trunk/username") }}:{{ getv ("/asterisk/trunk/secret") }}@sip.2call.pl
2018-03-24 12:18:37 +00:00
[trunk-out]
type=friend
disallow=all
allow=alaw
allow=ulaw
insecure=invite
canreinvite=no
context=trunk-in
qualify=no
fromdomain=sip.2call.pl
host=sip.2call.pl
2020-04-12 17:33:33 +00:00
defaultuser={{ getv ("/asterisk/trunk/username") }}
fromuser={{ getv ("/asterisk/trunk/username") }}
username={{ getv ("/asterisk/trunk/username") }}
user={{ getv ("/asterisk/trunk/username") }}
secret={{ getv ("/asterisk/trunk/secret") }}
2018-03-24 12:18:37 +00:00
2020-04-12 17:33:33 +00:00
{% for client in ls("/peers") %}
[{{ client }}]
type=peer
host=dynamic
secret={{ getv(printf("/peers/%s", client)) }}
context=internal
{% endfor %}