path.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * $Id$
  3. *
  4. * Path handling for intermediate proxies.
  5. *
  6. * Copyright (C) 2006 Inode GmbH (Andreas Granig <[email protected]>)
  7. *
  8. * This file is part of Kamailio, a free SIP server.
  9. *
  10. * Kamailio is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version
  14. *
  15. * Kamailio is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. *
  24. */
  25. /*! \file
  26. * \brief Path :: Utilities
  27. *
  28. * \ingroup path
  29. * - Module: path
  30. */
  31. #ifndef MOD_PATH_H
  32. #define MOD_PATH_H
  33. #include "../../parser/msg_parser.h"
  34. /*
  35. * Prepend own uri to Path header
  36. */
  37. int add_path(struct sip_msg* _msg, char* _a, char* _b);
  38. /*
  39. * Prepend own uri to Path header and take care of given
  40. * user.
  41. */
  42. int add_path_usr(struct sip_msg* _msg, char* _a, char* _b);
  43. /*
  44. * Prepend own uri to Path header and append received address as
  45. * "received"-param to that uri.
  46. */
  47. int add_path_received(struct sip_msg* _msg, char* _a, char* _b);
  48. /*
  49. * Prepend own uri to Path header and append received address as
  50. * "received"-param to that uri and take care of given user.
  51. */
  52. int add_path_received_usr(struct sip_msg* _msg, char* _a, char* _b);
  53. /*
  54. * rr callback for setting dst-uri
  55. */
  56. void path_rr_callback(struct sip_msg *_m, str *r_param, void *cb_param);
  57. #endif /* MOD_PATH_H */