summaryrefslogtreecommitdiff
path: root/channels/pjsip/include
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2016-08-07 09:58:59 -0500
committerMatt Jordan <mjordan@digium.com>2016-08-10 11:30:01 -0500
commitc315460abbb6ce30423c4d5bb092f4ac17ef2cc2 (patch)
treed60b3af5496e77ac148269a1cec112f134ebfdbb /channels/pjsip/include
parentd78fe8fed0d0a76e11b2884a65b66e82b28a6019 (diff)
channels/chan_pjsip: Add PJSIP_SEND_SESSION_REFRESH
This patch adds a new PJSIP specific dialplan function, PJSIP_SEND_SESSION_REFRESH. When invoked on a PJSIP channel, the media session will be refreshed via either an UPDATE or re-INVITE request. When used in conjunction with the PJSIP_MEDIA_OFFER dialplan function, the formats in use on a PJSIP channel can be re-negotiated and changed dynamically after call setup. ASTERISK-26277 #close Change-Id: Ib98fe09ba889aafe26d58d32f0fd1323f8fd9b1b (cherry picked from commit eec60dd77394f0519895fc6abce3a6f90f6470f1)
Diffstat (limited to 'channels/pjsip/include')
-rw-r--r--channels/pjsip/include/dialplan_functions.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/channels/pjsip/include/dialplan_functions.h b/channels/pjsip/include/dialplan_functions.h
index cbc06f076..8b80bfa74 100644
--- a/channels/pjsip/include/dialplan_functions.h
+++ b/channels/pjsip/include/dialplan_functions.h
@@ -61,6 +61,18 @@ int pjsip_acf_media_offer_write(struct ast_channel *chan, const char *cmd, char
int pjsip_acf_media_offer_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
/*!
+ * \brief PJSIP_SEND_SESSION_REFRESH function write callback
+ * \param chan The channel the function is called on
+ * \param cmd the Name of the function
+ * \param data Arguments passed to the function
+ * \param value Value to be set by the function
+ *
+ * \retval 0 on success
+ * \retval -1 on failure
+ */
+int pjsip_acf_session_refresh_write(struct ast_channel *chan, const char *cmd, char *data, const char *value);
+
+/*!
* \brief PJSIP_DIAL_CONTACTS function read callback
* \param chan The channel the function is called on
* \param cmd The name of the function