UniMRCP  1.7.0
mrcp_unirtsp_server_agent.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 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 
17 #ifndef MRCP_UNIRTSP_SERVER_AGENT_H
18 #define MRCP_UNIRTSP_SERVER_AGENT_H
19 
20 /**
21  * @file mrcp_unirtsp_server_agent.h
22  * @brief Implementation of MRCP Signaling Interface using UniRTSP
23  */
24 
25 #include <apr_network_io.h>
26 #include "mrcp_sig_agent.h"
27 
29 
30 /** UniRTSP config declaration */
32 
33 /** UniRTSP config */
35  /** Local IP address to bind to */
36  char *local_ip;
37  /** Local port to bind to */
38  apr_port_t local_port;
39 
40  /** Resource location */
42  /** SDP origin */
43  char *origin;
44 
45  /** Map of the MRCP resource names */
46  apr_table_t *resource_map;
47 
48  /** Number of max RTSP connections */
50 
51  /** Inactivity timeout for an RTSP connection [sec] */
52  apr_size_t inactivity_timeout;
53 
54  /** Force destination IP address. Should be used only in case
55  SDP contains incorrect connection address (local IP address behind NAT) */
57 };
58 
59 /**
60  * Create UniRTSP signaling agent.
61  */
62 MRCP_DECLARE(mrcp_sig_agent_t*) mrcp_unirtsp_server_agent_create(const char *id, rtsp_server_config_t *config, apr_pool_t *pool);
63 
64 /**
65  * Allocate UniRTSP config.
66  */
68 
70 
71 #endif /* MRCP_UNIRTSP_SERVER_AGENT_H */
#define MRCP_DECLARE(type)
Definition: mrcp.h:40
apt_bool_t force_destination
Definition: mrcp_unirtsp_server_agent.h:56
Abstract MRCP Signaling Agent.
apr_size_t max_connection_count
Definition: mrcp_unirtsp_server_agent.h:49
#define APT_END_EXTERN_C
Definition: apt.h:38
int apt_bool_t
Definition: apt.h:57
apr_port_t local_port
Definition: mrcp_unirtsp_server_agent.h:38
char * resource_location
Definition: mrcp_unirtsp_server_agent.h:41
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
char * local_ip
Definition: mrcp_unirtsp_server_agent.h:36
mrcp_sig_agent_t * mrcp_unirtsp_server_agent_create(const char *id, rtsp_server_config_t *config, apr_pool_t *pool)
Definition: mrcp_sig_agent.h:52
Definition: mrcp_unirtsp_server_agent.h:34
rtsp_server_config_t * mrcp_unirtsp_server_config_alloc(apr_pool_t *pool)
apr_table_t * resource_map
Definition: mrcp_unirtsp_server_agent.h:46
char * origin
Definition: mrcp_unirtsp_server_agent.h:43
apr_size_t inactivity_timeout
Definition: mrcp_unirtsp_server_agent.h:52