<div dir="ltr"><div dir="ltr">On Thu, Jan 30, 2020 at 9:35 AM hw <<a href="mailto:hw@gc-24.de">hw@gc-24.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
when sending IMs from endpoint to endpoint with the MessageSend() application, <br>
I can check the MESSAGE_SEND_STATUS and send another message to the sender of <br>
the message to notify them that their message was not sent when the status <br>
indicates it.<br>
<br>
This works fine with chan_sip. With chan_pjsip, this works differently in <br>
that MESSAGE_SEND_STATUS is "SUCCESS" after sending the message, and only <br>
later asterisk figures out that it is "Unable to retrieve contact for endpoint <br>
<xxx>" when there are no contacts and thus the message never gets delivered.<br>
<br>
How can I check if the endpoint has contacts --- or preferably --- if the <br>
message was actually delivered to an endpoint? It would be sufficient to get <br>
it to work with endpoints that are not supposed to have more than one contact.<br></blockquote><div><br></div><div>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].</div></div><div><br></div>[1] <a href="https://gerrit.asterisk.org/c/asterisk/+/13674">https://gerrit.asterisk.org/c/asterisk/+/13674</a><div>[2] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_DEVICE_STATE">https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_DEVICE_STATE</a><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div></div>