UniMRCP  1.7.0
mrcp_sofiasip_client_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_CLIENT_AGENT_H
18 #define MRCP_SOFIASIP_CLIENT_AGENT_H
19 
20 /**
21  * @file mrcp_sofiasip_client_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 */
36  char *local_ip;
37  /** External (NAT) IP address */
38  char *ext_ip;
39  /** Local SIP port */
40  apr_port_t local_port;
41  /** Local SIP user name */
43  /** User agent name */
45  /** SDP origin */
46  char *origin;
47  /** SIP transport */
48  char *transport;
49  /** SIP T1 timer */
50  apr_size_t sip_t1;
51  /** SIP T2 timer */
52  apr_size_t sip_t2;
53  /** SIP T4 timer */
54  apr_size_t sip_t4;
55  /** SIP T1x64 timer */
56  apr_size_t sip_t1x64;
57  /** SIP timer C */
58  apr_size_t sip_timer_c;
59  /** Print out SIP messages to the console */
61  /** Dump SIP messages to the specified file */
63 };
64 
65 /**
66  * Create Sofia-SIP signaling agent.
67  */
69 
70 /**
71  * Allocate Sofia-SIP config.
72  */
74 
76 
77 #endif /* MRCP_SOFIASIP_CLIENT_AGENT_H */
#define MRCP_DECLARE(type)
Definition: mrcp.h:40
Abstract MRCP Signaling Agent.
#define APT_END_EXTERN_C
Definition: apt.h:38
apr_size_t sip_t4
Definition: mrcp_sofiasip_client_agent.h:54
int apt_bool_t
Definition: apt.h:57
char * local_ip
Definition: mrcp_sofiasip_client_agent.h:36
char * user_agent_name
Definition: mrcp_sofiasip_client_agent.h:44
char * ext_ip
Definition: mrcp_sofiasip_client_agent.h:38
Definition: mrcp_sofiasip_client_agent.h:34
apr_size_t sip_timer_c
Definition: mrcp_sofiasip_client_agent.h:58
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
mrcp_sig_agent_t * mrcp_sofiasip_client_agent_create(const char *id, mrcp_sofia_client_config_t *config, apr_pool_t *pool)
apr_size_t sip_t2
Definition: mrcp_sofiasip_client_agent.h:52
Definition: mrcp_sig_agent.h:52
apr_size_t sip_t1
Definition: mrcp_sofiasip_client_agent.h:50
char * tport_dump_file
Definition: mrcp_sofiasip_client_agent.h:62
apr_size_t sip_t1x64
Definition: mrcp_sofiasip_client_agent.h:56
apr_port_t local_port
Definition: mrcp_sofiasip_client_agent.h:40
char * transport
Definition: mrcp_sofiasip_client_agent.h:48
char * origin
Definition: mrcp_sofiasip_client_agent.h:46
char * local_user_name
Definition: mrcp_sofiasip_client_agent.h:42
apt_bool_t tport_log
Definition: mrcp_sofiasip_client_agent.h:60
mrcp_sofia_client_config_t * mrcp_sofiasip_client_config_alloc(apr_pool_t *pool)