Re: [asterisk-users] Send message to AMI from dialplan

2020-06-12 Thread Joshua C. Colp
On Fri, Jun 12, 2020 at 11:27 AM Telium Technical Support 
wrote:

> Is it possible to simply send a message to appear as an AMI message/event,
> from the dialplan?  For example
>

The UserEvent dialplan application[1] exists for raising user defined AMI
events.

[1]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Application_UserEvent


-- 
Joshua C. Colp
Asterisk Technical 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] Send message to AMI from dialplan

2020-06-12 Thread Antony Stone
On Friday 12 June 2020 at 16:26:45, Telium Technical Support wrote:

> Is it possible to simply send a message to appear as an AMI message/event,
> from the dialplan?

https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_UserEvent

Antony.

-- 
"Good health" is merely the slowest rate at which you can die.

   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

[asterisk-users] Send message to AMI from dialplan

2020-06-12 Thread Telium Technical Support
Is it possible to simply send a message to appear as an AMI message/event,
from the dialplan?  For example

 

exten =>123,1,ami(myEvent, param1, param2)

 

and in the AMI a message appears like:

 

Event: myEvent

Privilege: call,all

Channel: PJSIP/misspiggy-0001

Uniqueid: 1368479157.3

ChannelState: 3

ChannelStateDesc: Up

CallerIDNum: 657-5309

CallerIDName: Miss Piggy

ConnectedLineName:

ConnectedLineNum:

AccountCode: Pork

Priority: 1

Exten: 123

Context: inbound

Parameter1: param1

Parameter2: param2

 

 

I'm thinking about ways that I can send messages from the dialplan to my own
application which listens to AMI events.

 

Thanks

Andrea

Trainee

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