Chapter 3 CiscoIPPhone XML Objects
Application Event Handlers
Event Handler Schema
<?xml version="1.0"
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="notifyApplicationEvent"> <xs:complexType>
<xs:attribute name="appId" use="required"> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:minLength value="1"/> <xs:maxLength value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="type" use="required"> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:enumeration value="closed"/> <xs:enumeration value="minimized"/> <xs:enumeration value="focusLost"/> <xs:enumeration value="focusGained"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
Example
<CiscoIPPhoneImage appId="Cisco/Unity" onAppFocusLost="RTPRx:Stop; RTPTx:Stop; Notify:http:server:80:path"
onAppFocusGained="http://server/mainpage/updateUI"
onAppClosed="Notify:http:server:80:eventlistener/appClosed">
...
</CiscoIPPhoneImage>
| Cisco Unified IP Phone Services Application Development Notes |