[Asterisk-Dev] call recording

Swapna Gupta sgupta at vertmarkets.com
Mon Jul 11 15:10:51 MST 2005


Hi,

 

I am trying to change the dialplan to enable call recording on the click
of a button. Is it possible? All the documentation I found so far,
enable recording for 'all calls' to an extension. 

 

Does this code look ok?

Currently Recording "on" only for 1030

when user presses *44, start recording.

*55 to stop recording

 

Extensions.conf 

#include extensions_custom.conf

[from-internal]

include => custom-startmonitor

include => custom-stopmonitor

 

[macro-dial]

include => custom-startmonitor

include => custom-stopmonitor

 

Extensions_custom.conf

[custom-startmonitor]

exten => *44,1,GotoIf($[${EXTEN} = 1030]?2:20)

exten => *44,2,BackGround(for-quality-purposes)       ;play background
files "for-quality-purposes this-call-may-be recorded"

exten => *44,3,BackGround(this-call-may-be)

exten => *44,4,BackGround(recorded)

exten => *44,5,Setvar(FILENAME=${EXTEN}-${TIMESTAMP}-${UNIQUEID}) ;
create variable to hold filename by exten-timestamp

exten => *44,3,Monitor(wav, FILENAME, m)  ; when user presses *44, start
recording

exten => *44,20,Noop(Recording on only for 1030)

 

[custom-stopmonitor]

exten => *55,1,GotoIf($[${EXTEN} = 1030]?2:20)  ; when user presses *55,
stop recording

exten => *55,2,StopMonitor()

exten => *55,3,Wait(2)

exten => *55,20,Noop(Recording on only for 1030)

 

I would really appreciate any help. Thank you.

 

Swapna Gupta 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20050711/49f6201e/attachment.htm


More information about the asterisk-dev mailing list