how to record both inbound & outbound call to my local drive (ie. c:\temp)

Jun 12, 2013 at 12:41 PM
Edited Jun 12, 2013 at 1:53 PM
Hello All,

I am using asternet-24104, how to record both inbound & outbound call to my local drive (ie. c:\temp)

I am trying as below, I put codes below in Dial event

MonitorAction ma = new MonitorAction(channel,@"d:\Temp\test","wav"); ma.Mix = true;
ManagerResponse mr = mgrconn.SendAction(ma, 10000);
bool b = mr.IsSuccess();
string m = mr.Message;

and Hangup event

StopMonitorAction sma = new StopMonitorAction();
sma.Channel = e.Channel;
ManagerResponse mr = mgrconn.SendAction(sma, 10000);
bool b = mr.IsSuccess();
string m = mr.Message;

but it did not create test.wav in D:\Temp

please advice

Thanks
Coordinator
Jun 13, 2013 at 9:00 AM
Hi, AsterNET sends AMI commands to the asterisk box, asterisk is the one who records the call not your local machine.

So when you sent the manager action setting the recording path as "d:\temp..." asterisk will have tried to use a local path on your asterisk box called "d:\temp...".

If you watch the console at the same time as running that code you'll see what I mean.

In short, you can't do what you're wanting to do, not without copying the file off your asterisk box OR having some sort of shared storage, e.g.

shared folder mapped to something like \mnt\sharedstore\

and then record the file there.
Jun 13, 2013 at 9:37 AM

Hello Skrusty,

Noted and Thanks

Regards