1 /* 2 * pua_dialoginfo module - publish dialog-info from dialo module 3 * 4 * Copyright (C) 2006 Voice Sistem S.R.L. 5 * Copyright (C) 2008 Klaus Darilion IPCom 6 * 7 * This file is part of Kamailio, a free SIP server. 8 * 9 * Kamailio is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version 13 * 14 * Kamailio is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 */ 23 24 #ifndef _PUA_DLGINFO_H 25 #define _PUA_DLGINFO_H 26 #include "../pua/pua_bind.h" 27 28 extern send_publish_t pua_send_publish; 29 30 void dialog_publish_multi(char *state, struct str_list* ruris, str *entity, str *peer, str *callid, 31 unsigned int initiator, unsigned int lifetime, str *localtag, str *remotetag, 32 str *localtarget, str *remotetarget, unsigned short do_pubruri_localcheck); 33 34 /* store the important data locally to avoid reading the data from the 35 * dlg_cell during the callback (as this could create a race condition 36 * if the dlg_cell gets meanwhile deleted) */ 37 struct dlginfo_cell { 38 str from_uri; 39 str to_uri; 40 str callid; 41 str from_tag; 42 /* str *to_tag; */ 43 str req_uri; 44 str from_contact; 45 struct str_list* pubruris_caller; 46 struct str_list* pubruris_callee; 47 unsigned int lifetime; 48 }; 49 50 51 void free_dlginfo_cell(void *param); 52 void free_str_list_all(struct str_list * del_current); 53 54 #endif 55