osip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [osip-dev] Need help regarding documentation


From: Aymeric Moizard
Subject: Re: [osip-dev] Need help regarding documentation
Date: Fri, 26 Jun 2015 09:22:09 +0200



2015-06-24 13:19 GMT+02:00 Priyaranjan Nayak <address@hidden>:
Hi All,

Hi!
 
I am new to the OSIP library. What is the API to extract the SDP' attribute parameter by using osip library ?

Sorry for the delay!

Here is an example to search "rtcp-mux" in a sdp_media.
In the sample, sdp_answer is of type sdp_message_t

   sdp_media_t *med_answer = NULL;
   int pos;

   pos = 0;
   med_answer = (sdp_media_t *) osip_list_get (&sdp_answer->m_medias, pos);

   pos = 0;
   while (!osip_list_eol (&med_answer->a_attributes, pos)) {
      sdp_attribute_t *attr;

      attr = (sdp_attribute_t *) osip_list_get (&med_answer->a_attributes, pos);
      if (osip_strcasecmp (attr->a_att_field, "rtcp-mux") == 0) {
        return 0;
      }
      pos++;
    }

Hope this helps!
Regards
Aymeric

 

Thanks
Priyaranjan

_______________________________________________
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev




--

reply via email to

[Prev in Thread] Current Thread [Next in Thread]