Maybe you should try to fine $ which is end of the string and append
after it. If does not work, then a new extension is required.
Daniel
On 08/02/07 14:02, Kuddusi wrote:
Thank you, but there is nothing to find. Or How can I
find end of the
body?
I want to add the line at the end of the body.
Kuddusi.
----- Original Message ----- From: "Daniel-Constantin Mierla"
<daniel(a)voice-system.ro>
To: "Kuddusi" <kuddusic(a)gmail.com>
Cc: <users(a)openser.org>
Sent: Thursday, August 02, 2007 12:49 PM
Subject: Re: [OpenSER-Users] Adding an attribute to SDP
Hello,
search_append() function from textops module should help.
Daniel
On 08/01/07 17:09, Kuddusi wrote:
>
> Hi,
>
> How can I add a header to SDP?
>
> Actually what I want to do is, whenever an INVITE with SDP comes,
> search for a ptime and if ptime can not be found, add a default line
> to SDP body.
>
> Like
>
> if (has_body()){
>
> if (!search_body("ptime") {
>
> # like below
>
> à # append_body(“a=ptime:20”);
>
> }
>
> }
>
> Thanks,
>
> *Kuddusi CIFTCIBASI*
>
> **Next Generation Networks
>
> *Teletek Telecommunication Services Corp.*
>
> **Ayazma Dere Cad. Akşit Plaza No:12/1**
> **Fulya, Beşiktaş , **34349, **www.teletek.net******
>
> **Tel : +90 212 227 7030******
>
> **Direkt: +90 212 310 2233**
> **Fax : +90 212 227 8700**
>
> Email: _kuddusi.ciftcibasi(a)teletek.net_
>
> Skype : realkudu
>
> MSN : kuddusic(a)hotmail.com <mailto:kuddusic@hotmail.com>
>
> Yahoo: kuddusi.
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
>
http://openser.org/cgi-bin/mailman/listinfo/users
>