How can we help you today?
Start a new topic

Action URL on Function Keys

Hello, is it possible to implement the type "Action URL" for Context sensitive Keys as it is already possible for "Dedicated Keys" ?

image



Hi Simon,


Unfortunately no, the Context-Sensitive Keys has a predetermined range of types from which you can choose from and that cannot be changed, and this range do not include the Action URL type.

Hi Simon,


such keys do support XML definitions allowing "mighty" configurations. So you can configure a desired context-sensitive key as XML definition and e.g. with this XML


<initialization>
<variable name='label' value='Emergency'/>
<variable name='icon' value='http://webserver.ip/emergency.png'/>
<identity value='1'/>
</initialization>
<action>
<url target="http://action.com" when="on press" states="off"/>
</action>


potentially "do the trick".

I hope that helps.

Thanks and greetings from Berlin,
Jan


1 person likes this

Hi,

thanks for the reply Jan! It was a bit tricky to find the right context for the XML-Definition, but now it works as intended.

For the record, this XML inside the phone-settings tag works:

<settings>
    <phone-settings>
        <gui_fkey2 perm="RW"> 
            <initialization>
                <state value="off"/>
                <variable name="label" value="Label"/>
            <action>
                <url target="http://fancywebsite" when="on press" states="off"/>
            </action>
        </gui_fkey2>
    </phone-settings>
</settings>

Thanks for the Help!

Greetings from Austria,

Simon

Sorry for the reply on my own post, but i can't edit my last post.


I had an error in the code snippet, here the corrected version:

<settings>
    <phone-settings e="2">
        <gui_fkey2 perm="RW">
            <initialization>
                <state value="off"/>
                <variable name="label" value="Label"/>
            </initialization>
            <action>
                <url target="http://fancyurl" when="on press" states="off"/>
            </action>
        </gui_fkey2>
    </phone-settings>
</settings>

 

One more question:

It is not possible to switch to the xml-definition in the web interface of the phone, when "xml-definition" is selected in the drop-down menu, the page reloads and the default entry is selected.

I don't think this is the desired behavior?

Also when switched to "xml-definition" some errors are written to the log:

Jan 21 10:38:36.809 [INFO ] PHN: WEB: Request 34/2926/0: POST /fkey.htm HTTP/1.1 
Jan 21 10:38:36.824 [CRITIC] PHN: Warning: Ignore invalid parameter: s_arg0
Jan 21 10:38:36.836 [CRITIC] PHN: Warning: Ignore invalid parameter: s_arg1
Jan 21 10:38:36.837 [CRITIC] PHN: Warning: Ignore invalid parameter: s_arg2 

 Tested with the latest Firmware snomD345-SIP 10.1.46.16

 

Login or Signup to post a comment