a6703e9e57
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
38 lines
755 B
Plaintext
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
|