<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hello sr mailing list,</div>
<div> </div>
<div>I’ve been banging my head around this for a while. I have an interesting use case.</div>
<div>We have a remote site where the user’s SIP phones register to a MetaSwitch Call Feature Server. This CFS supports all the presence RFCs like RFC 4235 (Dialog Event Package) and RFC 3856 (Presence Event Package).</div>
<div> </div>
<div>Those users also have a GUI on their desk PC’s that provide the user with information about the state our our application.  </div>
<div> </div>
<div>Now the use case, I want to have the “presence” state of the SIP phones (on-hook/Open, off-hook/InUse) displayed on the GUI. I already have the communication channel between the backend application server and the GUI. What I need guidance on is,</div>
<div> </div>
<ol style="margin:0;padding-left:36pt;">
<li>Is it possible to setup my Kamailio (4.0.3/CentOS 6.4 32 bit) to receive PUBLISH messages from the MetaSwitch CFS which is responsible for the Presentities under its control. I’m optimistic that this may be a simple SIP Trunk.</li><li>My application server (which would act as the Watcher) will need to subscribe to the presence events of a list of presentities I’m interested in. This could be done by using SIP and sending a SUBSCRIBE message, but my application doesn’t have a SIP stack
so is there a API to interact with the Presence module?</li><li>As per the RFCs and documentation the “watcher application” is responsible for consuming the NOTIFY messages. Once again my application doesn’t have a SIP stack so is there a API that my application can poll for or can listen for presence event updates
at a higher layer than SIP/SIMPLE</li></ol>
<div> </div>
<div>Any guidance would be appreciated.</div>
<div>Regards,</div>
<div> </div>
<table width="500" style="width:300pt;margin-left:2.4pt;">
<col width="500" style="width:300pt;">
<tr>
<td><font face="Arial" size="2" color="#2D5A7B"><span style="font-size:10pt;"><b>Tony de Sousa</b></span></font></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>