]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Disabled calling SRegInfoShow on Windows
authorDavid Yat Sin <dyatsin@sangoma.com>
Wed, 1 Jun 2011 15:54:45 +0000 (11:54 -0400)
committerDavid Yat Sin <dyatsin@sangoma.com>
Wed, 1 Jun 2011 15:54:45 +0000 (11:54 -0400)
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_rcv.c
libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c

index d1b202e77d13fc845fa00c2dbc690750e6160211..879b1491a9bedcee5101d8f37dcb4fc3f180396e 100644 (file)
@@ -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:
index 62ff830b20e987fdf28acae12ab3cb967ea0a8e7..a148130b74754610558402667c054f7575aa50d1 100644 (file)
@@ -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;
 }