[asterisk-users] Notifying missed calls

Luca Bertoncello lucabert at lucabert.de
Wed Nov 3 14:52:10 CDT 2021


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
(lucabert at lucabert.de)



More information about the asterisk-users mailing list