⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nua.c

📁 this is simple sip stack.
💻 C
字号:
/* * This file is part of the Sofia-SIP package * * Copyright (C) 2006 Nokia Corporation. * * Contact: Pekka Pessi <pekka.pessi@nokia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA * *//**@CFILE nua.c Sofia-SIP User Agent Library API Implementation. * * @author Pekka Pessi <Pekka.Pessi@nokia.com> * @author Kai Vehmanen <Kai.Vehmanen@nokia.com> * @author Pasi Rinne-Rahkola * * @date Created: Wed Feb 14 18:32:58 2001 ppessi * */#include "config.h"#include <sofia-sip/su_tag.h>#include <sofia-sip/su_tag_class.h>#include <sofia-sip/su_tagarg.h>#include <sofia-sip/su_tag_io.h>#define SU_LOG (nua_log)#include <sofia-sip/su_debug.h>#define SU_ROOT_MAGIC_T   struct nua_s#define SU_MSG_ARG_T      struct event_s#define NUA_SAVED_EVENT_T su_msg_t *#include <sofia-sip/sip_status.h>#include <sofia-sip/sip_header.h>#include <sofia-sip/nta.h>#include "sofia-sip/nua.h"#include "sofia-sip/nua_tag.h"#include "nua_stack.h"#include <stddef.h>#include <stdlib.h>#include <string.h>#include <stdio.h>#include <assert.h>/* From AM_INIT/AC_INIT in our "config.h" */char const nua_version[] = VERSION;/**@var NUA_DEBUG * * Environment variable determining the debug log level for @b nua module. * * The NUA_DEBUG environment variable is used to determine the debug logging * level for @b nua module. The default level is 3. *  * @sa <su_debug.h>, nua_log, SOFIA_DEBUG */extern char const NUA_DEBUG[];#ifndef SU_DEBUG#define SU_DEBUG 3#endif/**Debug log for @b nua module.  *  * The nua_log is the log object used by @b nua module. The level of * #nua_log is set using #NUA_DEBUG environment variable. */su_log_t nua_log[] = { SU_LOG_INIT("nua", "NUA_DEBUG", SU_DEBUG) };/**Create a NUA agent. * * This function creates a Sofia-SIP User Agent stack object (nua) and * initializes its parameters by given tagged values. * * @param root            Pointer to a root object * @param callback        Pointer to event callback function * @param magic           Pointer to callback context * @param tag,爒alue,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -