UniMRCP
1.3.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
modules
mrcp-sofiasip
include
mrcp_sofiasip_client_agent.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_sofiasip_client_agent.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17
*/
18
19
#ifndef MRCP_SOFIASIP_CLIENT_AGENT_H
20
#define MRCP_SOFIASIP_CLIENT_AGENT_H
21
22
/**
23
* @file mrcp_sofiasip_client_agent.h
24
* @brief Implementation of MRCP Signaling Interface using Sofia-SIP
25
*/
26
27
#include <apr_network_io.h>
28
#include "
mrcp_sig_agent.h
"
29
30
APT_BEGIN_EXTERN_C
31
32
/** Sofia-SIP config declaration */
33
typedef
struct
mrcp_sofia_client_config_t
mrcp_sofia_client_config_t
;
34
35
/** Sofia-SIP config */
36
struct
mrcp_sofia_client_config_t
{
37
/** Local IP address */
38
char
*
local_ip
;
39
/** External (NAT) IP address */
40
char
*
ext_ip
;
41
/** Local SIP port */
42
apr_port_t
local_port
;
43
/** Local SIP user name */
44
char
*
local_user_name
;
45
/** User agent name */
46
char
*
user_agent_name
;
47
/** SDP origin */
48
char
*
origin
;
49
/** SIP transport */
50
char
*
transport
;
51
/** SIP T1 timer */
52
apr_size_t
sip_t1
;
53
/** SIP T2 timer */
54
apr_size_t
sip_t2
;
55
/** SIP T4 timer */
56
apr_size_t
sip_t4
;
57
/** SIP T1x64 timer */
58
apr_size_t
sip_t1x64
;
59
/** Print out SIP messages to the console */
60
apt_bool_t
tport_log
;
61
/** Dump SIP messages to the specified file */
62
char
*
tport_dump_file
;
63
};
64
65
/**
66
* Create Sofia-SIP signaling agent.
67
*/
68
MRCP_DECLARE
(
mrcp_sig_agent_t
*)
mrcp_sofiasip_client_agent_create
(const
char
*
id
,
mrcp_sofia_client_config_t
*config, apr_pool_t *pool);
69
70
/**
71
* Allocate Sofia-SIP config.
72
*/
73
MRCP_DECLARE
(
mrcp_sofia_client_config_t
*)
mrcp_sofiasip_client_config_alloc
(apr_pool_t *pool);
74
75
/**
76
* Initialize Sofia-SIP logger.
77
*/
78
MRCP_DECLARE
(
apt_bool_t
)
mrcp_sofiasip_client_logger_init
(const
char
*name, const
char
*level_str,
apt_bool_t
redirect);
79
80
APT_END_EXTERN_C
81
82
#endif
/* MRCP_SOFIASIP_CLIENT_AGENT_H */
Generated on Mon Feb 2 2015 19:41:39 for UniMRCP by
1.8.3.1