From d67dfea213c99ffb729d808b146ccf97017fdf27 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 31 Jul 2013 21:23:13 -0400 Subject: [PATCH] pbx: update SIP config to help deal with NAT issues SIP is pretty much terrible at dealing with NAT. Asterisk has some knobs that can be enabled to help deal with common issues. Turn them on. In passing, remove the videosupport=yes line. We don't have video enabled for the conference application and we don't have any video codecs allowed, so this option didn't do anything. Change-Id: Ibc17ad3da9bbc110a8cb19daaea1655d0a208670 --- modules/openstack_project/templates/pbx/asterisk/sip.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/templates/pbx/asterisk/sip.conf.erb b/modules/openstack_project/templates/pbx/asterisk/sip.conf.erb index cd6be33992..90b8af3aea 100644 --- a/modules/openstack_project/templates/pbx/asterisk/sip.conf.erb +++ b/modules/openstack_project/templates/pbx/asterisk/sip.conf.erb @@ -11,7 +11,7 @@ allow=g722 allow=ulaw allow=alaw allow=gsm -videosupport=yes +nat=force_rport,comedia <% sip_providers.each do |provider| -%> register => <%= provider['username'] %>:<%= provider['password'] %>@<%= provider['hostname'] %>:5060 <% end -%>