Content
XML definitions can use various modules of the phone in order to access variables, run functions etc.
The functions presented here can be used via the request action.
Index:
Goal: this function acts as if the contact_number parameter were selected from the Pool. Depending on current phone state, it will call the number or do a transfer using this number.
Parameters:
Example: call or transfer to number 100
<request when="on press" function="handle_selected" module="BusyLampField" result_destination="my_local_var"> <parameter name="contact_number" value="100"/> </request>
Goal: Make a call
Parameters:
Example: make a call to number 100 using Identity 2 via SPEAKER:
<request when="on press" function="make_call" module="CallInterface"> <parameter name="remote" value="100"/> <parameter name="identity" value="2"/> <parameter name="device" value="SPEAKER"/> </request>
Goal: Start a conference between given local identity and two remote numbers
Parameters:
Example: start a conference between local identity 2 and remote numbers 100 and 102:
<request when="on press" function="ad_hoc_conference" module="CallInterface" result_destination="my_var"> <parameter name="identity" value="2"/> <parameter name="remote1" value="100"/> <parameter name="remote2" value="102"/> </request>
Goal: while already in a call with a remote number, this function can be used to conference in a second remote number
Parameters
Example: Extension 100 is in a call with 101. To move this call to a conference and add extension 102 to the conversation:
<request when="on press" function="ad_hoc_conference_escalation" module="CallInterface" result_destination="my_var"> <parameter name="remote2" value="102"/> </request>
Goal: clear the call lists, either all or the one specifically provided
Parameters:
Example:
<request when="on press" function="clear" module="CallLists" result_destination="my_local_var"> <parameter name="list_type" value="dialed"/> </request>
Further Information
Related articles