<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 5/24/12 7:06 PM, David Lake (dlake)
      wrote:<br>
    </div>
    <blockquote
cite="mid:877805C876DB9243984870AAD141076208421A03@XMB-AMS-103.cisco.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1708145607;
        mso-list-type:hybrid;
        mso-list-template-ids:-1098613340 134807569 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Please excuse the newbie posting, but I
          really need some help !<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">I want to expand Kamailio to act as an OMA
          PoC Server.&nbsp; To do this, I need to build some floor-control
          using TBCP and add logic to select speakers, etc, which I can
          do.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">But&#8230;.&nbsp; Before I even do that, I need to
          support the PUBLISH event &#8220;poc-settings&#8221;&nbsp; This is where the
          client declares that it is a PoC device and what it&#8217;s status
          is (RFC 4354).&nbsp; I&#8217;ve read, re-read and re-re-read the
          documentation, but the architecture and how it impacts the
          various modules is still unclear to me.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">Here are my questions:<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoListParagraph" style="text-indent: -18pt;"><!--[if !supportLists]--><span
            style="mso-list:Ignore">1)<span style="font:7.0pt
              &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><!--[endif]-->I
          can see that presence_xml is where the &#8220;presence&#8221; and
          &#8220;winfo&#8230;.&#8221; events are handled.&nbsp; Do I need to expand this to
          include poc-settings ?</p>
      </div>
    </blockquote>
    it might be better to write your own module, depends in the kind of
    processing the presence server has to do. Look the other presence_*
    modules that are smaller than presence_xml (e.g., presence_profile),
    it should be easy to learn about how to add support for a new event
    type.<br>
    <br>
    <blockquote
cite="mid:877805C876DB9243984870AAD141076208421A03@XMB-AMS-103.cisco.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoListParagraph"
          style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><!--[if !supportLists]--><span
            style="mso-list:Ignore">2)<span style="font:7.0pt
              &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><!--[endif]-->The
          poc-settings per client are sent in the XML body.&nbsp;&nbsp; Where/how
          does that get parsed, and is that then stored in the MySQL
          database ?&nbsp; Does that mean that I need to expand the parser to
          handle the new poc-settings message ?&nbsp; Does that also mean
          that I need to add new elements to my openser database ?<o:p></o:p></p>
        <p class="MsoListParagraph"><o:p>&nbsp;</o:p></p>
      </div>
    </blockquote>
    Published document is saved 'as is' by presence module (which is a
    generic framework used by the other presence_* modules). I havent
    looked at rfc4354 to see what exactly processing is required, but I
    don't expect you need to extend the database. At this moment, the
    presence server can deal without problem with different PUBLISH
    bodies (like xml documents or text (for MWI)).<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
    <br>
    <br>
  </body>
</html>