Return to LanScape's home page Go back a page...       Active TopicsActive Topics   Display List of Forum MembersMember List   Knowledge Base SearchSearch   HelpHelp  RegisterRegister  LoginLogin

LanScape VOIP Media Engine™ - Pre-Sales Technical Support
 LanScape Support Forum -> LanScape VOIP Media Engine™ - Pre-Sales Technical Support
Subject Topic: Compilation issues with Telephony Echo Server Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
SIPer
Intermediate
Intermediate


Joined: January 13 2007
Location: Singapore
Posts: 2
Posted: January 13 2007 at 1:32am | IP Logged Quote SIPer

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
Back to Top View SIPer's Profile Search for other posts by SIPer
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: January 13 2007 at 2:57pm | IP Logged Quote support

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
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum






Contact LanScape Hear what the Lawyers have to say How youm may use this site Read your privacy rights