options.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * $Id$
  3. *
  4. * Options Reply Module
  5. *
  6. * Copyright (C) 2001-2003 FhG Fokus
  7. *
  8. * This file is part of SIP-router, a free SIP server.
  9. *
  10. * SIP-router 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. * SIP-router 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 siputils/options.c
  26. * \brief SIP-utils :: Options reply modules
  27. * \ingroup siputils
  28. * Module: \ref siputils
  29. */
  30. #ifndef OPT_RPL_H
  31. #define OPT_RPL_H
  32. #include "../../str.h"
  33. #include "../../parser/msg_parser.h"
  34. #include "../../modules/sl/sl.h"
  35. #define ACPT_STR "Accept: "
  36. #define ACPT_STR_LEN 8
  37. #define ACPT_ENC_STR "Accept-Encoding: "
  38. #define ACPT_ENC_STR_LEN 17
  39. #define ACPT_LAN_STR "Accept-Language: "
  40. #define ACPT_LAN_STR_LEN 17
  41. #define SUPT_STR "Supported: "
  42. #define SUPT_STR_LEN 11
  43. #define HF_SEP_STR "\r\n"
  44. #define HF_SEP_STR_LEN 2
  45. /*
  46. * I think RFC3261 is not precise if a proxy should accept any
  47. * or no body (because it is not the endpoint of the media)
  48. */
  49. #define ACPT_DEF "*/*"
  50. #define ACPT_ENC_DEF ""
  51. #define ACPT_LAN_DEF "en"
  52. #define SUPT_DEF ""
  53. extern sl_api_t opt_slb;
  54. extern str opt_accept;
  55. extern str opt_accept_enc;
  56. extern str opt_accept_lang;
  57. extern str opt_supported;
  58. int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar);
  59. #endif