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

<h2>branch: master updated</h2>
<pre>
       via: beb829053945926447ba0f970faf1a3326d83981 (commit)
      from: 41dc6f46db0140b171d5ae71bfe923e7605f0cff (commit)


</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: David Yat Sin
comments: 
chlog: freetdm: isdn: fix for 4ESS 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 97984fb..5702b72 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">@@ -801,12 +801,14 @@ static ftdm_status_t ftdm_sangoma_isdn_process_state_change(ftdm_channel_t *ftdm</span>
                                                 sngisdn_snd_release(ftdmchan, 0);
                                                 break;
                                         case FTDM_CHANNEL_STATE_PROCEED:
<span style="color: #A00000">-                                                if (!ftdm_test_flag(ftdmchan, FTDM_CHANNEL_OUTBOUND) &amp;&amp;</span>
<span style="color: #A00000">-                                                        ((sngisdn_span_data_t*)(ftdmchan-&gt;span-&gt;signal_data))-&gt;switchtype == SNGISDN_SWITCH_5ESS) {</span>
<span style="color: #00A000">+                                                if (!ftdm_test_flag(ftdmchan, FTDM_CHANNEL_OUTBOUND)) {</span>
<span style="color: #00A000">+                                                        if (((sngisdn_span_data_t*)(ftdmchan-&gt;span-&gt;signal_data))-&gt;switchtype == SNGISDN_SWITCH_4ESS ||</span>
<span style="color: #00A000">+                                                            ((sngisdn_span_data_t*)(ftdmchan-&gt;span-&gt;signal_data))-&gt;switchtype == SNGISDN_SWITCH_5ESS) {</span>
                                                         
<span style="color: #A00000">-                                                        /* 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: #A00000">-                                                        sngisdn_snd_release(ftdmchan, 0);</span>
<span style="color: #A00000">-                                                        break;</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>
                                                 }
                                                 /* fall-through */
                                         default:
</pre></div>
========================================================================<pre>

Summary of changes:
 .../ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c  |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 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>