aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-02 19:58:14 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-02 19:58:14 +0000
commit552e6560bcaa2d1368af7eecca287258847699e7 (patch)
treef3eb5eab766b5486d2a38629c99cfb2b1b9fe2fb /include/asterisk
parent5f24439bd1d555ddcff62f09a0cb4061c357d1a0 (diff)
Fixes T38 crash with invalid FaxMaxDatagram sdp field
AST-2010-001 git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.2.2@244387 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/udptl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asterisk/udptl.h b/include/asterisk/udptl.h
index 71d60ed61..3cbfeebb2 100644
--- a/include/asterisk/udptl.h
+++ b/include/asterisk/udptl.h
@@ -108,12 +108,28 @@ void ast_udptl_set_error_correction_scheme(struct ast_udptl *udptl, enum ast_t38
void ast_udptl_set_local_max_ifp(struct ast_udptl *udptl, unsigned int max_ifp);
+/*!
+ * \brief retrieves local_max_datagram.
+ *
+ * \retval positive value representing max datagram size.
+ * \retval 0 if no value is present
+ */
unsigned int ast_udptl_get_local_max_datagram(struct ast_udptl *udptl);
+/*!
+ * \brief sets far max datagram size. If max_datagram is = 0, the far max datagram
+ * size is set to a default value.
+ */
void ast_udptl_set_far_max_datagram(struct ast_udptl *udptl, unsigned int max_datagram);
unsigned int ast_udptl_get_far_max_datagram(const struct ast_udptl *udptl);
+/*!
+ * \brief retrieves far max ifp
+ *
+ * \retval positive value representing max ifp size
+ * \retval 0 if no value is present
+ */
unsigned int ast_udptl_get_far_max_ifp(struct ast_udptl *udptl);
void ast_udptl_setnat(struct ast_udptl *udptl, int nat);