Disabled calling SRegInfoShow on Windows
This commit is contained in:
parent
01eb776469
commit
b92ad06b98
|
@ -707,10 +707,12 @@ void sngisdn_rcv_q921_ind(BdMngmt *status)
|
|||
}
|
||||
void sngisdn_rcv_q931_ind(InMngmt *status)
|
||||
{
|
||||
#ifndef WIN32
|
||||
if (status->t.usta.alarm.cause == 287) {
|
||||
sngisdn_get_memory_info();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
switch (status->t.usta.alarm.event) {
|
||||
case LCM_EVENT_UP:
|
||||
|
|
|
@ -1086,8 +1086,15 @@ ftdm_status_t sngisdn_check_free_ids(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;
|
||||
SRegInfoShow(S_REG, &availmen);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue