Disabled calling SRegInfoShow on Windows

This commit is contained in:
David Yat Sin 2011-06-01 11:54:45 -04:00
parent 01eb776469
commit b92ad06b98
2 changed files with 9 additions and 0 deletions

View File

@ -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:

View File

@ -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;
} }