<h1>Project "FreeSWITCH Source" received a push.</h1>
<h2>branch: master updated</h2>
<pre>
via: e1c17cffe0bfbf7c50a02acc9384679ef283a96b (commit)
from: 00bba5790b9deeb34c7c40c289ac66ff59c9b39b (commit)
</pre>= COMMIT LOG ===========================================================
<div class="highlight"><pre>committer: Moises Silva
comments:
freetdm: use the problem freetdm define to set wp alarms
<span style="color: #000080; font-weight: bold">diff --git a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c</span>
<span style="color: #000080; font-weight: bold">index 3b384cd..b3d1fe6 100644</span>
<span style="color: #A00000">--- a/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c</span>
<span style="color: #00A000">+++ b/libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c</span>
<span style="color: #800080; font-weight: bold">@@ -1242,7 +1242,7 @@ static FIO_GET_ALARMS_FUNCTION(wanpipe_get_alarms)</span>
                        /* there is a bug in wanpipe where alarms were not properly set when they should be
                         * on at application startup, until that is fixed we check the link status here too */
                        ftdm_channel_command(ftdmchan, FTDM_COMMAND_GET_LINK_STATUS, &sangoma_status);
<span style="color: #A00000">-                        ftdmchan->alarm_flags = sangoma_status == FTDM_HW_LINK_DISCONNECTED ? 1 : 0;</span>
<span style="color: #00A000">+                        ftdmchan->alarm_flags = sangoma_status == FTDM_HW_LINK_DISCONNECTED ? FTDM_ALARM_RED : FTDM_ALARM_NONE;</span>
                        ftdm_log_chan(ftdmchan, FTDM_LOG_DEBUG, "Link status is %d\n", sangoma_status);
                }
        }
<span style="color: #000080; font-weight: bold">diff --git a/libs/freetdm/src/include/freetdm.h b/libs/freetdm/src/include/freetdm.h</span>
<span style="color: #000080; font-weight: bold">index aed4054..588dc31 100644</span>
<span style="color: #A00000">--- a/libs/freetdm/src/include/freetdm.h</span>
<span style="color: #00A000">+++ b/libs/freetdm/src/include/freetdm.h</span>
<span style="color: #800080; font-weight: bold">@@ -838,11 +838,11 @@ typedef enum {</span>
/*! \brief FreeTDM supported hardware alarms. */
typedef enum {
        FTDM_ALARM_NONE = 0,
<span style="color: #A00000">-        FTDM_ALARM_RED = (1 << 1),</span>
<span style="color: #A00000">-        FTDM_ALARM_YELLOW = (1 << 2),</span>
<span style="color: #A00000">-        FTDM_ALARM_RAI = (1 << 3),</span>
<span style="color: #A00000">-        FTDM_ALARM_BLUE = (1 << 4),</span>
<span style="color: #A00000">-        FTDM_ALARM_AIS = (1 << 5),</span>
<span style="color: #00A000">+        FTDM_ALARM_RED = (1 << 0),</span>
<span style="color: #00A000">+        FTDM_ALARM_YELLOW = (1 << 1),</span>
<span style="color: #00A000">+        FTDM_ALARM_RAI = (1 << 2),</span>
<span style="color: #00A000">+        FTDM_ALARM_BLUE = (1 << 3),</span>
<span style="color: #00A000">+        FTDM_ALARM_AIS = (1 << 4),</span>
        FTDM_ALARM_GENERAL = (1 << 30)
} ftdm_alarm_flag_t;
</pre></div>
========================================================================<pre>
Summary of changes:
.../src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c | 2 +-
libs/freetdm/src/include/freetdm.h | 10 +++++-----
2 files changed, 6 insertions(+), 6 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>