[Serusers] preferred order of codecs?

Alexandr Dubovikov shurik at start4.info
Tue Aug 22 15:46:03 CEST 2006


On Tue, Aug 22, 2006 at 08:20:10PM +0700, Andrey Kouprianov wrote:
> What if SIP client on the other end does not support that codec? Of
> course, I understand that u and a-law are mandatory for every SIP
> client, but let's pretend that some clients just support 1 or maximum
> 2 codes. This substituting stuff is like playing with fire :P

in this case subst will not works, because we are looking at " 8" payload.
anyway he can at first make a search and after it make a replace (subst) :-)



> 
>  Andrey.
> 
> >
> >subst(/^m=audio(.*)RTP\/AVP(.*) 8/m=audio\1RTP\/AVP 8\2/i);
				^^^^

Wbr,
-- 
Alexandr Dubovikov * baron at iRC RusNet * mailto:shurik at start4.info
    AD1-UANIC      *  ICQ: 122351182  *  http://www.start4.info



More information about the sr-users mailing list