mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
[mod_portaudio] CF_AUDIO flag is not set
This commit is contained in:
parent
b93eea73ef
commit
ea6a34aa7d
@ -282,6 +282,14 @@ SWITCH_STANDARD_API(pa_cmd);
|
||||
*/
|
||||
static switch_status_t channel_on_init(switch_core_session_t *session)
|
||||
{
|
||||
switch_channel_t *channel;
|
||||
|
||||
if (session) {
|
||||
if ((channel = switch_core_session_get_channel(session))) {
|
||||
switch_channel_set_flag(channel, CF_AUDIO);
|
||||
}
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
@ -1267,6 +1275,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
||||
|
||||
switch_set_flag_locked(tech_pvt, TFLAG_OUTBOUND);
|
||||
switch_channel_set_state(channel, CS_INIT);
|
||||
switch_channel_set_flag(channel, CF_AUDIO);
|
||||
return SWITCH_CAUSE_SUCCESS;
|
||||
|
||||
error:
|
||||
|
Loading…
x
Reference in New Issue
Block a user