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: Record Phone Line Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
BMV_Thomas
Intermediate
Intermediate


Joined: December 26 2007
Location: Germany
Posts: 32
Posted: January 28 2008 at 9:42am | IP Logged Quote BMV_Thomas

Hello Support,

I need some help to use the StartPhoneLineRecording procedure. Is it not now supported for .Net or have I a need of an other licens. I do not find the StartPhoneLineRecording member simular like makeCall or something else.

Regards

Thomas
Back to Top View BMV_Thomas's Profile Search for other posts by BMV_Thomas
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: January 28 2008 at 10:08am | IP Logged Quote support

Hi Thomas,

For .NET code, you have to create a PhoneLineRecord object for each phone line you want to record from. For example, the C# code to do this is:


Code:

VoipMediaEngine.TELEPHONY_RETURN_VALUE status;

// define a phone line record variable.
VoipMediaEngine.PhoneLineRecord PhoneLineRecord;

// create the phone line record object.
PhoneLineRecord = new VoipMediaEngine.PhoneLineRecord();

// call the StartPhoneLineRecording() proc to allow call recording to
// start when the next call is in the "in call" state. If a call is
// already "in call", then recording will start as soon as you call this.
status = PhoneLineRecord.StartPhoneLineRecording(
                          MediaEngine,
                          PhoneLine,
                          true, // RecordToFile
                          false, // RecordFileRaw
                          "c:\\0", // PhoneLineRecordDirectory
                          PhoneLineRecordCallbackProc,
                          MediaEngine
                          );

// do other stuff...

// call this whenever you want to complete call recording.
status = PhoneLineRecord.StopPhoneLineRecording(PhoneLine);



The callback used in the above code look something like the following:

Code:

// Phone line record callback. This proc always receives 20Ms of 8kHz PCM samples.
//
void PhoneLineRecordCallbackProc(VoipMediaEngine.PHONE_LINE_RECOR D_DATA PhoneLineRecordData)
{
    MyMediaEngine MediaEngine;

    // access the user defined parameter.
    MediaEngine = (MyMediaEngine)PhoneLineRecordData.UserData;

    // do other stuff…
}



For Vb.NET, the code is exactly the same logic.


Support

Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
BMV_Thomas
Intermediate
Intermediate


Joined: December 26 2007
Location: Germany
Posts: 32
Posted: January 28 2008 at 12:13pm | IP Logged Quote BMV_Thomas

Thanks for help,

and see, if you have a right declaration and do everything else fine and right.....


it works


regards
Thomas
Back to Top View BMV_Thomas's Profile Search for other posts by BMV_Thomas
 

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