[Asterisk-Users] Make asterisk launch script after completing call.

Alex Polite m4 at polite.se
Sun Dec 19 06:46:00 MST 2004


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?


[outgoing]
exten => _0.,1,SetVar(CALLFILENAME=${EXTEN:1}-${TIMESTAMP})
exten => _0.,2,Monitor(wav,${CALLFILENAME},m)
exten => _0.,3,Dial(SIP/rix/${EXTEN}|20|t)
exten => _0.,4,Congestion
exten => _0.,104,Congestion                  

[sip-in]
exten => 1000,1,SetVar(CALLFILENAME=${EXTEN:1}-${TIMESTAMP})
exten => 1000,2,Monitor(wav,${CALLFILENAME},m)
exten => 1000,3,Dial(SIP/alex,20)
exten => 1000,4,Voicemail(u1000)

-- 
Alex Polite
http://polite.se



More information about the asterisk-users mailing list