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

<h2>branch: master updated</h2>
<pre>
       via: ae4b2873b0e56090658953f503157166825b66bc (commit)
      from: be370d45ebf5bc7fc329ef0b1abd48c2e38c8e9b (commit)


</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: David Yat Sin
comments: 
chlog: freetdm: isdn: fix for 5ESS call clearing procedures

<span style="color: #000080; font-weight: bold">diff --git a/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c b/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c</span>
<span style="color: #000080; font-weight: bold">index df528ae..97984fb 100644</span>
<span style="color: #A00000">--- a/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c</span>
<span style="color: #00A000">+++ b/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c</span>
<span style="color: #800080; font-weight: bold">@@ -683,8 +683,8 @@ static ftdm_status_t ftdm_sangoma_isdn_process_state_change(ftdm_channel_t *ftdm</span>
                                 if (!sngisdn_test_flag(sngisdn_info, FLAG_SENT_PROCEED)) {
                                         /* By default, we do not send a progress indicator in the proceed */
                                         ftdm_sngisdn_progind_t prog_ind = {SNGISDN_PROGIND_LOC_USER, SNGISDN_PROGIND_DESCR_INVALID};
<span style="color: #A00000">-                                        </span>
                                         sngisdn_set_flag(sngisdn_info, FLAG_SENT_PROCEED);
<span style="color: #00A000">+                                        </span>
                                         sngisdn_snd_proceed(ftdmchan, prog_ind);
                                 }
                         }
<span style="color: #800080; font-weight: bold">@@ -800,6 +800,15 @@ static ftdm_status_t ftdm_sangoma_isdn_process_state_change(ftdm_channel_t *ftdm</span>
                                                 /* If we never received a PROCEED/ALERT/PROGRESS/CONNECT on an outgoing call, we need to send release instead of disconnect */
                                                 sngisdn_snd_release(ftdmchan, 0);
                                                 break;
<span style="color: #00A000">+                                        case FTDM_CHANNEL_STATE_PROCEED:</span>
<span style="color: #00A000">+                                                if (!ftdm_test_flag(ftdmchan, FTDM_CHANNEL_OUTBOUND) &amp;&amp;</span>
<span style="color: #00A000">+                                                        ((sngisdn_span_data_t*)(ftdmchan-&gt;span-&gt;signal_data))-&gt;switchtype == SNGISDN_SWITCH_5ESS) {</span>
<span style="color: #00A000">+                                                        </span>
<span style="color: #00A000">+                                                        /* When using 5ESS, if the user wants to clear an inbound call, the correct procedure is to send a PROGRESS with in-band info available, and play tones. Then send a DISCONNECT. If we reached this point, it means user did not try to play-tones, so send a RELEASE because remote side does not expect DISCONNECT in state 3 */</span>
<span style="color: #00A000">+                                                        sngisdn_snd_release(ftdmchan, 0);</span>
<span style="color: #00A000">+                                                        break;</span>
<span style="color: #00A000">+                                                }</span>
<span style="color: #00A000">+                                                /* fall-through */</span>
                                         default:
                                                 sngisdn_snd_disconnect(ftdmchan);
                                                 break;
</pre></div>
========================================================================<pre>

Summary of changes:
 .../ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c  |   11 ++++++++++-
 1 files changed, 10 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>