gxp2170 mac.cfg question

nickbh

Member
Sep 26, 2019
40
3
8
57
I am trying to set tls transport and it is not working. Following is the xml file generated
...
<!-- SIP Transport -->
<!-- UDP, TCP, Tls Or Tcp -->
<item name="account.1.sip.transport">Tls</item>
<!-- SIP Listening Mode -->
<!-- Transport_Only, Dual, Dual_BLF_Enforced, Dual_Secured -->
<item name="account.1.sip.listeningMode">Dual_Secured</item>
...

Following changes I made in $mac.xml
<!-- SIP Transport -->
<!-- UDP, TCP, Tls Or Tcp -->
{if $row.sip_transport == ''}<item name="account.{$row.line_number}.sip.transport">TCP</item>{/if}
{if $row.sip_transport == 'UDP'|lower}<item name="account.{$row.line_number}.sip.transport">UDP</item>{/if}
{if $row.sip_transport == 'TCP'|lower}<item name="account.{$row.line_number}.sip.transport">TCP</item>{/if}
{if $row.sip_transport == 'TLS'|lower}<item name="account.{$row.line_number}.sip.transport">Tls</item>{/if}
<!-- SIP Listening Mode -->
<!-- Transport_Only, Dual, Dual_BLF_Enforced, Dual_Secured -->
{if $row.sip_transport == 'TLS'|lower}
<item name="account.{$row.line_number}.sip.listeningMode">Dual_Secured</item>
{else}
<item name="account.{$row.line_number}.sip.listeningMode">Transport_Only</item>
{/if}

I added |lower because params are in lower cased from front end. I have tried also changing to TLS from Tls and it is not changing the values provisioned in the phone. Can someone please help me with this. I am trying to avoid using gxp21xx config file, where I can change the value for pcode.

Thank you for your help in Advance.

Nick
 

Attachments

  • -.jpg
    -.jpg
    8.4 KB · Views: 3
  • -.jpg
    -.jpg
    12.2 KB · Views: 3