From 57291e733d0fc57e1c7f49b1017da5d933cc4e08 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 9 Jan 2014 01:07:57 +0000 Subject: [PATCH] Improve the method to determine a default sip port number. --- resources/templates/provision/yealink/t32g/{$mac}.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/templates/provision/yealink/t32g/{$mac}.cfg b/resources/templates/provision/yealink/t32g/{$mac}.cfg index 7617077953..18dd50e851 100644 --- a/resources/templates/provision/yealink/t32g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t32g/{$mac}.cfg @@ -41,6 +41,8 @@ account.1.outbound_host = {$outbound_proxy_1} account.1.outbound_port = #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; +{if $sip_transport_1 == ''}account.1.transport = 1{/if} +{if $sip_transport_1 == 'udp'}account.1.transport = 0{/if} {if $sip_transport_1 == 'udp'}account.1.transport = 0{/if} {if $sip_transport_1 == 'tcp'}account.1.transport = 1{/if} {if $sip_transport_1 == 'tcp'}account.1.transport = 2{/if}