00001 /* 00002 * Copyright 2008-2010 Arsen Chaloyan 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 * 00016 * $Id: mrcp_sdp.h 1474 2010-02-07 20:51:47Z achaloyan $ 00017 */ 00018 00019 #ifndef MRCP_SDP_H 00020 #define MRCP_SDP_H 00021 00022 /** 00023 * @file mrcp_sdp.h 00024 * @brief MRCP SDP Transformations 00025 */ 00026 00027 #include "mrcp_sig_types.h" 00028 00029 APT_BEGIN_EXTERN_C 00030 00031 /** Generate SDP string by MRCP descriptor */ 00032 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); 00033 00034 /** Generate MRCP descriptor by SDP session */ 00035 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); 00036 00037 /** Generate SDP resource discovery string */ 00038 MRCP_DECLARE(apr_size_t) sdp_resource_discovery_string_generate(const char *ip, const char *origin, char *buffer, apr_size_t size); 00039 00040 APT_END_EXTERN_C 00041 00042 #endif /* MRCP_SDP_H */