mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 22:28:07 +00:00
workaround for stupid phone using "G729A" submime type.
This commit is contained in:
parent
8a5c5626e3
commit
370d0ff8b0
1 changed files with 4 additions and 1 deletions
|
|
@ -29,7 +29,10 @@ static PayloadType * find_payload_type_best_match(const MSList *l, const Payload
|
|||
|
||||
for (elem=l;elem!=NULL;elem=elem->next){
|
||||
pt=(PayloadType*)elem->data;
|
||||
if (strcasecmp(pt->mime_type,refpt->mime_type)==0 && pt->clock_rate==refpt->clock_rate){
|
||||
/* the compare between G729 and G729A is for some stupid uncompliant phone*/
|
||||
if (strcasecmp(pt->mime_type,refpt->mime_type)==0 ||
|
||||
((strcasecmp(pt->mime_type, "G729") == 0 && strcasecmp(refpt->mime_type, "G729A") == 0 ))
|
||||
&& pt->clock_rate==refpt->clock_rate){
|
||||
candidate=pt;
|
||||
/*good candidate, check fmtp for H264 */
|
||||
if (strcasecmp(pt->mime_type,"H264")==0){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue