please don't post questions like this on the -dev list
ask on they user list

Den 12. jul. 2005 kl. 00.10 skrev Swapna Gupta:

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

_______________________________________________
Asterisk-Dev mailing list
To UNSUBSCRIBE or update options visit:

_______________________________________________
Asterisk-Dev mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to