Offer media channels on inbound calls

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@672 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Mathieu Rene 2009-02-24 23:48:37 +00:00
parent f021750336
commit 22a817b1b2

View 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)
{
zap_log(ZAP_LOG_DEBUG, "%s", s);
}
#endif
{
zap_log(ZAP_LOG_DEBUG, "%s", s);
}
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);
}