FreeSWITCH API Documentation  1.7.0
switch_sdp.c
Go to the documentation of this file.
1 
2 #include <switch.h>
3 #include <sofia-sip/sdp.h>
4 
5 sdp_connection_t *sdp_media_connections(sdp_media_t const *m)
6 {
7  if (m) {
8  if (m->m_connections)
9  return m->m_connections;
10  if (m->m_session)
11  return m->m_session->sdp_connection;
12  }
13  return NULL;
14 }
15 
16 #include <su_alloc.c>
17 #include <su_errno.c>
18 #include <su_string.c>
19 #include <sdp_parse.c>
20 #ifdef _MSC_VER
21 #define longlong __int64
22 #include <strtoull.c>
23 #endif
24 
25 /* For Emacs:
26  * Local Variables:
27  * mode:c
28  * indent-tabs-mode:t
29  * tab-width:4
30  * c-basic-offset:4
31  * End:
32  * For VIM:
33  * vim:set softtabstop=4 shiftwidth=4 tabstop=4 noet:
34  */
sdp_connection_t * sdp_media_connections(sdp_media_t const *m)
Definition: switch_sdp.c:5
Main Library Header.