00001 /* 00002 * $Id: pua_usrloc.h 4518 2008-07-28 15:39:28Z henningw $ 00003 * 00004 * pua_dialoginfo module - publish dialog-info from dialo module 00005 * 00006 * Copyright (C) 2006 Voice Sistem S.R.L. 00007 * Copyright (C) 2008 Klaus Darilion IPCom 00008 * 00009 * This file is part of Kamailio, a free SIP server. 00010 * 00011 * Kamailio is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version 00015 * 00016 * Kamailio is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License 00022 * along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00024 */ 00025 00026 #ifndef _PUA_DLGINFO_H 00027 #define _PUA_DLGINFO_H 00028 #include "../pua/pua_bind.h" 00029 00030 extern send_publish_t pua_send_publish; 00031 00032 void dialog_publish_multi(char *state, struct str_list* ruris, str *entity, str *peer, str *callid, 00033 unsigned int initiator, unsigned int lifetime, str *localtag, str *remotetag, 00034 str *localtarget, str *remotetarget, unsigned short do_pubruri_localcheck); 00035 00036 /* store the important data locally to avoid reading the data from the 00037 dlg_cell during the callback (as this could create a race condition 00038 if the dlg_cell gets meanwhile deleted) */ 00039 struct dlginfo_cell { 00040 str from_uri; 00041 str to_uri; 00042 str callid; 00043 str from_tag; 00044 /* str *to_tag; */ 00045 str req_uri; 00046 str from_contact; 00047 struct str_list* pubruris_caller; 00048 struct str_list* pubruris_callee; 00049 unsigned int lifetime; 00050 }; 00051 00052 00053 void free_dlginfo_cell(void *param); 00054 void free_str_list_all(struct str_list * del_current); 00055 00056 #endif
1.7.1