Re: [asterisk-users] Notifying missed calls

2021-11-07 Thread Luca Bertoncello
Am 06.11.2021 um 21:15 schrieb Łukasz Grzywański: Hi Łukasz, Dziękuję > two legs in this same context > ( exten => _03529123456,n,Dial(local/123456@main_incoming,,xX) ) > > PJSIP/pbxmichael_in-0418 > and  > Local/123456@main_incoming-0268 > > [main_incoming] > exten =>

Re: [asterisk-users] Notifying missed calls

2021-11-06 Thread Łukasz Grzywański
Hi ;-) now I see  Luca two legs in this same context ( exten => _03529123456,n,Dial(local/123456@main_incoming,,xX) ) PJSIP/pbxmichael_in-0418 and Local/123456@main_incoming-0268 [main_incoming] exten => _+49X.,1,goto(${EXTEN:3},1) exten => _0049X.,1,goto(${EXTEN:4},1) exten =>

Re: [asterisk-users] Notifying missed calls

2021-11-06 Thread Łukasz Grzywański
Hi, strange -- Goto (noanswer,s,1) -- Executing [s@noanswer:2] System("PJSIP/pbxmichael_in-0418", "echo "Verpasster Anruf vom +4935 um 19:13" | mail -s "Verpasster Anruf" i...@mydomain.de") in new stack -- Executing [s@noanswer:1]

Re: [asterisk-users] Notifying missed calls

2021-11-06 Thread Luca Bertoncello
Am 06.11.2021 um 15:06 schrieb Frank Vanoni: Hi Frank > The "h" extension is executed whenever a call is hang up in that > contexts. > > In your configuration it executes first the "s" extension (where you > GoTo h,1) and once that is executed, the "h" extension is executed > again. OK, I

Re: [asterisk-users] Notifying missed calls

2021-11-06 Thread Frank Vanoni
On Sat, 2021-11-06 at 14:46 +0100, Luca Bertoncello wrote: > Really, I can't understand what you mean... I'm feeling really > dumb... No need to feel dumb. I'm not an expert and when I look to my extensions.conf... well... countless pulling my hairs out, head banging on the keyboard,,, :-) The

Re: [asterisk-users] Notifying missed calls

2021-11-06 Thread Luca Bertoncello
Am 06.11.2021 um 14:43 schrieb Frank Vanoni: Hi Frank > On Fri, 2021-11-05 at 10:50 +0100, Luca Bertoncello wrote: > >> 1) The E-Mails will be sent "double" > > It sends the first mail by executing "noanswer,2" and a second mail > because because of "main-incoming,h,2" Really, I can't

Re: [asterisk-users] Notifying missed calls

2021-11-06 Thread Frank Vanoni
On Fri, 2021-11-05 at 10:50 +0100, Luca Bertoncello wrote: > 1) The E-Mails will be sent "double" It sends the first mail by executing "noanswer,2" and a second mail because because of "main-incoming,h,2" > 2) The E-Mails will be sent for outgoing unanswered calls, too. Use the "h" extension

Re: [asterisk-users] Notifying missed calls

2021-11-06 Thread Frank Vanoni
Here my configuration: [incoming] ; Incoming from Swisscom exten => +4191xxx,1,NoOp(Call from ${CALLERID(num)}) same => n,Dial(SIP/deskphone,120) same => n,Hangup() exten => h,1,GotoIf($["${DIALSTATUS}" = "ANSWER"]?done) exten => h,n,System(echo "Missed Call from ${CALLERID(num)}" |

Re: [asterisk-users] Notifying missed calls

2021-11-05 Thread Łukasz Grzywański
Hallo Luca, Please show logs ( full ) On Fri, 5 Nov 2021 at 11:04, Luca Bertoncello wrote: > Am 03.11.2021 21:34, schrieb Antony Stone: > > Hi again > > > The n there should be 1, surely? > > > >> exten => h,n,Hangup > > > > I would say "remove that line". The call has already been hung up,

Re: [asterisk-users] Notifying missed calls

2021-11-05 Thread Luca Bertoncello
Am 03.11.2021 21:34, schrieb Antony Stone: Hi again The n there should be 1, surely? exten => h,n,Hangup I would say "remove that line". The call has already been hung up, so calling Hangup is at best going to go into a recursive loop - it certainly isn't going to help. This is my

Re: [asterisk-users] Notifying missed calls

2021-11-03 Thread Gerardo Barajas
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 wrote: > Hi list! > > I have this problem: I'd like to notify the user about missed calls. > With "missed call" I mean:

Re: [asterisk-users] Notifying missed calls

2021-11-03 Thread Carlos Rojas
g: *When the called party hangs up*, continue to execute commands in the current context at the next priority On Wed, Nov 3, 2021 at 4:39 PM Luca Bertoncello wrote: > Am 03.11.2021 um 21:34 schrieb Antony Stone: > > On Wednesday 03 November 2021 at 21:29:46, Luca Bertoncello wrote: > > > >> I

Re: [asterisk-users] Notifying missed calls

2021-11-03 Thread Luca Bertoncello
Am 03.11.2021 um 21:34 schrieb Antony Stone: > On Wednesday 03 November 2021 at 21:29:46, Luca Bertoncello wrote: > >> I tried so: >> >> exten => h,n(hang),Gosub(noanswer,s,1) > > The n there should be 1, surely? Ach, you're right! Now it works! Thanks a lot Luca Bertoncello

Re: [asterisk-users] Notifying missed calls

2021-11-03 Thread Antony Stone
On Wednesday 03 November 2021 at 21:29:46, Luca Bertoncello wrote: > I tried so: > > exten => h,n(hang),Gosub(noanswer,s,1) The n there should be 1, surely? > exten => h,n,Hangup I would say "remove that line". The call has already been hung up, so calling Hangup is at best going to go into

Re: [asterisk-users] Notifying missed calls

2021-11-03 Thread Luca Bertoncello
Am 03.11.2021 um 21:24 schrieb Doug Lytle: but if the called hangs up prior the timeout for the voicemail, the Subrouting "noanswer" will not called... > > You can use the h priority for that. > > https://wiki.asterisk.org/wiki/display/AST/Special+Dialplan+Extensions Hi Doug, could

Re: [asterisk-users] Notifying missed calls

2021-11-03 Thread Doug Lytle
>>> but if the called hangs up prior the timeout for the voicemail, the >>> Subrouting "noanswer" will not called... You can use the h priority for that. https://wiki.asterisk.org/wiki/display/AST/Special+Dialplan+Extensions Doug --