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

📄 sql_module.h

📁 partysip 插件开发 用于实时在线管理
💻 H
字号:
/*  The NOTIFY plugin is a GPL plugin for partysip.  Copyright (C) 2002 2003  Aymeric MOIZARD - <jack@atosc.org>    The NOTIFY plugin is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License as published by  the Free Software Foundation; either version 2 of the License, or  (at your option) any later version.    The NOTIFY plugin 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 General Public License for more details.  You should have received a copy of the GNU General Public License  along with Foobar; if not, write to the Free Software  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*/#ifndef __SQL_MODULE_NOTIFY_H__#define __SQL_MODULE_NOTIFY_H__#include <sys/time.h>#include <osip2/osip.h>typedef struct publication {  int mid;  char username[64];  char domain[128];  char sip_etag[64];  char if_match[64];  int  exp_time;  char ctype[32];  char body[4096];} publication_t;int module_notify_get_publication(publication_t *pub, char *event);typedef struct subscription {  int mid;  char l_username[64];  char l_domain[128];  char l_tag[64];  int  l_cseq;  char r_username[64];  char r_domain[128];  int  r_cseq;  char event[64];  int  exp_time;  char notify_template[4096];} subscription_t;int module_notify_initialize();int module_notify_authorize_user(osip_from_t *fr, osip_uri_t *requri, char *eventp);int module_notify_dialog_exist(char *to_tag, char *event);void module_notify_delete_subscription(char *to_tag, osip_from_t *fr, osip_to_t *to, char *eventp);int module_notify_store_dialog(osip_message_t *sub, osip_message_t *response);int module_notify_update_notify_template(subscription_t *sub);int module_notify_get_notify_template(char *tag_to, char *event, subscription_t *sub);int module_notify_get_notify_template_after_publish(publication_t *pub, char *event, subscription_t *sub);int module_notify_send_all_notification(publication_t *pub, char *event);int build_notify(subscription_t *sub, publication_t *pub);#endif

⌨️ 快捷键说明

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