[asterisk-users] Notifying missed calls

Gerardo Barajas jerry.barajas at gmail.com
Wed Nov 3 19:55:31 CDT 2021


Hi Luca.

You can use the ${DIALSTATUS} channel variable.

https://www.voip-info.org/asterisk-variable-dialstatus/

GERARDO B

On Wed, Nov 3, 2021 at 2:52 PM Luca Bertoncello <lucabert at lucabert.de>
wrote:

> 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)
>
> --
> _____________________________________________________________________
> -- 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

-- 
Saludos/Regards
--
Ing. Gerardo Barajas Puente

Proyectos Especiales/Preventa | www.neocenter.com
T:+52 (55)  8590-9000 x 7003
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20211103/73699093/attachment.html>


More information about the asterisk-users mailing list