Ok, but how can i extract the value of first codec,

 

Actually i’m using codec_exist function, but this one only retrun TRUE or 
FALSE, but in case of true, i want know if it’s the first codec or no.

 

Regards

De : Users <[email protected]> au nom de Aqs Younas 
<[email protected]>
Répondre à : OpenSIPS users mailling list <[email protected]>
Date : jeudi 5 janvier 2017 à 11:35
À : OpenSIPS users mailling list <[email protected]>
Objet : Re: [OpenSIPS-Users] Codecs Order

 

media line(m) shows codec preference in order. 

m=audio 13406 RTP/AVP 8 0 101

8 for PCMA

0 for PCMU

 

On 5 January 2017 at 15:19, Alain Bieuzent <[email protected]> wrote:

Hi all,

 

Is there a way to know the order of the codecs?

 

For exemple in this SDP :

m=audio 13406 RTP/AVP 8 0 101

a=rtpmap:8 PCMA/8000

a=rtpmap:0 PCMU/8000

a=rtpmap:101 telephone-event/8000

 

How i know that the prefered codec is PCMA ?

 

Regards,

 

Alain


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 

_______________________________________________ Users mailing list 
[email protected] 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users 

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to