Re: [asterisk-users] Need feedback on the use of AMI events generated by MESSAGE requests

2020-01-30 Thread Joshua C. Colp
On Thu, Jan 30, 2020 at 11:33 AM Sylvain Boily  wrote:

>
>
> On 2020-01-30 10:30 a.m., George Joseph wrote:
>
>
>
> On Thu, Jan 30, 2020 at 12:18 AM Jean Aunis  wrote:
>
>> Hello,
>>
>> I use UserEvents generated by the Message/ast_message_queue channel with
>> the UserEvent application.
>>
>> Regards
>>
>> Jean
>>
>
> Thanks Jean.  We're looking at alternatives.
>
> Hello,
>
> Same for us.
>

Same question as I sent to Jean Aunis then - do you use any of the channel
data or strictly the user event part?

-- 
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] Need feedback on the use of AMI events generated by MESSAGE requests

2020-01-30 Thread Jean Aunis

Le 30/01/2020 à 16:33, Joshua C. Colp a écrit :
On Thu, Jan 30, 2020 at 3:18 AM Jean Aunis > wrote:


Hello,

I use UserEvents generated by the Message/ast_message_queue
channel with the UserEvent application.


Do you use any aspects of the channel itself in the user events, or 
merely the contents of the user event and what you've placed in it?
We only use the contents of the user event. These contents are populated 
with data from the MESSAGE and MESSAGE_DATA functions.


--
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] Need feedback on the use of AMI events generated by MESSAGE requests

2020-01-30 Thread Joshua C. Colp
On Thu, Jan 30, 2020 at 3:18 AM Jean Aunis  wrote:

> Hello,
>
> I use UserEvents generated by the Message/ast_message_queue channel with
> the UserEvent application.
>

Do you use any aspects of the channel itself in the user events, or merely
the contents of the user event and what you've placed in it?

-- 
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] Need feedback on the use of AMI events generated by MESSAGE requests

2020-01-30 Thread Sylvain Boily



On 2020-01-30 10:30 a.m., George Joseph wrote:



On Thu, Jan 30, 2020 at 12:18 AM Jean Aunis > wrote:


Hello,

I use UserEvents generated by the Message/ast_message_queue
channel with the UserEvent application.

Regards

Jean


Thanks Jean.  We're looking at alternatives.

Hello,

Same for us.

Sylvain
-- 
_
-- 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] Need feedback on the use of AMI events generated by MESSAGE requests

2020-01-30 Thread George Joseph
On Thu, Jan 30, 2020 at 12:18 AM Jean Aunis  wrote:

> Hello,
>
> I use UserEvents generated by the Message/ast_message_queue channel with
> the UserEvent application.
>
> Regards
>
> Jean
>

Thanks Jean.  We're looking at alternatives.



> Le 29/01/2020 à 20:31, George Joseph a écrit :
>
> For those of you who actually process SIP MESSAGE requests...  Do you use
> any of the AMI events generated by the "Message/ast_msg_queue" channel?
>  We want to change that channel to an "internal" channel that doesn't
> generate AMI events (for performance reasons) but we need to know if
> anyone's using them first.
>
> Thanks!
> --
> George Joseph
> Asterisk Software Developer
> direct/fax +1 256 428 6012
> Check us out at www.sangoma.com and www.asterisk.org
> [image: image.png]
>
> --
> _
> -- 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



-- 
George Joseph
Asterisk Software Developer
direct/fax +1 256 428 6012
Check us out at www.sangoma.com and www.asterisk.org
[image: image.png]
-- 
_
-- 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] delivery verification of instant messages with pjsip

2020-01-30 Thread hw
On Thursday, January 30, 2020 2:38:31 PM CET Joshua C. Colp wrote:
> On Thu, Jan 30, 2020 at 9:35 AM hw  wrote:
> > Hi,
> > 
> > when sending IMs from endpoint to endpoint with the MessageSend()
> > application,
> > I can check the MESSAGE_SEND_STATUS and send another message to the sender
> > of
> > the message to notify them that their message was not sent when the status
> > indicates it.
> > 
> > This works fine with chan_sip.  With chan_pjsip, this works differently in
> > that MESSAGE_SEND_STATUS is "SUCCESS" after sending the message, and only
> > later asterisk figures out that it is "Unable to retrieve contact for
> > endpoint
> > " when there are no contacts and thus the message never gets
> > delivered.
> > 
> > How can I check if the endpoint has contacts --- or preferably --- if the
> > message was actually delivered to an endpoint?  It would be sufficient to
> > get
> > it to work with endpoints that are not supposed to have more than one
> > contact.
> 
> Making MESSAGE_SEND_STATUS reflect whether the message was sent or not for
> PJSIP was merged in 2 days ago[1]. It will be in a future release. If you
> don't want to wait you could use device state to know if the device is
> reachable (and thus a MESSAGE has a chance of being sent) using the
> DEVICE_STATE dialplan function[2].

Perfect answer, thanks! :)

I think I'll just update from the git repo then and see if it works.


> [1] https://gerrit.asterisk.org/c/asterisk/+/13674
> [2]
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_DEVICE_STATE





-- 
_
-- 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] delivery verification of instant messages with pjsip

2020-01-30 Thread Joshua C. Colp
On Thu, Jan 30, 2020 at 9:35 AM hw  wrote:

> Hi,
>
> when sending IMs from endpoint to endpoint with the MessageSend()
> application,
> I can check the MESSAGE_SEND_STATUS and send another message to the sender
> of
> the message to notify them that their message was not sent when the status
> indicates it.
>
> This works fine with chan_sip.  With chan_pjsip, this works differently in
> that MESSAGE_SEND_STATUS is "SUCCESS" after sending the message, and only
> later asterisk figures out that it is "Unable to retrieve contact for
> endpoint
> " when there are no contacts and thus the message never gets
> delivered.
>
> How can I check if the endpoint has contacts --- or preferably --- if the
> message was actually delivered to an endpoint?  It would be sufficient to
> get
> it to work with endpoints that are not supposed to have more than one
> contact.
>

Making MESSAGE_SEND_STATUS reflect whether the message was sent or not for
PJSIP was merged in 2 days ago[1]. It will be in a future release. If you
don't want to wait you could use device state to know if the device is
reachable (and thus a MESSAGE has a chance of being sent) using the
DEVICE_STATE dialplan function[2].

[1] https://gerrit.asterisk.org/c/asterisk/+/13674
[2]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_DEVICE_STATE

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

[asterisk-users] delivery verification of instant messages with pjsip

2020-01-30 Thread hw
Hi,

when sending IMs from endpoint to endpoint with the MessageSend() application, 
I can check the MESSAGE_SEND_STATUS and send another message to the sender of 
the message to notify them that their message was not sent when the status 
indicates it.

This works fine with chan_sip.  With chan_pjsip, this works differently in 
that MESSAGE_SEND_STATUS is "SUCCESS" after sending the message, and only 
later asterisk figures out that it is "Unable to retrieve contact for endpoint 
" when there are no contacts and thus the message never gets delivered.

How can I check if the endpoint has contacts --- or preferably --- if the 
message was actually delivered to an endpoint?  It would be sufficient to get 
it to work with endpoints that are not supposed to have more than one contact.




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