From 01e2339ec1efc725139ff1f8df9532a73af63cc0 Mon Sep 17 00:00:00 2001 From: demonspork Date: Thu, 6 May 2021 00:52:07 -0500 Subject: [PATCH] GXP21XX Dual Registration Support This is a new feature for grandstream, supporting dual simultaneous registrations. Only the very latest firmware 1.0.10.35 has it fully working, the last few versions had various partially working versions. This formats the username correctly when a secondary server is present. There are more phone models that support this feature, but since it has been hit and miss on getting it going I am not going to enable it on those templates unless I have one of each to fully test. --- .../templates/provision/grandstream/gxp2130/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp2135/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp2140/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp2160/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp2170/{$mac}.xml | 6 +++++- 5 files changed, 25 insertions(+), 5 deletions(-) diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml index 7d247f9d77..0ab0b1ee04 100644 --- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml @@ -4,7 +4,7 @@ {$mac|replace:'-':''} - + @@ -62,7 +62,11 @@ +{if isset($account.1.server_address_secondary)} + {$account.1.user_id}@{$account.1.server_address} +{else} {$account.1.user_id} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml index 3dd7b2df71..744e398677 100644 --- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml @@ -4,7 +4,7 @@ {$mac|replace:'-':''} - + @@ -62,7 +62,11 @@ +{if isset($account.1.server_address_secondary)} + {$account.1.user_id}@{$account.1.server_address} +{else} {$account.1.user_id} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml index 13909660cb..bf619b98c7 100644 --- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml @@ -4,7 +4,7 @@ {$mac|replace:'-':''} - + @@ -62,7 +62,11 @@ +{if isset($account.1.server_address_secondary)} + {$account.1.user_id}@{$account.1.server_address} +{else} {$account.1.user_id} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml index 1d49bcc71d..ea266dabf6 100644 --- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml @@ -4,7 +4,7 @@ {$mac|replace:'-':''} - + @@ -62,7 +62,11 @@ +{if isset($account.1.server_address_secondary)} + {$account.1.user_id}@{$account.1.server_address} +{else} {$account.1.user_id} +{/if} diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml index 774b274e3d..8ff60f4ffa 100644 --- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml @@ -4,7 +4,7 @@ {$mac|replace:'-':''} - + @@ -62,7 +62,11 @@ +{if isset($account.1.server_address_secondary)} + {$account.1.user_id}@{$account.1.server_address} +{else} {$account.1.user_id} +{/if}