system-config/modules/openstack_project/templates/pbx/asterisk/sip.conf.erb
Clark Boylan a6703e9e57 Prep for pbx upgrade to xenial
This sets our testing to test pbx manifest on xenial and adds a hiera
group called pbx to the servers so we can properly do servernames with
digits and have common config in hiera.

Change-Id: I8c3096d18fe318c6ca206203de0ac984c8934566
2019-02-13 09:44:48 -08:00

38 lines
755 B
Plaintext

; sip.conf customizations for pbx.openstack.org
[general](+)
udpbindaddr=::
tcpenable=yes
tcpbindaddr=::
context=public
allowguest=yes
disallow=all
allow=g722
allow=ulaw
allow=alaw
allow=gsm
nat=force_rport,comedia
<% @sip_providers.each do |provider| -%>
register => <%= provider['username'] %>:<%= provider['password'] %>@<%= provider['hostname'] %>:5060
<% end -%>
<% @sip_providers.each do |provider| -%>
<% if provider['outgoing'] == true -%>
[<%= provider['username'] %>]
context=public
host=<%= provider['hostname'] %>
secret=<%= provider['password'] %>
type=peer
defaultuser=<%= provider['username'] %>
fromuser=<%= provider['username'] %>
trustrpid=yes
sendrpid=yes
<% end -%>
<% end -%>
[openstack]
type=user
secret=openstack
context=public