<p>Hi, I've added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state.<br>
The feature is the same of probing_threshold but it counts the number of successful ping before moving back a destination from 'inactive' to 'active' state.<br>
Hope it could be useful to someone else. I've also edited README file inserting the new parameter.<br>
I've corrected somewhere in the code some misspelled words and changed some variables (I used the same counter for failure and successful requests, these features are mutually exclusive).</p>

<p>Please note: I've developed and tested this feature over release 4.1.6</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/alezzandro/kamailio master</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/kamailio/kamailio/pull/12'>https://github.com/kamailio/kamailio/pull/12</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state.</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x2</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x3</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x3</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x5</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x6</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x7</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x8</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x9</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x10</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x10</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x10</li>
  <li>Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state. x11</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/12/files#diff-0">modules/dispatcher/README</a>
    (118)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/12/files#diff-1">modules/dispatcher/config.c</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/12/files#diff-2">modules/dispatcher/config.h</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/12/files#diff-3">modules/dispatcher/dispatch.c</a>
    (84)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/12/files#diff-4">modules/dispatcher/dispatch.h</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/12/files#diff-5">modules/dispatcher/dispatcher.c</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/12/files#diff-6">modules/dispatcher/doc/dispatcher_admin.xml</a>
    (26)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/12.patch'>https://github.com/kamailio/kamailio/pull/12.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/12.diff'>https://github.com/kamailio/kamailio/pull/12.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/12">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZemCWby3eT3PGaSkDpYnFwb7g6dGks5naXOygaJpZM4DLopV.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/12"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>