SIPer Intermediate
Joined: January 13 2007 Location: Singapore Posts: 2
|
Posted: January 13 2007 at 1:32am | IP Logged
|
|
|
Hi,
Background Info
I am using Visual C++ 2005 Express Edition.
I have obtained a 30 day trial copy of VOIP Media Engine.
Problem/Issues
The sample code that comes along with "Telephony Echo Server" has some problems. I am not sure if any of you guys have the same issue, but I would just like to highlight my compilation errors. :)
1. CHex.h and CHex.cpp are not included inside the Header Files and Source Files. This results in an linker error.
2. GlobFunc.h and GlobFunc.cpp are similarly left out, resulting in linking problems.
3. In PhoneBase.cpp, line 1197 or thereabouts. The counter (cnt) is declared as an int while pRawRtpData->SampleBufferLengthInBytes is an unsigned long int. I declared cnt as unsigned long int and created another counter var as int so that the loop lower down works.
If I'm not wrong, this error also occurs in one or two other sample code provided. I hope my "method" of solving it is ok and doesn't result in unknown problems later on. Some community review/testing would help, I guess :)
4. In CHex.cpp, line 113 or thereabouts, the pow() requires either (float, float) or (double, double) arguments while 2 integers are supplied. I used pow(16.0f,(float)cnt) as a fix. Hopefully this has no side-effects too.
Of course, this is not a fatal error but it would be nice to keep the types clean .. I made my compiler warnings fatal so vc++ would not succeed unless the code is "ok" :P
All in all, I find the code very well documented and this is my first try in C++ after 5 years... it's fun :)
SIPer
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: January 13 2007 at 2:57pm | IP Logged
|
|
|
Hi SIPer,
Thanks for this post! Your information was so accurate we were able to track down the problem quickly. We saw the same issues here when converting the VC6 supplied projects to Visual Studio 2005. For some reason the Visual Studio project conversions do not add the CHex.* and GlobFunc.* files to the new solution/project. Don’t know why that is because this has worked in the past.
The changes you describe in our post are right on target. You should be fine with those mods.
We have wanted to update the build capability of the sample applications for some time now. So we took the time this morning to do just that.
We updated the sample apps to contain updated stand alone projects for VC6, Visual Studio 2003 and Visual Studio 2005. This should make things easier for the future. We also updated the sample source code so you will not see any more compiler warnings under Visual Studio 2005.
You can download the new sample application image from one of our support FTP sites:
FTP server: lanscapecorp.dnsalias.com
Login: support
password: user
The login and password are lower case. Download the file:
“Software Examples Update - Media Engine v5.12.3.10.zip”
Thanks again for telling us about this problem.
Repost as needed,
Support
|