<h1>Project "FreeSWITCH Source" received a push.</h1>

<h2>branch: master updated</h2>
<pre>
       via: 687d39f259cf62bea5c6508acd76d8732dcc0e11 (commit)
      from: c18835d3f919c7ba260dfa0e61254fb305850518 (commit)


</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Moises Silva
comments: 
freetdm: ftmod_analog - Add timeout parameter for dial tone. 0 means not waiting for dial tone.

<span style="color: #000080; font-weight: bold">diff --git a/libs/freetdm/conf/freetdm.conf.xml b/libs/freetdm/conf/freetdm.conf.xml</span>
<span style="color: #000080; font-weight: bold">index 43197af..7d5de5a 100644</span>
<span style="color: #A00000">--- a/libs/freetdm/conf/freetdm.conf.xml</span>
<span style="color: #00A000">+++ b/libs/freetdm/conf/freetdm.conf.xml</span>
<span style="color: #800080; font-weight: bold">@@ -54,6 +54,9 @@ with the signaling protocols that you can run on top of your I/O interfaces.</span>
                         &lt;!-- whether you want to wait for caller id --&gt;
                         &lt;param name=&quot;enable-callerid&quot; value=&quot;true&quot;/&gt;
 
<span style="color: #00A000">+                        &lt;!-- How much to wait for dial tone (0 if you just want to dial out immediately without waiting for dial tone) --&gt;</span>
<span style="color: #00A000">+                        &lt;!--&lt;param name=&quot;wait-dialtone-timeout&quot; value=&quot;5000&quot;/&gt;--&gt;</span>
<span style="color: #00A000">+</span>
                         &lt;!-- whether you want to enable callwaiting feature --&gt;
                         &lt;!--&lt;param name=&quot;callwaiting&quot; value=&quot;true&quot;/&gt;--&gt;
 
<span style="color: #000080; font-weight: bold">diff --git a/libs/freetdm/mod_freetdm/mod_freetdm.c b/libs/freetdm/mod_freetdm/mod_freetdm.c</span>
<span style="color: #000080; font-weight: bold">index 4dc6cfc..b746f51 100755</span>
<span style="color: #A00000">--- a/libs/freetdm/mod_freetdm/mod_freetdm.c</span>
<span style="color: #00A000">+++ b/libs/freetdm/mod_freetdm/mod_freetdm.c</span>
<span style="color: #800080; font-weight: bold">@@ -2790,6 +2790,7 @@ static switch_status_t load_config(void)</span>
                         const char *hangup_polarity = &quot;false&quot;;
                         int polarity_delay = 600;
                         int callwaiting = 1;
<span style="color: #00A000">+                        int dialtone_timeout = 5000;</span>
 
                         uint32_t span_id = 0, to = 0, max = 0;
                         ftdm_span_t *span = NULL;
<span style="color: #800080; font-weight: bold">@@ -2830,6 +2831,8 @@ static switch_status_t load_config(void)</span>
                                         tonegroup = val;
                                 } else if (!strcasecmp(var, &quot;digit_timeout&quot;) || !strcasecmp(var, &quot;digit-timeout&quot;)) {
                                         digit_timeout = val;
<span style="color: #00A000">+                                } else if (!strcasecmp(var, &quot;wait-dialtone-timeout&quot;)) {</span>
<span style="color: #00A000">+                                        dialtone_timeout = atoi(val);</span>
                                 } else if (!strcasecmp(var, &quot;context&quot;)) {
                                         context = val;
                                 } else if (!strcasecmp(var, &quot;dialplan&quot;)) {
<span style="color: #800080; font-weight: bold">@@ -2930,6 +2933,7 @@ static switch_status_t load_config(void)</span>
                                                                    &quot;hangup_polarity_reverse&quot;, hangup_polarity,
                                                                    &quot;polarity_delay&quot;, &amp;polarity_delay,
                                                                    &quot;callwaiting&quot;, &amp;callwaiting,
<span style="color: #00A000">+                                                                   &quot;wait_dialtone_timeout&quot;, &amp;dialtone_timeout,</span>
                                                                    FTDM_TAG_END) != FTDM_SUCCESS) {
                                 ftdm_log(FTDM_LOG_ERROR, &quot;Error configuring FreeTDM analog span %s\n&quot;, ftdm_span_get_name(span));
                                 continue;
<span style="color: #000080; font-weight: bold">diff --git a/libs/freetdm/src/ftmod/ftmod_analog/ftmod_analog.c b/libs/freetdm/src/ftmod/ftmod_analog/ftmod_analog.c</span>
<span style="color: #000080; font-weight: bold">index 818f1c5..d25d38f 100644</span>
<span style="color: #A00000">--- a/libs/freetdm/src/ftmod/ftmod_analog/ftmod_analog.c</span>
<span style="color: #00A000">+++ b/libs/freetdm/src/ftmod/ftmod_analog/ftmod_analog.c</span>
<span style="color: #800080; font-weight: bold">@@ -182,7 +182,7 @@ static FIO_SIG_CONFIGURE_FUNCTION(ftdm_analog_configure_span)</span>
         const char *tonemap = &quot;us&quot;;
         const char *hotline = &quot;&quot;;
         uint32_t digit_timeout = 10;
<span style="color: #A00000">-        uint32_t wait_dialtone_timeout = 30000;</span>
<span style="color: #00A000">+        uint32_t wait_dialtone_timeout = 5000;</span>
         uint32_t max_dialstr = MAX_DTMF;
         uint32_t polarity_delay = 600;
         const char *var, *val;
</pre></div>
========================================================================<pre>

Summary of changes:
 libs/freetdm/conf/freetdm.conf.xml                 |    3 +++
 libs/freetdm/mod_freetdm/mod_freetdm.c             |    4 ++++
 libs/freetdm/src/ftmod/ftmod_analog/ftmod_analog.c |    2 +-
 3 files changed, 8 insertions(+), 1 deletions(-)
</pre>
<p>this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email<br />
For more info, see <a href="http://blog.chomperstomp.com/?p=630">http://blog.chomperstomp.com/?p=630</a>
-- <br />
FreeSWITCH Source</p>