Re: [asterisk-users] Listen to ARI events

2023-06-06 Thread TTT
I tried the command below (with subscribeAll=yes).  I made a couple of calls 
but didn’t see any events.  Should I see events?

 

From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf 
Of Joshua C. Colp
Sent: Tuesday, June 6, 2023 6:31 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [asterisk-users] Listen to ARI events

 

On Tue, Jun 6, 2023 at 6:04 PM TTT mailto:li...@telium.io> > 
wrote:

I have the ARI enabled on my Asterisk test box, and want to listen to all 
events.  I can’t find the syntax to do that.  Can I only listen to events 
related to a stasis app?  

 

I was hoping that a simple wscat command like this would show me all events:

 

wscat -c "ws://localhost:8088/ari/events?api_key=asterisk:asterisk "

 

This does not listen to all events by default. If you want to listen to 
everything you can pass subscribeAll=yes[1] like so:

 

ws://localhost:8088/ari/events?api_key=asterisk:asterisk=yes

 

[1] 
https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Events+REST+API#Asterisk20EventsRESTAPI-userEvent


 

-- 

Joshua C. Colp

Asterisk Project Lead

Sangoma Technologies

Check us out at www.sangoma.com   and www.asterisk.org 
 

-- 
_
-- 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] Listen to ARI events

2023-06-06 Thread Joshua C. Colp
On Tue, Jun 6, 2023 at 6:04 PM TTT  wrote:

> I have the ARI enabled on my Asterisk test box, and want to listen to all
> events.  I can’t find the syntax to do that.  Can I only listen to events
> related to a stasis app?
>
>
>
> I was hoping that a simple wscat command like this would show me all
> events:
>
>
>
> wscat -c "ws://localhost:8088/ari/events?api_key=asterisk:asterisk "
>

This does not listen to all events by default. If you want to listen to
everything you can pass subscribeAll=yes[1] like so:

ws://localhost:8088/ari/events?api_key=asterisk:asterisk=yes

[1]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Events+REST+API#Asterisk20EventsRESTAPI-userEvent

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-- 
_
-- 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] Adding Voicemail to My System

2023-06-06 Thread Mark Murawski

Hi Steve,

You must be using a prebuilt system, maybe a prebuilt Asterisk-based 
distribution?   Asterisk does not send email by default... Almost 
nothing is done by default.  Things like sending email have to be 
specifically configured to do so in voicemail.conf.  If you don't want 
to send email, remove the email addresses.


For custom greeting, best bet is Playback() that greeting and then call 
VoiceMail() with the 's' option for silent which means no greeting.  Or 
you can do the 'welcome' process for setting up a new email box and set 
the busy/unavailable greetings inside the mailbox itself.  There's an 
option in the docs to force new-user-setup if the pin number matches the 
extension.


Asterisk Console: core show application Voicemail



On 6/6/23 17:21, Steve Matzura wrote:

I'm setting up voicemail on my answering-machine project.


Since the directory for voicemail messages for an extension doesn't 
exist until there's a message to be saved therein, how can I create a 
custom greeting since it goes in that directory? That's what it sounds 
like the book is telling me anyway.



Also, how do I tell the Voicemail() application to play a custom 
greeting? I don't mean one I can create with VoicemailMain; I mean to 
play a prepared file, or possibly have no greeting at all, with the 
greeting message actually being contained in the message played in the 
Play() application. It doesn't matter which way I do it, I'm just 
trying to figure out how to do one or the other, whichever is the 
right way.




And one more, if I don't want voicemail messages to be sent out by 
email, how do I suppress this? It seems that the default is to send 
the email, but there's no option I could found that lets me say no, 
don't send.






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

[asterisk-users] Adding Voicemail to My System

2023-06-06 Thread Steve Matzura

I'm setting up voicemail on my answering-machine project.


Since the directory for voicemail messages for an extension doesn't 
exist until there's a message to be saved therein, how can I create a 
custom greeting since it goes in that directory? That's what it sounds 
like the book is telling me anyway.



Also, how do I tell the Voicemail() application to play a custom 
greeting? I don't mean one I can create with VoicemailMain; I mean to 
play a prepared file, or possibly have no greeting at all, with the 
greeting message actually being contained in the message played in the 
Play() application. It doesn't matter which way I do it, I'm just trying 
to figure out how to do one or the other, whichever is the right way.




And one more, if I don't want voicemail messages to be sent out by 
email, how do I suppress this? It seems that the default is to send the 
email, but there's no option I could found that lets me say no, don't send.



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

[asterisk-users] Listen to ARI events

2023-06-06 Thread TTT
I have the ARI enabled on my Asterisk test box, and want to listen to all
events.  I can't find the syntax to do that.  Can I only listen to events
related to a stasis app?  

 

I was hoping that a simple wscat command like this would show me all events:

 

wscat -c "ws://localhost:8088/ari/events?api_key=asterisk:asterisk "

 

I know how to do it form the AMI.looking for something similar.

 

Thanks

Brian

(Ast newbie)

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