[asterisk-users] Start recording automatically when xferring to anextension?

Don Pobanz dpobanz at hastingsutilities.com
Fri May 25 09:54:33 MST 2007


J French wrote Friday, May 25, 2007 10:54 AM
> I want to start recording the caller automatically when the 
> receptionist transfers a new sales lead to 567.  I don't want 
> the receptionist to have to press *1 manually for automon.  
> Can someone recommend how best to accomplish this? 
>  
>  
> exten => 567,1,Set(CALLERID(name)=SALES CALL)
> exten => 567,n,Playback(recorded-for-training)
> exten => 

Add a couple lines to your 567 extension

exten =>
567,n,Set(CALLFILENAME=/var/log/calls/${ARG1}-${CALLERID(num)}-${TIMESTA
MP})
exten => 567,n,MixMonitor(${CALLFILENAME}.wav,b)

> 567,n,Dial(SIP/phone7&SIP/phone8&SIP/phone9&SIP/phone10&SIP/ph
> one11&SIP/phone12,${SECS_TO_TIMEOUT}) ;Ring Sales Phones
> exten => 567,n,Dial(SIP/phone1,${SECS_TO_TIMEOUT}) ;Send back 
> to Receptionist


Don Pobanz


More information about the asterisk-users mailing list