[Serusers] preferred order of codecs?

Atle Samuelsen clona at cyberhouse.no
Tue Aug 22 17:24:30 CEST 2006


Hi guys,

I dont think subst would do anyways. because you need to recalculate the
content-length. 

Ser doesBnt (as far as I know) recount content length automaticly. you
need to use some function wich is not exported to the config.

-Atle

* Andrey Kouprianov <andrey.kouprianov at gmail.com> [060822 15:56]:
> i agree with the "search first" part :)
> 
> On 8/22/06, Alexandr Dubovikov <shurik at start4.info> wrote:
> >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
> >
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 



More information about the sr-users mailing list