summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/VoIp.cpp
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-02-23 19:00:48 +0000
committerHenri Herscher <henri@oreka.org>2007-02-23 19:00:48 +0000
commit8bb2aca5c9f41754bcd4d53f367184845b97da01 (patch)
tree2647b1d9565a6c7b23fefc09d61052df7f0d9c6c /orkaudio/audiocaptureplugins/voip/VoIp.cpp
parentf727e8c974a127d26f3c9f28aaeb6fca1de2d0d8 (diff)
Added configuration switch to enable RTP detection on odd TCP ports.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@416 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/VoIp.cpp')
-rw-r--r--orkaudio/audiocaptureplugins/voip/VoIp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/VoIp.cpp b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
index 1453356..c3791c8 100644
--- a/orkaudio/audiocaptureplugins/voip/VoIp.cpp
+++ b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
@@ -399,7 +399,7 @@ void iax2_dump_frame(struct Iax2FullHeader *fh, char *source, char *dest)
CStdString tmp;
const char *cclass;
const char *subclass;
- char *dir;
+ //char *dir;
if (fh->type >= (int)sizeof(frames)/(int)sizeof(frames[0])) {
snprintf(class2, sizeof(class2), "(%d?)", fh->type);
@@ -445,7 +445,7 @@ bool TryIax2New(EthernetHeaderStruct* ethernetHeader, IpHeaderStruct* ipHeader,
struct iax2_ies ies;
int ies_len = 0, udp_act_payload_len = 0;
Iax2NewInfoRef info(new Iax2NewInfo());
- char source_ip[16], dest_ip[16];
+ //char source_ip[16], dest_ip[16];
CStdString logmsg;
if(!DLLCONFIG.m_iax2Support)
@@ -995,7 +995,7 @@ bool TryRtp(EthernetHeaderStruct* ethernetHeader, IpHeaderStruct* ipHeader, UdpH
{
u_short source = ntohs(udpHeader->source);
u_short dest = ntohs(udpHeader->dest);
- if(!(ntohs(udpHeader->source)%2) && !(ntohs(udpHeader->dest)%2)) // udp ports must be even
+ if(!(ntohs(udpHeader->source)%2) && !(ntohs(udpHeader->dest)%2) || DLLCONFIG.m_rtpDetectOnOddPorts) // udp ports usually even
{
if((rtpHeader->pt <= 34 && rtpHeader->pt != 13) || rtpHeader->pt == 97 || rtpHeader->pt == 98) // pt=34 is H263 and is the last possible valid codec
{ // pt=13 is CN (Comfort Noise)