• 大小: 19.06MB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2024-01-30
  • 语言: 其他
  • 标签: pjsip  g729  MicroSIP  

资源简介

基于pjsip 的sip客户端 MicroSIP 的源代码,由于MicroSIP 开源的代码中不支持g729 ,特加入支持g729语音编码。vs2008编译通过,MicroSIP-3.12.1-src\Release 文件夹下microsip.exe 可以自己运行测试;

资源截图

代码片段和文件信息

/*
 * Copyright (c) 2014 Lukasz Marek
 *
 * Permission is hereby granted free of charge to any person obtaining a copy
 * of this software and associated documentation files (the “Software“) to deal
 * in the Software without restriction including without limitation the rights
 * to use copy modify merge publish distribute sublicense and/or sell
 * copies of the Software and to permit persons to whom the Software is
 * furnished to do so subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
 * IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
 * LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#include 
#include 
#include 

static const char *type_string(int type)
{
    switch (type) {
    case AVIO_ENTRY_DIRECTORY:
        return “
“;
    case AVIO_ENTRY_FILE:
        return ““;
    case AVIO_ENTRY_BLOCK_DEVICE:
        return ““;
    case AVIO_ENTRY_CHARACTER_DEVICE:
        return ““;
    case AVIO_ENTRY_NAMED_PIPE:
        return ““;
    case AVIO_ENTRY_SYMBOLIC_link:
        return “nk>“;
    case AVIO_ENTRY_SOCKET:
        return ““;
    case AVIO_ENTRY_SERVER:
        return ““;
    case AVIO_ENTRY_SHARE:
        return ““;
    case AVIO_ENTRY_WORKGROUP:
        return ““;
    case AVIO_ENTRY_UNKNOWN:
    default:
        break;
    }
    return ““;
}

int main(int argc char *argv[])
{
    const char *input_dir = NULL;
    AVIODirEntry *entry = NULL;
    AVIODirContext *ctx = NULL;
    int cnt ret;
    char filemode[4] uid_and_gid[20];

    av_log_set_level(AV_LOG_DEBUG);

    if (argc != 2) {
        fprintf(stderr “usage: %s input_dir\n“
                “API example program to show how to list files in directory “
                “accessed through AVIOContext.\n“ argv[0]);
        return 1;
    }
    input_dir = argv[1];

    /* register codecs and formats and other lavf/lavc components*/
    av_register_all();
    avformat_network_init();

    if ((ret = avio_open_dir(&ctx input_dir NULL)) < 0) {
        av_log(NULL AV_LOG_ERROR “Cannot open directory: %s.\n“ av_err2str(ret));
        goto fail;
    }

    cnt = 0;
    for (;;) {
        if ((ret = avio_read_dir(ctx &entry)) < 0) {
            av_log(NULL AV_LOG_ERROR “Cannot list directory: %s.\n“ av_err2str(ret));
            goto fail;
        }
        if (!entry)
            break;
        if (entry->fil

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      39499  2015-05-07 13:15  ffmpeg\doc\developer.html

     文件       4018  2015-05-07 13:15  ffmpeg\doc\examples\avio_list_dir.c

     文件       4060  2015-05-07 13:15  ffmpeg\doc\examples\avio_reading.c

     文件      19613  2015-05-07 13:15  ffmpeg\doc\examples\decoding_encoding.c

     文件      15302  2015-05-07 13:15  ffmpeg\doc\examples\demuxing_decoding.c

     文件       5746  2015-05-07 13:15  ffmpeg\doc\examples\extract_mvs.c

     文件      10088  2015-05-07 13:15  ffmpeg\doc\examples\filtering_audio.c

     文件       9065  2015-05-07 13:15  ffmpeg\doc\examples\filtering_video.c

     文件      11854  2015-05-07 13:15  ffmpeg\doc\examples\filter_audio.c

     文件       1705  2015-05-07 13:15  ffmpeg\doc\examples\Makefile

     文件       1941  2015-05-07 13:15  ffmpeg\doc\examples\metadata.c

     文件      21672  2015-05-07 13:15  ffmpeg\doc\examples\muxing.c

     文件      14302  2015-05-07 13:15  ffmpeg\doc\examples\qsvdec.c

     文件        888  2015-05-07 13:15  ffmpeg\doc\examples\README

     文件       5627  2015-05-07 13:15  ffmpeg\doc\examples\remuxing.c

     文件       8005  2015-05-07 13:15  ffmpeg\doc\examples\resampling_audio.c

     文件       5028  2015-05-07 13:15  ffmpeg\doc\examples\scaling_video.c

     文件      28540  2015-05-07 13:15  ffmpeg\doc\examples\transcode_aac.c

     文件      20517  2015-05-07 13:15  ffmpeg\doc\examples\transcoding.c

     文件      58780  2015-05-07 13:15  ffmpeg\doc\faq.html

     文件      12457  2015-05-07 13:15  ffmpeg\doc\fate.html

     文件    1108370  2015-05-07 13:15  ffmpeg\doc\ffmpeg-all.html

     文件      13793  2015-05-07 13:15  ffmpeg\doc\ffmpeg-bitstream-filters.html

     文件     167244  2015-05-07 13:15  ffmpeg\doc\ffmpeg-codecs.html

     文件      85741  2015-05-07 13:15  ffmpeg\doc\ffmpeg-devices.html

     文件     530744  2015-05-07 13:15  ffmpeg\doc\ffmpeg-filters.html

     文件     108784  2015-05-07 13:15  ffmpeg\doc\ffmpeg-formats.html

     文件      60453  2015-05-07 13:15  ffmpeg\doc\ffmpeg-protocols.html

     文件      12859  2015-05-07 13:15  ffmpeg\doc\ffmpeg-resampler.html

     文件       6993  2015-05-07 13:15  ffmpeg\doc\ffmpeg-scaler.html

............此处省略699个文件信息

评论

共有 条评论