Trying use the project in android environment.am able to build and run it. but gets stuck at "Empty SIP method". I have made some minor chnages to catch the sip signalling over tcp. just by adding an if case for tcp packets and altering the libpcap filter according ly. in the below code I am receiving the payload in the sip_method array, but i do not really understand what is happening afterwards. thanks for sharing the awesome project. Am using the pcapsipdump-0.2 version download.
//figure out method
memcpy(sip_method,data,sizeof(sip_method)-1);
sip_method[sizeof(sip_method)-1]=' ';
if (strchr(sip_method,' ')!=NULL){
*strchr(sip_method,' ')='\0';
}else{
sip_method[0]='\0';
if (verbosity>=2){
printf("Empty SIP method!\n");
}
}
Any chance you can try the latest SVN instead of 0.2?
http://pcapsipdump.sourceforge.net/
I did try it but i was running in to build problems like include files.I am using android 17.
If you think using the latest source might resolve this ,I can defenitly send more time trying to get the buld work with latest
There was a ton of changes since 0.2, but not TCP support yet.
What exactly is the build problem with the latest svn?
basically related with android ndk C++ . for eg, I have NDK 8, and get erros like
xx/xx/xx/xx/pcapsipdump.cpp
In file included from prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/include/vector:61:0,
from xx/xx/xx/xx/xx/calltable.h:23,
from xx/xx/xx/xx/xx/pcapsipdump.cpp:49:
prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/include/bits/stl_algobase.h:60:28: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
figured out the probl;em, and it was basically caused by some bad data in the beginning of the tcp payload. now I am able to parse the data and retrieve the sdp info. Thank you.I will try to share the code later on.