summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-12-06 04:25:44 +0000
committerBenny Prijono <bennylp@teluu.com>2010-12-06 04:25:44 +0000
commitf0bd29e213d567051ca2cef2fca10739c59d1626 (patch)
tree990179db7e09c9247af75056c7cf62d076e41744 /pjmedia/include
parent08e7af79c559ba18fc5db4dbadb5c9fab210db3b (diff)
Fixed #1160: Option to bypass RTP payload type verification in the stream (thanks Johan Lantz for the suggestion)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3387 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia/config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h
index 0f98633a..4d4f7ed7 100644
--- a/pjmedia/include/pjmedia/config.h
+++ b/pjmedia/include/pjmedia/config.h
@@ -502,6 +502,17 @@
# define PJMEDIA_STREAM_VAD_SUSPEND_MSEC 600
#endif
+/**
+ * Perform RTP payload type checking in the stream. Normally the peer
+ * MUST send RTP with payload type as we specified in our SDP. Certain
+ * agents may not be able to follow this hence the only way to have
+ * communication is to disable this check.
+ *
+ * Default: 1
+ */
+#ifndef PJMEDIA_STREAM_CHECK_RTP_PT
+# define PJMEDIA_STREAM_CHECK_RTP_PT 1
+#endif
/**
* Specify the maximum duration of silence period in the codec, in msec.