12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- /*
- * Copyright 2008-2014 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.
- *
- * $Id: mrcp_sofiasip_client_agent.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
- */
- #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;
- /** User agent name */
- char *user_agent_name;
- /** SDP origin */
- char *origin;
- /** SIP transport */
- char *transport;
- /** SIP T1 timer */
- apr_size_t sip_t1;
- /** SIP T2 timer */
- apr_size_t sip_t2;
- /** SIP T4 timer */
- apr_size_t sip_t4;
- /** SIP T1x64 timer */
- apr_size_t sip_t1x64;
- /** Print out SIP messages to the console */
- apt_bool_t tport_log;
- /** Dump SIP messages to the specified file */
- char *tport_dump_file;
- };
- /**
- * Create Sofia-SIP signaling agent.
- */
- MRCP_DECLARE(mrcp_sig_agent_t*) mrcp_sofiasip_client_agent_create(const char *id, 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);
- /**
- * Initialize Sofia-SIP logger.
- */
- MRCP_DECLARE(apt_bool_t) mrcp_sofiasip_client_logger_init(const char *name, const char *level_str, apt_bool_t redirect);
- APT_END_EXTERN_C
- #endif /* MRCP_SOFIASIP_CLIENT_AGENT_H */
|