i agree with the "search first" part
:)
On 8/22/06, Alexandr Dubovikov <shurik(a)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@iRC RusNet * mailto:shurik@start4.info
AD1-UANIC * ICQ: 122351182 *
http://www.start4.info
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org