Hi list!

I have this problem: I'd like to notify the user about missed calls.
With "missed call" I mean: the caller calls, wait a while and hangup
_before_ the voicemail starts.

I got it call a script just before the voicemail starts, so:

exten => s,1,Verbose(2,Call for Main - [${CALLERID(num)}])
exten => s,n,Set(CHANNEL(musicclass)=default)
exten => s,n,Dial(SIP/74,39,RcxX)
exten => s,n,Verbose(2,Voicemail for Main)
exten => s,n,Set(CALLERID(name)=)
exten => s,n,Gosub(noanswer,s,1)
exten => s,n,VoiceMail(74,us)
exten => s,n,Hangup

[noanswer]
exten => s,1,NoOp(UID CALL: ${UNIQUEID} / DATE:
${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}))
exten => s,n,System(echo "Verpasster Anruf vom ${CALLERID(NUM)} um
${STRFTIME(${EPOCH},,%H:%M)}" > /tmp/calllog.txt)
exten => s,n,Return()

but if the called hangs up prior the timeout for the voicemail, the
Subrouting "noanswer" will not called...

Any ideas?

Thanks
Luca Bertoncello
(lucab...@lucabert.de)

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to