[Asterisk-Users] Make asterisk launch script after completingcall.
C F
shmaltz at gmail.com
Wed Dec 29 13:44:10 MST 2004
you can use the g option in the dial to continue even after hangup.
On Wed, 29 Dec 2004 14:46:46 -0500, Paul Rodan <asterisk at glitch.cc> wrote:
> What is contained within asterisk2mp3.py ?
>
> Also, why can't it be like this:
> [sip-in]
> ...
> ...
> ...
> exten => h,1,System(nice -n 19 asterisk2mp3.py /var/spool/asterisk/monitor
> ${CALLFILENAME})
>
> instead of calling a Macro? And if you don't record EVERY single
> conversation in this context, wouldn't this be executed every single time a
> person hangs up, even if nothing was recorded? Maybe a DBPut and an GotoIf
> statement?
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Alex Polite
> Sent: Monday, December 20, 2004 7:46 AM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] Make asterisk launch script after
> completingcall.
>
> On sön, dec 19, 2004 at 02:46:00 +0100, Alex Polite wrote:
> >
> > OK. I now have call recording working for both incoming and outgoing
> > calls.
> >
> > Now I want to make those wavs into mp3. I could launch a script from
> > cron that checks for new wavs and converts them. But that wouldn't be
> > so elegant.
> >
> > Launching it from * on hangup would be nicer. How is it done?
>
> Like so:
>
> [sip-in]
> exten => 1000,1,SetVar(CALLFILENAME=incoming_${CALLERIDNUM}_${TIMESTAMP})
> exten => 1000,2,Monitor(wav,${CALLFILENAME})
> exten => 1000,3,Dial(SIP/alex,20)
> ;exten => 1000,4,Voicemail(u1000)
> exten => h,1,Macro(wav2mp3)
>
> [macro-wav2mp3]
> exten => s,1,System(nice -n 19 asterisk2mp3.py /var/spool/asterisk/monitor
> ${CALLFILENAME})
>
> Found it after googling for hours. I have to say that the
> documentation for Asterix feels a bit sketchy.
>
> alex
>
> --
> Alex Polite
> http://polite.se
> _______________________________________________
> 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
>
> _______________________________________________
> 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