From 373c32ea55abac271d58a1478d742ca1ac1b484d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 10 Apr 2025 17:33:34 -0600 Subject: [PATCH] Fix the Grandstream GRP sip.transport --- .../templates/provision/grandstream/grp2612/{$mac}.xml | 8 ++++---- .../templates/provision/grandstream/grp2612w/{$mac}.xml | 8 ++++---- .../templates/provision/grandstream/grp2613/{$mac}.xml | 8 ++++---- .../templates/provision/grandstream/grp2614/{$mac}.xml | 8 ++++---- .../templates/provision/grandstream/grp2615/{$mac}.xml | 8 ++++---- .../templates/provision/grandstream/grp2616/{$mac}.xml | 8 ++++---- .../templates/provision/grandstream/grp261x/{$mac}.xml | 7 +++++-- 7 files changed, 29 insertions(+), 26 deletions(-) diff --git a/resources/templates/provision/grandstream/grp2612/{$mac}.xml b/resources/templates/provision/grandstream/grp2612/{$mac}.xml index 859549cad8..6c9def82f8 100644 --- a/resources/templates/provision/grandstream/grp2612/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2612/{$mac}.xml @@ -227,10 +227,10 @@ - {if $row.sip_transport == ''}TCP{/if} - {if $row.sip_transport == 'UDP'}UDP{/if} - {if $row.sip_transport == 'TCP'}TCP{/if} - {if $row.sip_transport == 'TLS'}Tls{/if} + {if $row.sip_transport == ''}1{/if} + {if $row.sip_transport == 'udp'}0{/if} + {if $row.sip_transport == 'tcp'}1{/if} + {if $row.sip_transport == 'tls'}2{/if} diff --git a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml index e596e012ec..fc6943d226 100644 --- a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml @@ -227,10 +227,10 @@ - {if $row.sip_transport == ''}TCP{/if} - {if $row.sip_transport == 'UDP'}UDP{/if} - {if $row.sip_transport == 'TCP'}TCP{/if} - {if $row.sip_transport == 'TLS'}Tls{/if} + {if $row.sip_transport == ''}1{/if} + {if $row.sip_transport == 'udp'}0{/if} + {if $row.sip_transport == 'tcp'}1{/if} + {if $row.sip_transport == 'tls'}2{/if} diff --git a/resources/templates/provision/grandstream/grp2613/{$mac}.xml b/resources/templates/provision/grandstream/grp2613/{$mac}.xml index 40b6df3dc1..43c43304d6 100644 --- a/resources/templates/provision/grandstream/grp2613/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2613/{$mac}.xml @@ -227,10 +227,10 @@ - {if $row.sip_transport == ''}TCP{/if} - {if $row.sip_transport == 'UDP'}UDP{/if} - {if $row.sip_transport == 'TCP'}TCP{/if} - {if $row.sip_transport == 'TLS'}Tls{/if} + {if $row.sip_transport == ''}1{/if} + {if $row.sip_transport == 'udp'}0{/if} + {if $row.sip_transport == 'tcp'}1{/if} + {if $row.sip_transport == 'tls'}2{/if} diff --git a/resources/templates/provision/grandstream/grp2614/{$mac}.xml b/resources/templates/provision/grandstream/grp2614/{$mac}.xml index 859549cad8..6c9def82f8 100644 --- a/resources/templates/provision/grandstream/grp2614/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2614/{$mac}.xml @@ -227,10 +227,10 @@ - {if $row.sip_transport == ''}TCP{/if} - {if $row.sip_transport == 'UDP'}UDP{/if} - {if $row.sip_transport == 'TCP'}TCP{/if} - {if $row.sip_transport == 'TLS'}Tls{/if} + {if $row.sip_transport == ''}1{/if} + {if $row.sip_transport == 'udp'}0{/if} + {if $row.sip_transport == 'tcp'}1{/if} + {if $row.sip_transport == 'tls'}2{/if} diff --git a/resources/templates/provision/grandstream/grp2615/{$mac}.xml b/resources/templates/provision/grandstream/grp2615/{$mac}.xml index 094e6d8982..2aecc22a81 100644 --- a/resources/templates/provision/grandstream/grp2615/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2615/{$mac}.xml @@ -227,10 +227,10 @@ - {if $row.sip_transport == ''}TCP{/if} - {if $row.sip_transport == 'UDP'}UDP{/if} - {if $row.sip_transport == 'TCP'}TCP{/if} - {if $row.sip_transport == 'TLS'}Tls{/if} + {if $row.sip_transport == ''}1{/if} + {if $row.sip_transport == 'udp'}0{/if} + {if $row.sip_transport == 'tcp'}1{/if} + {if $row.sip_transport == 'tls'}2{/if} diff --git a/resources/templates/provision/grandstream/grp2616/{$mac}.xml b/resources/templates/provision/grandstream/grp2616/{$mac}.xml index 859549cad8..6c9def82f8 100644 --- a/resources/templates/provision/grandstream/grp2616/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2616/{$mac}.xml @@ -227,10 +227,10 @@ - {if $row.sip_transport == ''}TCP{/if} - {if $row.sip_transport == 'UDP'}UDP{/if} - {if $row.sip_transport == 'TCP'}TCP{/if} - {if $row.sip_transport == 'TLS'}Tls{/if} + {if $row.sip_transport == ''}1{/if} + {if $row.sip_transport == 'udp'}0{/if} + {if $row.sip_transport == 'tcp'}1{/if} + {if $row.sip_transport == 'tls'}2{/if} diff --git a/resources/templates/provision/grandstream/grp261x/{$mac}.xml b/resources/templates/provision/grandstream/grp261x/{$mac}.xml index 074a634405..08ac2246bd 100644 --- a/resources/templates/provision/grandstream/grp261x/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp261x/{$mac}.xml @@ -147,8 +147,11 @@ - {if $row.sip_transport=='tcp'}TCP{elseif $row.sip_transport=='tls'}Tls Or Tcp{else}UDP{/if} - + {if $row.sip_transport == ''}1{/if} + {if $row.sip_transport == 'udp'}0{/if} + {if $row.sip_transport == 'tcp'}1{/if} + {if $row.sip_transport == 'tls'}2{/if} + TransportOnly