Re: [asterisk-users] Stuck "channel"

2019-11-02 Thread Carlos Chavez

    So a restart is the only way to get rid of it?

On 11/1/2019 9:28 AM, Richard Mudgett wrote:



On Thu, Oct 31, 2019 at 11:05 PM Carlos Chavez > wrote:


I have tried both by hand and hitting tab to auto complete:

*CLI> channel request hangup Message/ast_msg_queue
Message/ast_msg_queue is not a known channel


This channel is used for processing all out of dialog SIP MESSAGE 
requests in the dialplan.  It cannot be hung up.


Richard


-- 
_
-- 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

Re: [asterisk-users] email notification on missed call

2019-11-02 Thread Frank Vanoni
On Sat, 2019-11-02 at 11:42 +0100, Antony Stone wrote:

> Doesn't that send an email for every call once it ends, not just
> unanswered ones?

Whoops! You are right! :-)

exten => h,1,GotoIf($["${DIALSTATUS}" = "ANSWER"]?done)
exten => h,n,System(echo "Missed Call Open on Asterisk from
${CALLERID(num)}" | mail -s "Missed VIP Call on Asterisk from
${CALLERID(num)}" -a "From: Astersik PBX " myemailaddr
e...@example.com)
exten => h,n(done),NoOp()
exten => h,n,HangUp()

> > exten => h,n,HangUp()
> That looks most strange to me - calling Hangup() in the hangup
> extension...

:-D

Probably it is not necessary. But isn't a good practice to end any
extension with a "HangUp"?



-- 
_
-- 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

Re: [asterisk-users] email notification on missed call

2019-11-02 Thread Antony Stone
On Saturday 02 November 2019 at 10:56:19, Frank Vanoni wrote:

> On Wed, 2019-10-30 at 05:10 +0100, Fourhundred Thecat wrote:
> > what is the best way to implement email notification on missed call ?
> > 
> > Is there perhaps a better way to this than described above ?
> 
> This is my way:
> 
> exten => h,1,System(echo "Missed Call Open on Asterisk from
> ${CALLERID(num)}" | mail -s "Missed VIP Call on Asterisk from
> ${CALLERID(num)}" -a "From: Asterisk PBX "
> myemailaddr...@example.com)

Doesn't that send an email for every call once it ends, not just unanswered 
ones?

> exten => h,n,HangUp()

That looks most strange to me - calling Hangup() in the hangup extension...

-- 
The idea that Bill Gates appeared like a knight in shining armour to lead all 
customers out of a mire of technological chaos neatly ignores the fact that it 
was he who, by peddling second-rate technology, led them into it in the first 
place.

 - Douglas Adams in The Guardian, 25th August 1995

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- 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

Re: [asterisk-users] email notification on missed call

2019-11-02 Thread Frank Vanoni
On Wed, 2019-10-30 at 05:10 +0100, Fourhundred Thecat wrote:

> what is the best way to implement email notification on missed call ?

> Is there perhaps a better way to this than described above ?

This is my way:

exten => h,1,System(echo "Missed Call Open on Asterisk from
${CALLERID(num)}" | mail -s "Missed VIP Call on Asterisk from
${CALLERID(num)}" -a "From: Astersik PBX " myemailaddr
e...@example.com)

exten => h,n,HangUp()



-- 
_
-- 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