summaryrefslogtreecommitdiff
path: root/include/asterisk/udptl.h
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2010-02-02 22:27:23 +0000
committerDavid Vossel <dvossel@digium.com>2010-02-02 22:27:23 +0000
commit36bbf8f902fdede0c3ad8a4507313773872a0dd8 (patch)
treec4aa33331a2e4f114269fab1378b2b09eb92cc32 /include/asterisk/udptl.h
parentdd1c5f27ee6e4447e144c27305b4c88b4d4257a6 (diff)
fixes crash during T.38 negotiation caused by invalid or missing FaxMaxDatagram field
AST-2010-001 (closes issue #16634) Reported by: krn (closes issue #16724) Reported by: barthpbx (closes issue #16517) Reported by: bklang (closes issue #16485) Reported by: elsto git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@244443 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/udptl.h')
-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);