[OpenSER-Users] Adding a header to SDP

Kuddusi CIFTCIBASI kciftcibasi at teletek.net
Wed Aug 1 12:34:07 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 header 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 at teletek.net

 

Skype : realkudu

MSN : kuddusic at hotmail.com <mailto:kuddusic at hotmail.com> 

Yahoo: kuddusi.

 



Yasal Uyari:
Bu e-posta'nin içerdigi bilgiler (ekleri de dahil olmak üzere) gizlidir. Teletek Telekomünikasyon Hizmetleri A.Ş. onayi olmaksizin içerigi kopyalanamaz, üçüncü kişilere açiklanamaz veya iletilemez . Bu mesajin gönderilmek istendigi kişi degilseniz (ya da bu e-posta'yi yanlişlikla aldiysaniz), lütfen yollayan kişiyi haberdar ediniz ve mesaji sisteminizden derhal siliniz. Teletek bu mesajin içerdigi bilgilerin dogrulugu veya eksiksiz oldugu konusunda bir garanti vermemektedir. Bu nedenle bilgilerin ne şekilde olursa olsun içeriginden, iletilmesinden, alinmasindan, saklanmasindan sorumlu degildir. Bu mesajin içerigi yazarina ait olup, Teletek'in görüşlerini içermeyebilir.Disclaimer:
This e-mail (including any attachments) may contain confidential and/or privileged information. Copying, disclosure or distribution of the material in this e-mail without Teletek Telekomünikasyon Hizmetleri A.Ş.'s authority is strictly forbidden. If you are not the intended recipient (or have received this e-mail in error), please notify the sender and delete it from your system immediately. Teletek makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. Any opinions expressed in this message are those of the author and may not necessarily reflect the opinions of Teletek.

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


More information about the Users mailing list