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™ - Technical Support
 LanScape Support Forum -> LanScape VOIP Media Engine™ - Technical Support
Subject Topic: StartPhoneLineRecording RecordDirectory parameter Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Jalal
Vetran
Vetran


Joined: April 24 2006
Location: Iran
Posts: 188
Posted: February 21 2007 at 2:21am | IP Logged Quote Jalal

Hi

We have encountered a problem in recording during StartPhoneLineRecording. When we set pPhoneLineRecordDirectory to a path which is terminated to '\' StartPhoneLineRecording returns SipSuccess but it does not record any data in the path specified. It works when the path is not terminated with '\'.

Thanks
Jalal Abedinejad
Back to Top View Jalal's Profile Search for other posts by Jalal Visit Jalal's Homepage
 
support
Administrator
Administrator


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

Hi Jalal,

Yes – we have tested this and what you say is TRUE. We have logged a bug report for the development guys. Good work.

Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
Jalal
Vetran
Vetran


Joined: April 24 2006
Location: Iran
Posts: 188
Posted: May 07 2007 at 7:25am | IP Logged Quote Jalal

Hi,

It seems following issue is solved on v5.12.3.27 but we have found another problem. It seems Media Engine's StartPhoneLineRecording uses the same function for checking if a Directory exists or not as PhoneBase.cpp DirectoryExists function do. This function has a problem detecting root drive folders. For example if you check DirectoryExists('c:\') it will return FALSE because it always removes last backslash then checks _stat result. _stat returns -1 for 'c:' but returns 0 for 'c:\'. So you should change this function to add backslash to end of tmp again if last character is colon.

Another simpler and more reliable way to check if a directory exists or not is followed:

Code:

Code = GetFileAttributes(Directory); //GetFileAttributes is a windows API
return (Code != -1) && ((FILE_ATTRIBUTE_DIRECTORY & Code) != 0);


This is the code used in Delphi.
Regards,
Jalal
Back to Top View Jalal's Profile Search for other posts by Jalal Visit Jalal's Homepage
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 07 2007 at 3:15pm | IP Logged Quote support

Thanks Jalal,

Yes, you are correct. We have made a note of this. We will try to include this fix in your next update when we locate the Mitel PBX authentication issue.

Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
Jalal
Vetran
Vetran


Joined: April 24 2006
Location: Iran
Posts: 188
Posted: May 08 2007 at 5:21am | IP Logged Quote Jalal

Hi,

Thanks, this problem is solved now on v5.12.3.28.

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