UniMRCP  1.3.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mrcp_unirtsp_sdp.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2014 Arsen Chaloyan
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Id: mrcp_unirtsp_sdp.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17  */
18 
19 #ifndef MRCP_UNIRTSP_SDP_H
20 #define MRCP_UNIRTSP_SDP_H
21 
22 /**
23  * @file mrcp_unirtsp_sdp.h
24  * @brief MRCP RTSP SDP Transformations
25  */
26 
28 
30 
31 /** Generate MRCP descriptor by RTSP request */
33  const rtsp_message_t *request,
34  const char *force_destination_ip,
35  const apr_table_t *resource_map,
36  apr_pool_t *pool,
37  su_home_t *home);
38 
39 /** Generate MRCP descriptor by RTSP response */
41  const rtsp_message_t *request,
42  const rtsp_message_t *response,
43  const char *force_destination_ip,
44  const apr_table_t *resource_map,
45  apr_pool_t *pool,
46  su_home_t *home);
47 
48 /** Generate RTSP request by MRCP descriptor */
50  const mrcp_session_descriptor_t *descriptor,
51  const apr_table_t *resource_map,
52  apr_pool_t *pool);
53 /** Generate RTSP response by MRCP descriptor */
55  const rtsp_message_t *request,
56  const mrcp_session_descriptor_t *descriptor,
57  const apr_table_t *resource_map,
58  apr_pool_t *pool);
59 
60 /** Generate RTSP resource discovery request */
62  const char *resource_name,
63  const apr_table_t *resource_map,
64  apr_pool_t *pool);
65 
66 /** Generate resource discovery descriptor by RTSP response */
68  const rtsp_message_t *request,
69  const rtsp_message_t *response,
70  const apr_table_t *resource_map,
71  apr_pool_t *pool,
72  su_home_t *home);
73 
74 /** Generate RTSP resource discovery response */
76  const rtsp_message_t *request,
77  const char *ip,
78  const char *origin,
79  apr_pool_t *pool);
80 
81 
82 /** Get MRCP resource name by RTSP resource name */
83 MRCP_DECLARE(const char*) mrcp_name_get_by_rtsp_name(const apr_table_t *resource_map, const char *rtsp_name);
84 /** Get RTSP resource name by MRCP resource name */
85 MRCP_DECLARE(const char*) rtsp_name_get_by_mrcp_name(const apr_table_t *resource_map, const char *mrcp_name);
86 
88 
89 #endif /* MRCP_UNIRTSP_SDP_H */