Support codec G726 for Airoha
asterisk-chan-voicemngr uses old G726-32 RTP playload type '2' which is different from the type '80' used by Airoha DSP.
RFC3551 has re-defined RTP payload type of G726-32 to "dynamic", and payload type '2' as "reserved".
-
Refactory the codec related functions as table-driven.
-
Retrieve the RTP payload type from Airoha endpoint (provided by libvoice-airoha) via ubus call endpt codecs (attribute "rtp_payload").
Received RTP payload type is applied, otherwise old one.