sofia_glue_execute_sql_now(profile, &sql, SWITCH_TRUE);
switch_channel_presence(b_channel, "unknown", "idle", NULL);
-
}
-
+ switch_channel_set_flag(tech_pvt->channel, CF_SLA_INTERCEPT);
tech_pvt->caller_profile->destination_number = switch_core_sprintf(tech_pvt->caller_profile->pool,
"%sanswer,intercept:%s", codec_str, bridge_uuid);
} else {
if (channel->direction == SWITCH_CALL_DIRECTION_OUTBOUND) {
call_info_state = "progressing";
} else {
- call_info_state = "alerting";
+ if (switch_channel_test_flag(channel, CF_SLA_INTERCEPT)) {
+ call_info_state = "idle";
+ } else {
+ call_info_state = "alerting";
+ }
}
}