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:
parent
499ccc1925
commit
60b5da016b
|
@ -59,22 +59,17 @@ static void s_pri_error(char *s)
|
||||||
static void s_pri_error(struct pri *pri, char *s)
|
static void s_pri_error(struct pri *pri, char *s)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
||||||
zap_log(ZAP_LOG_ERROR, "%s", s);
|
zap_log(ZAP_LOG_ERROR, "%s", s);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
static void s_pri_message(char *s)
|
static void s_pri_message(char *s)
|
||||||
{
|
|
||||||
zap_log(ZAP_LOG_DEBUG, "%s", s);
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
static void s_pri_message(struct pri *pri, char *s)
|
static void s_pri_message(struct pri *pri, char *s)
|
||||||
{
|
|
||||||
zap_log(ZAP_LOG_DEBUG, "%s", s);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
|
zap_log(ZAP_LOG_DEBUG, "%s", s);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static int parse_debug(const char *in)
|
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);
|
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_HANGUP);
|
||||||
}
|
}
|
||||||
} else if (call) {
|
} 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 {
|
} else {
|
||||||
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_RESTART);
|
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);
|
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_HANGUP);
|
||||||
}
|
}
|
||||||
} else if (call) {
|
} 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 {
|
} else {
|
||||||
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_RESTART);
|
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_RESTART);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue