inital checkin of unimrcp svn revision 985 from http://unimrcp.googlecode.com/svn/trunk/

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13790 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2009-06-16 22:31:19 +00:00
1 parent ec90221783
commit da925bddf8
349 files changed
+47866

No files matched your search

@@ -0,0 +1,40 @@
/*
* Copyright 2008 Arsen Chaloyan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __MRCP_SDP_H__
#define __MRCP_SDP_H__
/**
* @file mrcp_sdp.h
* @brief MRCP SDP Transformations
*/
#include "mrcp_sig_types.h"
APT_BEGIN_EXTERN_C
/** Generate SDP string by MRCP descriptor */
MRCP_DECLARE(apr_size_t) sdp_string_generate_by_mrcp_descriptor(char *buffer, apr_size_t size, const mrcp_session_descriptor_t *descriptor, apt_bool_t offer);
/** Generate MRCP descriptor by SDP session */
MRCP_DECLARE(mrcp_session_descriptor_t*) mrcp_descriptor_generate_by_sdp_session(const sdp_session_t *sdp, const char *force_destination_ip, apr_pool_t *pool);
/** Generate SDP resource discovery string */
MRCP_DECLARE(apr_size_t) sdp_resource_discovery_string_generate(const char *ip, const char *origin, char *buffer, apr_size_t size);
APT_END_EXTERN_C
#endif /*__MRCP_SDP_H__*/
@@ -0,0 +1,75 @@
/*
* Copyright 2008 Arsen Chaloyan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __MRCP_SOFIASIP_CLIENT_AGENT_H__
#define __MRCP_SOFIASIP_CLIENT_AGENT_H__
/**
* @file mrcp_sofiasip_client_agent.h
* @brief Implementation of MRCP Signaling Interface using Sofia-SIP
*/
#include <apr_network_io.h>
#include "mrcp_sig_agent.h"
APT_BEGIN_EXTERN_C
/** Sofia-SIP config declaration */
typedef struct mrcp_sofia_client_config_t mrcp_sofia_client_config_t;
/** Sofia-SIP config */
struct mrcp_sofia_client_config_t {
/** Local IP address */
char *local_ip;
/** External (NAT) IP address */
char *ext_ip;
/** Local SIP port */
apr_port_t local_port;
/** Local SIP user name */
char *local_user_name;
/** Remote IP address */
char *remote_ip;
/** Remote SIP port */
apr_port_t remote_port;
/** Remote SIP user name */
char *remote_user_name;
/** Force destination ip address. Should be used only in case
SDP contains incorrect connection address (local IP address behind NAT) */
apt_bool_t force_destination;
/** User agent name */
char *user_agent_name;
/** SDP origin */
char *origin;
/** SIP transport */
char *transport;
};
/**
* Create Sofia-SIP signaling agent.
*/
MRCP_DECLARE(mrcp_sig_agent_t*) mrcp_sofiasip_client_agent_create(mrcp_sofia_client_config_t *config, apr_pool_t *pool);
/**
* Allocate Sofia-SIP config.
*/
MRCP_DECLARE(mrcp_sofia_client_config_t*) mrcp_sofiasip_client_config_alloc(apr_pool_t *pool);
APT_END_EXTERN_C
#endif /*__MRCP_SOFIASIP_CLIENT_AGENT_H__*/
@@ -0,0 +1,68 @@
/*
* Copyright 2008 Arsen Chaloyan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __MRCP_SOFIASIP_SERVER_AGENT_H__
#define __MRCP_SOFIASIP_SERVER_AGENT_H__
/**
* @file mrcp_sofiasip_server_agent.h
* @brief Implementation of MRCP Signaling Interface using Sofia-SIP
*/
#include <apr_network_io.h>
#include "mrcp_sig_agent.h"
APT_BEGIN_EXTERN_C
/** Sofia-SIP config declaration */
typedef struct mrcp_sofia_server_config_t mrcp_sofia_server_config_t;
/** Sofia-SIP config */
struct mrcp_sofia_server_config_t {
/** Local IP address to bind to */
char *local_ip;
/** External (NAT) IP address */
char *ext_ip;
/** Local port to bind to */
apr_port_t local_port;
/** SIP user name */
char *user_name;
/** User agent name */
char *user_agent_name;
/** SDP origin */
char *origin;
/** SIP transport */
char *transport;
/** Force destination ip address. Should be used only in case
SDP contains incorrect connection address (local IP address behind NAT) */
apt_bool_t force_destination;
};
/**
* Create Sofia-SIP signaling agent.
*/
MRCP_DECLARE(mrcp_sig_agent_t*) mrcp_sofiasip_server_agent_create(mrcp_sofia_server_config_t *config, apr_pool_t *pool);
/**
* Allocate Sofia-SIP config.
*/
MRCP_DECLARE(mrcp_sofia_server_config_t*) mrcp_sofiasip_server_config_alloc(apr_pool_t *pool);
APT_END_EXTERN_C
#endif /*__MRCP_SOFIASIP_SERVER_AGENT_H__*/