space-voip/conf/sip.conf.tmpl

34 lines
716 B
Cheetah

[general]
context=sip
nat=force_rport,comedia
allowguest=no
register => {{ getv ("/asterisk/trunk/username") }}:{{ getv ("/asterisk/trunk/secret") }}@sip.2call.pl
[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
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") }}
{% for client in ls("/peers") %}
[{{ client }}]
type=peer
host=dynamic
secret={{ getv(printf("/peers/%s", client)) }}
context=internal
{% endfor %}