summaryrefslogtreecommitdiff
path: root/include/asterisk/acl.h
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2014-03-06 19:04:58 +0000
committerJonathan Rose <jrose@digium.com>2014-03-06 19:04:58 +0000
commitf0b8590c14d9f5b899f5edc1158ee90200ace6dc (patch)
tree063c716258cf99944cc6c5eedefda5f2a909da17 /include/asterisk/acl.h
parent3f730662f7906027c302896abd549a32123ec848 (diff)
pjsip configuration: Make transport TOS values consistent with endpoints
Transport TOS values were interpreted as DSCP values without being documented as such. Endpoint TOS values (tos_audio/tos_video) behaved normally as TOS values have historically. This patch makes the transport TOS values behave as TOS values and makes all TOS values readable as string values (e.g. AF11). In addition, alembic scripts have been updated to use the proper field types for all TOS/COS values. (issue ASTERISK-23235) Reported by: George Joseph Review: https://reviewboard.asterisk.org/r/3304/ ........ Merged revisions 410028 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/acl.h')
-rw-r--r--include/asterisk/acl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/acl.h b/include/asterisk/acl.h
index d1773b6b1..502e7f447 100644
--- a/include/asterisk/acl.h
+++ b/include/asterisk/acl.h
@@ -358,6 +358,17 @@ int ast_str2tos(const char *value, unsigned int *tos);
const char *ast_tos2str(unsigned int tos);
/*!
+ * \brief Convert a TOS value into its string representation
+ * and create a dynamically allocated copy
+ *
+ * \param tos The TOS value to look up
+ * \param buf pointer to character pointer where string will be duplicated to
+ *
+ * \note The string allocated at buf must be free'd
+ */
+void ast_tos2str_buf(unsigned int tos, char **buf);
+
+/*!
* \brief Retrieve a named ACL
*
* \details