f52d2eb2b6
This reverts commit 82b9b59522
.
Change-Id: I746d7ae57802dc76618db9024a0cf94c43774c02
38 lines
753 B
Plaintext
38 lines
753 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
|