Scheduled maintenance alert

Our website will undergo maintenance from Di, 19.11.2024, 20:00 CEST to Di, 19.11.2024, 22:00 CEST, which may cause occasional service disruptions. We apologize for any inconvenience and appreciate your understanding.

Content

Page tree

These include following callbacks:

  • bool_eval
  • on_off
  • x_o
  • yes_no


Usage details:

  • If you want to use your own language as argument in XML file, check also if the phone, which is parsing the file, is in correct PUI language.
  • Please write 0 or false if you want to ensure to get false result from the callback instead of writing empty argument or not writing it at all.


Example: print the result for different ways of using the boolean callbacks

<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneMenu>
	<Menu name="Usage with keys">
      		<Repeat values="|bool_eval|on_off|yes_no|x_o|" token="|__cb_name__|">
			<Menu name="__cb_name__">
      			<MenuItem name="true:$(__cb_name__:$(condition:a==a))"></MenuItem> 
				<MenuItem name="false:$(__cb_name__:$(condition:a!=a))"></MenuItem> 
			</Menu> 
 			</Repeat>
	</Menu> 
	<Menu name="Usage without keys">
      		<Repeat values="|bool_eval|on_off|yes_no|x_o|" token="|__cb_name__|">
			<Menu name="__cb_name__">
      			<MenuItem name="true:$(__cb_name__)"></MenuItem> 
				<MenuItem name="false:$(__cb_name__)"></MenuItem> 
			</Menu> 
 			</Repeat>
	</Menu> 
	<Menu name="Usage with empty keys">
      		<Repeat values="|bool_eval|on_off|yes_no|x_o|" token="|__cb_name__|">
			<Menu name="__cb_name__">
      			<MenuItem name="true:$(__cb_name__:)"></MenuItem> 
				<MenuItem name="false:$(__cb_name__:)"></MenuItem> 
			</Menu> 
 			</Repeat>
	</Menu> 
	<Menu name="Usage with true and false">
      		<Repeat values="|bool_eval|on_off|yes_no|x_o|" token="|__cb_name__|">
			<Menu name="__cb_name__">
      			<MenuItem name="true:$(__cb_name__:true)"></MenuItem> 
				<MenuItem name="false:$(__cb_name__:false)"></MenuItem> 
			</Menu> 
 			</Repeat>
	</Menu> 
	<Menu name="Usage with 1 and 0">
      		<Repeat values="|bool_eval|on_off|yes_no|x_o|" token="|__cb_name__|">
			<Menu name="__cb_name__">
      			<MenuItem name="true:$(__cb_name__:1)"></MenuItem> 
				<MenuItem name="false:$(__cb_name__:0)"></MenuItem> 
			</Menu> 
 			</Repeat>
	</Menu> 
	<Menu name="Usage with Yes No">
      		<Repeat values="|bool_eval|on_off|yes_no|x_o|" token="|__cb_name__|">
			<Menu name="__cb_name__">
      			<MenuItem name="true:$(__cb_name__:Yes)"></MenuItem> 
				<MenuItem name="false:$(__cb_name__:No)"></MenuItem> 
			</Menu> 
 			</Repeat>
	</Menu> 
</SnomIPPhoneMenu>


Results: