<div dir="ltr"><div dir="ltr">Hallo Luca,<div>Please show logs ( full ) </div><div> <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 5 Nov 2021 at 11:04, 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:1px solid rgb(204,204,204);padding-left:1ex">Am 03.11.2021 21:34, schrieb Antony Stone:<br>
<br>
Hi again<br>
<br>
> The n there should be 1, surely?<br>
> <br>
>> exten => h,n,Hangup<br>
> <br>
> I would say "remove that line". The call has already been hung up, so <br>
> calling<br>
> Hangup is at best going to go into a recursive loop - it certainly <br>
> isn't going<br>
> to help.<br>
<br>
This is my current configuration:<br>
<br>
[cch]<br>
exten => _X.,1,Verbose(2,DEFAULT)<br>
include => internal_calls<br>
include => main_incoming<br>
include => fax_incoming<br>
include => michael_incoming<br>
include => myproxy<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)}" | mail -s "Verpasster Anruf" <a href="mailto:info@xxxx.de" target="_blank">info@xxxx.de</a>)<br>
<br>
....<br>
<br>
[main_incoming]<br>
exten => h,1,GotoIf($[“${DIALSTATUS}” = “ANSWER”]?done)<br>
exten => h,n,Goto(noanswer,s,1)<br>
exten => h,n(done),NoOp()<br>
exten => h,n,HangUp()<br>
...<br>
<br>
It works, but I have two problems:<br>
<br>
1) The E-Mails will be sent "double"<br>
2) The E-Mails will be sent for outgoing unanswered calls, too.<br>
<br>
Do someone has an idea what is wrong in my configuration?<br>
<br>
Thanks a lot<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><br>Pozdrawiam,<br><br>Łukasz Grzywański<br><br></div></div>