提交 2fd70942 authored 作者: Konrad Hammel's avatar Konrad Hammel 提交者: Moises Silva

-> working...

上级 024ce241
...@@ -175,7 +175,7 @@ static void handle_entsi_alarm(sng_alrm_t alarm) ...@@ -175,7 +175,7 @@ static void handle_entsi_alarm(sng_alrm_t alarm)
case (LCM_EVENT_TIMEOUT): case (LCM_EVENT_TIMEOUT):
/* this event always has the circuit value embedded */ /* this event always has the circuit value embedded */
SS7_WARN("[ISUP] Timer %d expired on CIC %d\n", SS7_WARN("[ISUP] Timer %d expired on CIC %d\n",
(alarm.eventParm[1] > 0 ) ? alarm.eventParm[1] : alarm.eventParm[8], alarm.eventParm[8],
g_ftdm_sngss7_data.cfg.isupCircuit[alarm.eventParm[0]].cic); g_ftdm_sngss7_data.cfg.isupCircuit[alarm.eventParm[0]].cic);
break; break;
/**************************************************************************/ /**************************************************************************/
......
...@@ -172,7 +172,7 @@ void sngss7_con_ind(uint32_t suInstId, uint32_t spInstId, uint32_t circuit, SiCo ...@@ -172,7 +172,7 @@ void sngss7_con_ind(uint32_t suInstId, uint32_t spInstId, uint32_t circuit, SiCo
break; break;
/**************************************************************************/ /**************************************************************************/
case (FTDM_CHANNEL_STATE_DIALING): /* glare */ case (FTDM_CHANNEL_STATE_DIALING): /* glare */
SS7_ERROR("Got IAM in DIALING state...glare... queueing incoming call\n"); SS7_ERROR("Got IAM in DIALING state...glare...queueing incoming call\n");
/* the flag the channel as having a collision */ /* the flag the channel as having a collision */
sngss7_set_flag(sngss7_info, FLAG_GLARE); sngss7_set_flag(sngss7_info, FLAG_GLARE);
...@@ -186,7 +186,10 @@ void sngss7_con_ind(uint32_t suInstId, uint32_t spInstId, uint32_t circuit, SiCo ...@@ -186,7 +186,10 @@ void sngss7_con_ind(uint32_t suInstId, uint32_t spInstId, uint32_t circuit, SiCo
break; break;
/**************************************************************************/ /**************************************************************************/
default: /* should not have gotten an IAM while in this state */ default: /* should not have gotten an IAM while in this state */
SS7_ERROR("Got IAM in an invalid state!\n"); SS7_ERROR("Got IAM in an invalid state (%s) on span=%d, chan=%d!\n",
ftdm_channel_state2str(ftdmchan->state),
ftdmchan->physical_span_id,
ftdmchan->physical_chan_id);
/* move the state of the channel to RESTART to force a reset */ /* move the state of the channel to RESTART to force a reset */
ftdm_set_state_locked(ftdmchan, FTDM_CHANNEL_STATE_RESTART); ftdm_set_state_locked(ftdmchan, FTDM_CHANNEL_STATE_RESTART);
...@@ -824,30 +827,11 @@ static ftdm_status_t handle_reattempt(uint32_t suInstId, uint32_t spInstId, uint ...@@ -824,30 +827,11 @@ static ftdm_status_t handle_reattempt(uint32_t suInstId, uint32_t spInstId, uint
return FTDM_FAIL; return FTDM_FAIL;
}; };
/* glare, throw the flag, go to down state*/
switch (ftdmchan->state) { sngss7_set_flag(sngss7_info, FLAG_GLARE);
/**************************************************************************/
case FTDM_CHANNEL_STATE_DIALING:
/* glare, go to down state*/
ftdm_set_state_locked(ftdmchan, FTDM_CHANNEL_STATE_DOWN); ftdm_set_state_locked(ftdmchan, FTDM_CHANNEL_STATE_DOWN);
break;
/**************************************************************************/
default:
/* fuck...this shouldn't happen */
SS7_ERROR("Received reattempt indication on CIC %d in invalid state %s\n",
sngss7_info->circuit->cic,
ftdm_channel_state2str(ftdmchan->state));
/* throw the channel into reset */
sngss7_set_flag(sngss7_info, FLAG_RESET_TX);
ftdm_set_state_locked(ftdmchan, FTDM_CHANNEL_STATE_RESTART);
break;
/**************************************************************************/
}
/* unlock the channel again before we exit */ /* unlock the channel again before we exit */
ftdm_mutex_unlock(ftdmchan->mutex); ftdm_mutex_unlock(ftdmchan->mutex);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论