Difference between revisions of "Many calls are transcoded"
Line 50: | Line 50: | ||
[[File:freeswitch_transcoded_calls_good2.jpg]] | [[File:freeswitch_transcoded_calls_good2.jpg]] | ||
Note that sometimes some calls will be transcoded, because Freeswitch sometimes is unable to negotiate same codec between Originator and Terminator. This is ok, because it will be very low number of not transcoded calls. | Note that sometimes some calls will be transcoded, because Freeswitch sometimes is unable to negotiate same codec between Originator and Terminator. This is ok, because it will be a very low number of not transcoded calls. |
Latest revision as of 13:08, 7 October 2018
Codec transcoding takes a lot of CPU cycles.
Quick Solution
Make sure ALL devices (OP and TP) have these settings set to Yes:
Note that OP devices will have only first option available and TP devices only second option available. Mark them YES anyway.
Detailed problem description
We have a problem
Example in which you can see that 284 calls takes 287.9% of CPU for Freeswitch:
In the Call List page you can observe which calls are transcoded. They are marked by RED icon:
Solution
Go through all your devices (OP and TP) and set these options:
These options will force Freeswitch to use same codecs for both legs 99% of the time. Detailed description here: M2 Codec Negotiation
Note that only OP devices will have only first option available and only TP devices only second option available. Mark them YES anyway.
Also make sure your devices have same codecs available.
This is just an example how it could look like. On your system you can have different codecs enabled:
Problem gone
As you can see after codecs are negotiated properly and call is not transcoded anymore, we have big imrpovement on the Freeswitch CPU usage. In this example CPU load decreased 3 times!
And in the Call List we see many green icons, which means that calls are not transcoded:
Note that sometimes some calls will be transcoded, because Freeswitch sometimes is unable to negotiate same codec between Originator and Terminator. This is ok, because it will be a very low number of not transcoded calls.