Phone Templates - Conditional Statements

Discussion in 'Ideas' started by Futureweb, Jan 11, 2016.

Phone Templates - Conditional Statements 5 5 5votes
5/5, 5 votes

  1. Futureweb

    Futureweb New Member

    Joined:
    Jun 29, 2015
    Messages:
    163
    Likes Received:
    14
    Hello,

    please add the possibility to use all assigned Variables for Conditional Statements - not only some like "{IF network=LOCALLAN} ... {ENDIF}"
    So we can modify Configuration based on IP/MAC/EXT/EXT-GROUP ...

    Something like:
    Code:
    {IF extension_number=7400}
    here commands ...
    {ENDIF}
    {IF %%extension_number%%=7400}
    here commands ...
    {ENDIF}
    
    {IF mac_address=000000000000}
    here commands ...
    {ENDIF}
    {IF %%mac_address%%=000000000000}
    here commands ...
    {ENDIF}
    Thank you
    Andreas Schnederle-Wagner
     
    phintec likes this.
  2. Futureweb

    Futureweb New Member

    Joined:
    Jun 29, 2015
    Messages:
    163
    Likes Received:
    14
    For some Usecases where this would come in handy please look here: http://www.3cx.com/forums/post176972.html#p176948

    Andreas
     
  3. phintec

    Joined:
    May 20, 2014
    Messages:
    6
    Likes Received:
    2
    I completely agree, and I just tried this last week without success. I need to provide specific values for phones based on their remote location. Things like syslog server, SNMP, etc that are not global. It seems silly to have the ability to provide conditional statements int the template but not use other values that are already available. Creating multiple templates provides opportunities for out of sync configuration.

    --Todd