[Freeswitch-users] Transfer A-Leg in a callcenter queue bridged to an agent to another queue

Mimiko vbvbrj at gmail.com
Thu Sep 26 20:31:52 MSD 2013


On 26.09.2013 18:02, Cal Leeming [Simplicity Media Ltd] wrote:
>  From what I can tell, you initially had a question about recording both
> call queues, for which Regis then gave you an answer.

Yes, I want to record both calls in two queues to different files for 
same initial member after a transfer from first queue to second. I 
tested Regis suggestion and it works the same as callcenter's internal 
recording template. I suppose callcenter module uses same record_session 
function inside.

But the recording stops only after a hangup from both parties. In case 
of call transfer, only B-Leg hangs-up. A-Leg will get to second queue 
and will listen to moh sound while waiting in queue. In mean time, the 
record_session function didn't stop to record, as there is still A-Leg 
in system.

Looking on callcenter's variables got initialized, I thought 
cc_record_filename might contain the path to the recorded file not only 
when member is bridged to an agent, but also after the agent transferred 
the member to other number. So, some testing approved my thoughts.

That is. When agent transfer the member, in the dialplan of transferred 
to extension I just check cc_record_filename for non empty string, and 
if it is not empty I use stop_record_session application with this 
variable as the path to tell FS to stop recording current session. Then 
I send the member to the second queue of the callcenter, where there is 
another path defined for recording the conversation with the agent.

Initially I thought that when a member leaves callcenter application, 
then recording defined in the callcenter application will end 
automatically. But this didn't happen. Although this type of behave is 
desired to continue on recording the session when transferring to some 
regular extension.

Cal, sorry for my bad writing in English. I hope I explained my scope of 
the problem.

-- 
Mimiko desu.



Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list