提交 b92ad06b authored 作者: David Yat Sin's avatar David Yat Sin

Disabled calling SRegInfoShow on Windows

上级 01eb7764
...@@ -707,10 +707,12 @@ void sngisdn_rcv_q921_ind(BdMngmt *status) ...@@ -707,10 +707,12 @@ void sngisdn_rcv_q921_ind(BdMngmt *status)
} }
void sngisdn_rcv_q931_ind(InMngmt *status) void sngisdn_rcv_q931_ind(InMngmt *status)
{ {
#ifndef WIN32
if (status->t.usta.alarm.cause == 287) { if (status->t.usta.alarm.cause == 287) {
sngisdn_get_memory_info(); sngisdn_get_memory_info();
return; return;
} }
#endif
switch (status->t.usta.alarm.event) { switch (status->t.usta.alarm.event) {
case LCM_EVENT_UP: case LCM_EVENT_UP:
......
...@@ -1086,8 +1086,15 @@ ftdm_status_t sngisdn_check_free_ids(void) ...@@ -1086,8 +1086,15 @@ ftdm_status_t sngisdn_check_free_ids(void)
void sngisdn_get_memory_info(void) void sngisdn_get_memory_info(void)
{ {
#ifdef WIN32
/* SRegInfoShow is not formally supported by Trillium with Windows */
ftdm_log(FTDM_LOG_WARNING, "SRegInfoShow not supported on Windows\n");
#else
/* SRegInfoShow is not formally supported by Trillium in Linux either, but
* it seems like its working fine so far */
U32 availmen = 0; U32 availmen = 0;
SRegInfoShow(S_REG, &availmen); SRegInfoShow(S_REG, &availmen);
#endif
return; return;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论