forked from Mirrors/freeswitch
CNG frames need to have codec set too
This commit is contained in:
parent
d52a254d91
commit
36f812d938
@ -410,6 +410,7 @@ cng:
|
|||||||
data[1] = 0;
|
data[1] = 0;
|
||||||
tech_pvt->read_frame.datalen = 2;
|
tech_pvt->read_frame.datalen = 2;
|
||||||
tech_pvt->read_frame.flags = SFF_CNG;
|
tech_pvt->read_frame.flags = SFF_CNG;
|
||||||
|
tech_pvt->read_frame.codec = &tech_pvt->read_codec;
|
||||||
|
|
||||||
switch_core_timer_sync(&tech_pvt->timer);
|
switch_core_timer_sync(&tech_pvt->timer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user