dialplan_functions.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Asterisk -- An open source telephony toolkit.
  3. *
  4. * Copyright (C) 2013, Digium, Inc.
  5. *
  6. * See http://www.asterisk.org for more information about
  7. * the Asterisk project. Please do not directly contact
  8. * any of the maintainers of this project for assistance;
  9. * the project provides a web site, mailing lists and IRC
  10. * channels for your use.
  11. *
  12. * This program is free software, distributed under the terms of
  13. * the GNU General Public License Version 2. See the LICENSE file
  14. * at the top of the source tree.
  15. */
  16. /*!
  17. * \file
  18. * \brief PJSIP dialplan functions header file
  19. */
  20. #ifndef _PJSIP_DIALPLAN_FUNCTIONS
  21. #define _PJSIP_DIALPLAN_FUNCTIONS
  22. /*!
  23. * \brief CHANNEL function read callback
  24. * \param chan The channel the function is called on
  25. * \param cmd The name of the function
  26. * \param data Arguments passed to the function
  27. * \param buf Out buffer that should be populated with the data
  28. * \param len Size of the buffer
  29. *
  30. * \retval 0 on success
  31. * \retval -1 on failure
  32. */
  33. int pjsip_acf_channel_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
  34. /*!
  35. * \brief PJSIP_MEDIA_OFFER function write callback
  36. * \param chan The channel the function is called on
  37. * \param cmd The name of the function
  38. * \param data Arguments passed to the function
  39. * \param value Value to be set by the function
  40. *
  41. * \retval 0 on success
  42. * \retval -1 on failure
  43. */
  44. int pjsip_acf_media_offer_write(struct ast_channel *chan, const char *cmd, char *data, const char *value);
  45. /*!
  46. * \brief PJSIP_MEDIA_OFFER function read callback
  47. * \param chan The channel the function is called on
  48. * \param cmd The name of the function
  49. * \param data Arguments passed to the function
  50. * \param buf Out buffer that should be populated with the data
  51. * \param len Size of the buffer
  52. *
  53. * \retval 0 on success
  54. * \retval -1 on failure
  55. */
  56. int pjsip_acf_media_offer_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
  57. /*!
  58. * \brief PJSIP_DIAL_CONTACTS function read callback
  59. * \param chan The channel the function is called on
  60. * \param cmd The name of the function
  61. * \param data Arguments passed to the function
  62. * \param buf Out buffer that should be populated with the data
  63. * \param len Size of the buffer
  64. *
  65. * \retval 0 on success
  66. * \retval -1 on failure
  67. */
  68. int pjsip_acf_dial_contacts_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
  69. #endif /* _PJSIP_DIALPLAN_FUNCTIONS */