UniMRCP  1.3.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-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_server_agent.h 2252 2014-11-21 02:45:15Z achaloyan@gmail.com $
17  */
18 
19 #ifndef MRCP_SOFIASIP_SERVER_AGENT_H
20 #define MRCP_SOFIASIP_SERVER_AGENT_H
21 
22 /**
23  * @file mrcp_sofiasip_server_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 
31 
32 /** Sofia-SIP config declaration */
34 
35 /** Sofia-SIP config */
37  /** Local IP address to bind to */
38  char *local_ip;
39  /** External (NAT) IP address */
40  char *ext_ip;
41  /** Local port to bind to */
42  apr_port_t local_port;
43  /** SIP user name */
44  char *user_name;
45  /** User agent name */
47  /** SDP origin */
48  char *origin;
49  /** SIP transport */
50  char *transport;
51  /** Force destination IP address. Should be used only in case
52  SDP contains incorrect connection address (local IP address behind NAT) */
54  /** SIP T1 timer */
55  apr_size_t sip_t1;
56  /** SIP T2 timer */
57  apr_size_t sip_t2;
58  /** SIP T4 timer */
59  apr_size_t sip_t4;
60  /** SIP T1x64 timer */
61  apr_size_t sip_t1x64;
62  /** Print out SIP messages to the console */
64  /** Dump SIP messages to the specified file */
66 };
67 
68 /**
69  * Create Sofia-SIP signaling agent.
70  */
72 
73 /**
74  * Allocate Sofia-SIP config.
75  */
77 
78 /**
79  * Initialize Sofia-SIP logger.
80  */
81 MRCP_DECLARE(apt_bool_t) mrcp_sofiasip_server_logger_init(const char *name, const char *level_str, apt_bool_t redirect);
82 
84 
85 #endif /* MRCP_SOFIASIP_SERVER_AGENT_H */