[OpenSER-Users] Adding an attribute to SDP

Kuddusi kuddusic at gmail.com
Wed Aug 1 16:09:25 CEST 2007


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. Aksit Plaza No:12/1
Fulya, Besiktas , 34349, www.teletek.net

 

Tel : +90 212 227 7030

Direkt: +90 212 310 2233
Fax : +90 212 227 8700

Email:  kuddusi.ciftcibasi at teletek.net

 

Skype : realkudu

MSN : kuddusic at hotmail.com

Yahoo: kuddusi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070801/d45cd956/attachment.htm 


More information about the Users mailing list