UniMRCP  1.5.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mrcp_sofiasip_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_SOFIASIP_SERVER_AGENT_H
18 #define MRCP_SOFIASIP_SERVER_AGENT_H
19 
20 /**
21  * @file mrcp_sofiasip_server_agent.h
22  * @brief Implementation of MRCP Signaling Interface using Sofia-SIP
23  */
24 
25 #include <apr_network_io.h>
26 #include "mrcp_sig_agent.h"
27 
29 
30 /** Sofia-SIP config declaration */
32 
33 /** Sofia-SIP config */
35  /** Local IP address to bind to */
36  char *local_ip;
37  /** External (NAT) IP address */
38  char *ext_ip;
39  /** Local port to bind to */
40  apr_port_t local_port;
41  /** SIP user name */
42  char *user_name;
43  /** User agent name */
45  /** SDP origin */
46  char *origin;
47  /** SIP transport */
48  char *transport;
49  /** Force destination IP address. Should be used only in case
50  SDP contains incorrect connection address (local IP address behind NAT) */
52  /** SIP T1 timer */
53  apr_size_t sip_t1;
54  /** SIP T2 timer */
55  apr_size_t sip_t2;
56  /** SIP T4 timer */
57  apr_size_t sip_t4;
58  /** SIP T1x64 timer */
59  apr_size_t sip_t1x64;
60  /** SIP Sessione-Expires */
61  apr_size_t session_expires;
62  /** SIP Min-SE */
63  apr_size_t min_session_expires;
64  /** Print out SIP messages to the console */
66  /** Dump SIP messages to the specified file */
68 };
69 
70 /**
71  * Create Sofia-SIP signaling agent.
72  */
74 
75 /**
76  * Allocate Sofia-SIP config.
77  */
79 
81 
82 #endif /* MRCP_SOFIASIP_SERVER_AGENT_H */
#define MRCP_DECLARE(type)
Definition: mrcp.h:40
char * user_agent_name
Definition: mrcp_sofiasip_server_agent.h:44
apt_bool_t tport_log
Definition: mrcp_sofiasip_server_agent.h:65
char * origin
Definition: mrcp_sofiasip_server_agent.h:46
char * transport
Definition: mrcp_sofiasip_server_agent.h:48
Abstract MRCP Signaling Agent.
apt_bool_t force_destination
Definition: mrcp_sofiasip_server_agent.h:51
#define APT_END_EXTERN_C
Definition: apt.h:38
char * ext_ip
Definition: mrcp_sofiasip_server_agent.h:38
apr_size_t min_session_expires
Definition: mrcp_sofiasip_server_agent.h:63
int apt_bool_t
Definition: apt.h:57
mrcp_sofia_server_config_t * mrcp_sofiasip_server_config_alloc(apr_pool_t *pool)
mrcp_sig_agent_t * mrcp_sofiasip_server_agent_create(const char *id, mrcp_sofia_server_config_t *config, apr_pool_t *pool)
apr_port_t local_port
Definition: mrcp_sofiasip_server_agent.h:40
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
apr_size_t session_expires
Definition: mrcp_sofiasip_server_agent.h:61
apr_size_t sip_t1x64
Definition: mrcp_sofiasip_server_agent.h:59
Definition: mrcp_sig_agent.h:52
apr_size_t sip_t4
Definition: mrcp_sofiasip_server_agent.h:57
apr_size_t sip_t1
Definition: mrcp_sofiasip_server_agent.h:53
char * local_ip
Definition: mrcp_sofiasip_server_agent.h:36
char * user_name
Definition: mrcp_sofiasip_server_agent.h:42
apr_size_t sip_t2
Definition: mrcp_sofiasip_server_agent.h:55
Definition: mrcp_sofiasip_server_agent.h:34
char * tport_dump_file
Definition: mrcp_sofiasip_server_agent.h:67