As long as you are NOT adding any new entries into SDP content, but just arranging them in preferred order, I dont think recalculating content length is strictly necessary.
On 8/22/06, Atle Samuelsen clona@cyberhouse.no wrote:
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@gmail.com [060822 15:56]:
i agree with the "search first" part :)
On 8/22/06, Alexandr Dubovikov shurik@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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers