1

How can I record a call only after the client answers ?

What events should I use to start / stop the recording if I need to record only after the client answers the call ? Currently I'm using a schema as below.  However the issue is that it records the holding / calling  music too. I would like to record only after the client answers the call. I've tried to start the recording on onAnswer/callAnswer and keep the stopRecording after the "transfer" function ( as it is now) but nothing gets recorded.   Any help is much appreciated !

 

startCallRecording($url);

transfer($arr, array(

"playvalue" => "http://www.phono.com/audio/holdmusic.mp3",

"onTimeout" => "timeoutFCN",

"timeout" => 40.0,

"onCallFailure" => "callFailure",

"onBusy" => "callBusy",

"onConnect" => "callConnected",

"onError" => "callError",

"onSuccess" => "callSuccess",

"onAnswer" => "callAnswer"

)

);

stopCallRecording();

11 comments

Please sign in to leave a comment.