<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Jonathan!<br>
      <br>
      A quick and blind answer is to catch the NOTIFY messages in
      local_route and change them as you want using regular expressions
      on the message body.<br>
      <br>
      Perhaps I can offer a more elegant solution for this issue if you
      are a bit more explicit about what kind of events are you
      generating presence for, and when is this NOTIFY message sent?<br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 10/05/2017 09:15 PM, Jonathan Hunter
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DB4PR02MB0336DF162BD6E73515C096E3BD700@DB4PR02MB0336.eurprd02.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
        dir="ltr">
        <div>Hi Guys,</div>
        <div><br>
        </div>
        <div>I am using opensips 2.2 and the presence modules to
          generate PUBLISH and NOTIFY messages.</div>
        <div><br>
        </div>
        <div>I can see with the NOTIFY message opensips is sending a
          status=closed, can I make it send a status=available if the
          extension is registered and ready for calls?</div>
        <div><br>
        </div>
        <div>Many thanks</div>
        <div><br>
        </div>
        <div>Jon</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Session Initiation Protocol (NOTIFY)</div>
        <div>    Request-Line: NOTIFY sip:SIPWATCHER:5063 SIP/2.0</div>
        <div>    Message Header</div>
        <div>    Message Body</div>
        <div>        eXtensible Markup Language</div>
        <div>            <?xml</div>
        <div>            <presence</div>
        <div>                xmlns="urn:ietf:params:xml:ns:pidf"</div>
        <div>                entity="sip:2002@SIPDOMAIN"></div>
        <div>                <tuple</div>
        <div>                    xmlns="urn:ietf:params:xml:ns:pidf"</div>
        <div>                    id="tuple_mixingid"></div>
        <div>                    <status></div>
        <div>                        <basic></div>
        <div>                            closed</div>
        <div>                            </basic></div>
        <div>                        </status></div>
        <div>                    </tuple></div>
        <div>                </presence></div>
        <div><br>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>