Author |
|
Jalal Vetran
Joined: April 24 2006 Location: Iran Posts: 188
|
Posted: February 21 2007 at 2:21am | IP Logged
|
|
|
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 |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: February 22 2007 at 2:47pm | IP Logged
|
|
|
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 |
|
|
Jalal Vetran
Joined: April 24 2006 Location: Iran Posts: 188
|
Posted: May 07 2007 at 7:25am | IP Logged
|
|
|
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 |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: May 07 2007 at 3:15pm | IP Logged
|
|
|
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 |
|
|
Jalal Vetran
Joined: April 24 2006 Location: Iran Posts: 188
|
Posted: May 08 2007 at 5:21am | IP Logged
|
|
|
Hi,
Thanks, this problem is solved now on v5.12.3.28.
Regards,
Jalal
|
Back to Top |
|
|