From: Mathieu Rene Date: Tue, 24 Feb 2009 23:48:37 +0000 (+0000) Subject: Offer media channels on inbound calls X-Git-Tag: v1.0.6~38^3~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22a817b1b26995b09a3875c955a4d2ecfe450d2a;p=thirdparty%2Ffreeswitch.git Offer media channels on inbound calls git-svn-id: http://svn.openzap.org/svn/openzap/trunk@672 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/freetdm/src/ozmod/ozmod_libpri/ozmod_libpri.c b/libs/freetdm/src/ozmod/ozmod_libpri/ozmod_libpri.c index 317e0d8ad1..5ee468a458 100644 --- a/libs/freetdm/src/ozmod/ozmod_libpri/ozmod_libpri.c +++ b/libs/freetdm/src/ozmod/ozmod_libpri/ozmod_libpri.c @@ -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); }