Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
370d0ff8
Commit
370d0ff8
authored
14 years ago
by
Simon Morlat
Browse files
Options
Download
Patches
Plain Diff
workaround for stupid phone using "G729A" submime type.
parent
8a5c5626
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
coreapi/offeranswer.c
+4
-1
coreapi/offeranswer.c
with
4 additions
and
1 deletion
coreapi/offeranswer.c
+
4
−
1
View file @
370d0ff8
...
...
@@ -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
){
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets