<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>thanks, it will reviewed and eventual comments will be added to
      the pull request.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 27/03/2017 22:08, Guillaume Bour
      wrote:<br>
    </div>
    <blockquote cite="mid:20170327200807.GI21461@bour.cc" type="cite">
      <pre wrap="">Hello,

I submitted the 1st version of my prototype: <a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/pull/1045">https://github.com/kamailio/kamailio/pull/1045</a>

I attach here 2 sample configurations to use with

Regards,
Guillaume Bour

On Thu, Mar 16, 2017 at 01:18:47PM +0100, Daniel-Constantin Mierla wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hello,


On 13/03/2017 22:45, Guillaume Bour wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hi Daniel,

Thanks for you answer

On Tue, Mar 07, 2017 at 11:35:17PM +0100, Daniel-Constantin Mierla wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">Hello,


On 07/03/2017 21:22, Guillaume Bour wrote:
</pre>
            <blockquote type="cite">
              <pre wrap="">Hi all,

I would like to implement destinations keepalive in drouting module (as it is done in dispatcher).
But instead of duplicating what's implemented in dispatcher, I think it would be more clever to create a new module
dedicated to pinging destinations, and to plug drouting, dispatcher and other modules to this new one

What's you opinion about that ?

</pre>
            </blockquote>
            <pre wrap="">could be an interesting module, not able to say at this moment if I
would plug it into dispatcher, as I cannot assert the impact, but at
least for adding to drouting or other modules which don't have this
feature, should worth the try.

How do you plan to have the relation between the modules? Each of them
will have a copy of the addresses, or the addresses of the destinations
will be in. a single module, and the other will refer to them via some
unique id? Will drouting just build the list of destination based on
priority, then check with the new module to see which are active and
remove the inactive ones?
</pre>
          </blockquote>
          <pre wrap="">My idea is to expose a set of API functions, allowing other modules
to register/unregister addresses to monitor.
So yes, destinations adresses would be duplicated in keepalive module memory.
Then keepalive module would notify the "source" module when destination
status change (available -> unavailable, and vice-versa)

</pre>
          <blockquote type="cite">
            <pre wrap="">Again, when I would see some sort of prototype/initial version, probably
I can comment more. The questions above just pop up in my mind, but
probably you can just go ahead to write some code as you consider, then
we can start a discussion from there and see what can be improved/better
integrated with existing modules.

</pre>
          </blockquote>
          <pre wrap="">I have started working on a POC.
It is available at <a class="moz-txt-link-freetext" href="https://github.com/gbour/kamailio/tree/module-keepalive">https://github.com/gbour/kamailio/tree/module-keepalive</a>
</pre>
        </blockquote>
        <pre wrap="">OK, thanks for pointing to it.

Once you get something working, you can make a pull request so we can
review it using github portal.

It may be useful to have it working with its own group of destination
and export to kamailio.cfg some functions to check if a destination is
active or not, change it state, etc ... It can be used when routing to a
single pstn gateway or other media servers to reply directly from
kamailio, not to forward and wait for timeout.

Cheers,
Daniel
</pre>
        <blockquote type="cite">
          <pre wrap="">

</pre>
          <blockquote type="cite">
            <pre wrap="">Cheers,
Daniel

-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
          </blockquote>
          <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
        </blockquote>
        <pre wrap="">
-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>