New Forum system requires email address which you used to apply for your account to replace your original username. Password stays the same.Please see this post for more details

Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smarty Template Engine
Author Message
Coredial Offline
Junior Member

Posts: 3
Joined: Jan 2013
Reputation: 0
Post: #1
Smarty Template Engine
Is anyone using Smarty Template Engine to Dynamically assign Line Key functions instead of Statically assigning? Examples are.
line1_name: “x301”
line1_authname: “sip301_abc”
line1_password: “ZAq1XSw2@#”
line1_shortname: “x301”
line1_displayname: “John Smith”

{assign var="position" value=1}
{foreach item=line_key key=id from=$line_key_list}
{if $line_key.line_key_type == 1}
line{$position}_name: "{$line_key.key_label}"
line{$position}_authname: "{$line_key.sip_username}"
line{$position}_password: "{$line_key.sip_password}"
line{$position}_shortname: "{$line_key.key_label}"
line{$position}_displayname: "{$line_key.extension_name}"
{assign var="position" value=$position+1}

I am trying to come up with a template for the T2XP series. Any assistance is greatly appreciated.
01-29-2013 09:48 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 

Messages In This Thread
Smarty Template Engine - meyerj66 - 01-29-2013 09:48 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  3cx Phone Provisioning template Chadsuperb 2 9,706 07-12-2017 05:50 AM
Last Post: paarkway
  Auto provision template variables fraukas 4 1,637 01-19-2017 12:50 PM
Last Post: fraukas
  M7 template & firmware V8x lorn10 1 1,721 03-02-2015 10:11 AM
Last Post: Yealink_James
  Obtaining the M2 template configuration files? c1nco 3 4,513 10-10-2014 07:59 PM
Last Post: Wilson_Yealink

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication