mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
fix missing ringback silence calculation spot in switch_ivr_originate
This commit is contained in:
parent
65b231f5a4
commit
ba76388cb2
@ -1201,9 +1201,7 @@ static switch_status_t setup_ringback(originate_global_t *oglobals, originate_st
|
||||
ringback->silence = atoi(c);
|
||||
}
|
||||
}
|
||||
if (ringback->silence <= 0) {
|
||||
ringback->silence = 400;
|
||||
}
|
||||
SWITCH_IVR_VERIFY_SILENCE_DIVISOR(ringback->silence);
|
||||
} else {
|
||||
switch_buffer_create_dynamic(&ringback->audio_buffer, 512, 1024, 0);
|
||||
switch_buffer_set_loops(ringback->audio_buffer, -1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user