class AastraXmlApi::PhoneExecute
Public Instance Methods
addEntry(url, interruptCall=nil)
click to toggle source
Add a url (action to be performed). If interruptCall is not nil, then then if a dial action is given, the current call will be put on hold. Default behavior is to not allow a current active call to be interrupted.
# File lib/aastra_xml_api/phone_execute.rb, line 36 def addEntry(url, interruptCall=nil) @entries += [PhoneExecuteEntry.new(url, interruptCall)] end
render()
click to toggle source
Create XML text output.
# File lib/aastra_xml_api/phone_execute.rb, line 47 def render title = escape(@title) out = "<AastraIPPhoneExecute" out += " Beep=\"yes\"" if @beep == "yes" out += " triggerDestroyOnExit=\"yes\"" if @triggerDestroyOnExit == "yes" out += ">\n" @entries.each do |entry| out += entry.render end out += "</AastraIPPhoneExecute>\n" return out end
setTriggerDestroyOnExit()
click to toggle source
When set, the previous user interface XML object is destroyed if its destroyOnExit tag is also set to yes.
# File lib/aastra_xml_api/phone_execute.rb, line 42 def setTriggerDestroyOnExit @triggerDestroyOnExit = "yes" end