<div dir="auto">Hi Luca.</div><div dir="auto"><br></div><div dir="auto">You can use the ${DIALSTATUS} channel variable.</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://www.voip-info.org/asterisk-variable-dialstatus/">https://www.voip-info.org/asterisk-variable-dialstatus/</a></div><br></div><div dir="auto">GERARDO B</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 3, 2021 at 2:52 PM Luca Bertoncello <<a href="mailto:lucabert@lucabert.de">lucabert@lucabert.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi list!<br>
<br>
I have this problem: I'd like to notify the user about missed calls.<br>
With "missed call" I mean: the caller calls, wait a while and hangup<br>
_before_ the voicemail starts.<br>
<br>
I got it call a script just before the voicemail starts, so:<br>
<br>
exten => s,1,Verbose(2,Call for Main - [${CALLERID(num)}])<br>
exten => s,n,Set(CHANNEL(musicclass)=default)<br>
exten => s,n,Dial(SIP/74,39,RcxX)<br>
exten => s,n,Verbose(2,Voicemail for Main)<br>
exten => s,n,Set(CALLERID(name)=)<br>
exten => s,n,Gosub(noanswer,s,1)<br>
exten => s,n,VoiceMail(74,us)<br>
exten => s,n,Hangup<br>
<br>
[noanswer]<br>
exten => s,1,NoOp(UID CALL: ${UNIQUEID} / DATE:<br>
${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}))<br>
exten => s,n,System(echo "Verpasster Anruf vom ${CALLERID(NUM)} um<br>
${STRFTIME(${EPOCH},,%H:%M)}" > /tmp/calllog.txt)<br>
exten => s,n,Return()<br>
<br>
but if the called hangs up prior the timeout for the voicemail, the<br>
Subrouting "noanswer" will not called...<br>
<br>
Any ideas?<br>
<br>
Thanks<br>
Luca Bertoncello<br>
(<a href="mailto:lucabert@lucabert.de" target="_blank">lucabert@lucabert.de</a>)<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Saludos/Regards<br>--<br>Ing. Gerardo Barajas Puente<br><br>Proyectos Especiales/Preventa | <a href="http://www.neocenter.com" target="_blank">www.neocenter.com</a><br>T:+52 (55) 8590-9000 x 7003</div>