[Asterisk-Users] help needed-call recording
Mark Willis
markslists at marky.nu
Tue Jul 12 20:49:39 MST 2005
I think you're looking at this the wrong way. Take a look at automon in
features.conf. Play the "for-quality-purposes" disclaimer/misleader on
all incoming calls to these extensions and use the "w" option on Dial().
What you've done below won't record an existing call.
Mark
Swapna Gupta wrote:
> Hi,
>
> I am trying to change the dialplan to enable call recording (incoming
> and outgoing calls) 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-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list