Show pagesourceOld revisionsBacklinksAdd to bookExport to PDFODT exportBack to top Share via Share via... Twitter LinkedIn Facebook Pinterest Telegram WhatsApp Yammer Reddit TeamsRecent ChangesSend via e-MailPrintPermalink × Book Creator Add this page to your book Book Creator Remove this page from your book Manage book(0 page(s)) Help Send a Sip-Message on key-press Note: needs Version 2.4 or above This key sends a Sip-Message (text of message is one of the parameters of the key) to the configured number after the configured amount of seconds have passed. The receiving phone will show the message as popup. sip_message.xml <configuration> <templates> <template name="@string/silent_alert" prio="10" icon="@drawable/bluelight"> <keyConfiguration> <lua> <code> local silentAlertNotifyId = 24242 local function onClickedNotify() sip.sendMessage{line=identity, message=msg, target=url} local notification = system.notifications.get{id=silentAlertNotifyId} if notification then notification:delete() end end function onKeyUp() if url ~= nil and url ~= "" and delay ~= nil then if delay ~= "" and tonumber(delay) > 0 then system.notifications.add{tag="SilentAlertTag", id=silentAlertNotifyId, title="@string/silent_alert", message="@string/silent_alert_msg", autoClickDelay=tonumber(delay), alert=true, alertSound=false, alertOkText="@string/silent_alert_ok", alertCancelText="", onClicked=onClickedNotify} else sip.sendMessage{line=identity, message=msg, target=url} end end end </code> <params> <param name="url"/> <param name="msg"/> <param name="identity"/> <param name="delay"> <value>10</value> </param> </params> </lua> </keyConfiguration> <parameters> <parameter name="@string/uri" type="sip_uri"> <path>//param[@name="url"]/value</path> </parameter> <parameter name="@string/identity" type="identity"> <path>//param[@name="identity"]/value</path> </parameter> <parameter optional="true" name="@string/silent_alert_delay" type="number" min="0" max="60"> <path>//param[@name="delay"]/value</path> </parameter> <parameter optional="true" name="@string/param_message" type="text"> <path>//param[@name="msg"]/value</path> </parameter> </parameters> </template> </templates> </configuration> en/products/comfortel-d-series/developer/keys/templates/examples/send_sipmessage.txt Last modified: 20.07.2022 12:09by neubauers