]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Offer media channels on inbound calls
authorMathieu Rene <mrene@avgs.ca>
Tue, 24 Feb 2009 23:48:37 +0000 (23:48 +0000)
committerMathieu Rene <mrene@avgs.ca>
Tue, 24 Feb 2009 23:48:37 +0000 (23:48 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@672 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/ozmod/ozmod_libpri/ozmod_libpri.c

index 317e0d8ad117995ca5779acd2250a689d919fe69..5ee468a458475e4715830844fc542e348a55caac 100644 (file)
@@ -59,22 +59,17 @@ static void s_pri_error(char *s)
 static void s_pri_error(struct pri *pri, char *s)
 #endif
 {
-
        zap_log(ZAP_LOG_ERROR, "%s", s);
-
 }
 
 #ifdef WIN32
 static void s_pri_message(char *s)
-{
-       zap_log(ZAP_LOG_DEBUG, "%s", s);
-}
 #else
 static void s_pri_message(struct pri *pri, char *s)
+#endif
 {
-       zap_log(ZAP_LOG_DEBUG, "%s", s);
+               zap_log(ZAP_LOG_DEBUG, "%s", s);
 }
-#endif
 
 
 static int parse_debug(const char *in)
@@ -357,7 +352,7 @@ static __inline__ void state_advance(zap_channel_t *zchan)
                                        zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_HANGUP);
                                }
                        } else if (call) {
-                               pri_progress(isdn_data->spri.pri, call, zchan->chan_id, 0);
+                               pri_progress(isdn_data->spri.pri, call, zchan->chan_id, 1);
                        } else {
                                zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_RESTART);
                        }
@@ -371,7 +366,7 @@ static __inline__ void state_advance(zap_channel_t *zchan)
                                        zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_HANGUP);
                                }
                        } else if (call) {
-                               pri_proceeding(isdn_data->spri.pri, call, zchan->chan_id, 0);
+                               pri_proceeding(isdn_data->spri.pri, call, zchan->chan_id, 1);
                        } else {
                                zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_RESTART);
                        }