dlg_req_within.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2007 Voice System SRL
  5. *
  6. * This file is part of Kamailio, a free SIP server.
  7. *
  8. * Kamailio is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version
  12. *
  13. * Kamailio is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. *
  22. * History:
  23. * --------
  24. * 2007-07-10 initial version (ancuta)
  25. */
  26. #ifndef DLG_REQUEST_WITHIN_H
  27. #define DLG_REQUEST_WITHIN_H
  28. #include "dlg_hash.h"
  29. #include "../../modules/tm/tm_load.h"
  30. #define MAX_FWD "70"
  31. #define MAX_SIZE 256
  32. #define RCV_BYE_REPLY 1
  33. #define MI_DIALOG_NOT_FOUND "Requested Dialog not found"
  34. #define MI_DIALOG_NOT_FOUND_LEN (sizeof(MI_DIALOG_NOT_FOUND)-1)
  35. #define MI_DLG_OPERATION_ERR "Operation failed"
  36. #define MI_DLG_OPERATION_ERR_LEN (sizeof(MI_DLG_OPERATION_ERR)-1)
  37. extern struct tm_binds d_tmb;
  38. //extern int dlg_enable_stats;
  39. //extern stat_var * active_dlgs;
  40. struct mi_root * mi_terminate_dlg(struct mi_root *cmd_tree, void *param );
  41. dlg_t* build_dlg_t(struct dlg_cell * cell, int dir);
  42. int free_tm_dlg(dlg_t *td);
  43. int dlg_bye(struct dlg_cell *dlg, str *hdrs, int side);
  44. int dlg_bye_all(struct dlg_cell *dlg, str *hdrs);
  45. int w_api_terminate_dlg(str *call_id, str *from_tag, str *to_tag, str *hdrs, str* reason);
  46. int w_api_lookup_terminate_dlg(unsigned int h_entry, unsigned int h_id, str *hdrs);
  47. int dlg_terminate(struct dlg_cell *dlg, struct sip_msg* msg, str *reason, int side, str *extra_headers);
  48. #endif