<div dir="ltr">Let me guess - you are using linphone with <a href="http://www.linphone.org/news/54/26/IM-Delivery-status-now-available-in-Linphone-for-iOS-and-Android.html">not fully implemented RFC5438</a><br><div>RFC requires to use Message-ID for such purpose</div><div><a href="https://tools.ietf.org/html/rfc5438#section-6.3">https://tools.ietf.org/html/rfc5438#section-6.3</a><br></div><div><pre class="inbox-inbox-newpage" style="font-size:13.3333px;margin-top:0px;margin-bottom:0px">The IM Sender MUST include the Message-ID header field in the IM for
   which he wishes to receive an IMDN.</pre></div><div><br></div><div><a href="https://tools.ietf.org/html/rfc5438#section-7.1.1.1">https://tools.ietf.org/html/rfc5438#section-7.1.1.1</a><br></div><div><pre class="inbox-inbox-newpage" style="font-size:13.3333px;margin-top:0px;margin-bottom:0px">If the IM Sender requests the reception of IMDNs, the IM Sender MUST
   include a Message-ID header field.</pre></div><div><br>On one project customer already have issue with IMDN looping because linphone non RFC compliant.</div><div><br></div><div>Customer resolved issue by implemented RFC compliant IMDN in linphone.<br><br>Sergey</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">ср, 15 нояб. 2017 г. в 14:52, Marko Djuric <<a href="mailto:Marko.Djuric@amphinicy.com">Marko.Djuric@amphinicy.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looping should be avoided by checking the X-FS-Sending-Message header. Still, changing the Call-ID may present another set of issues.<br>
Is it possible to read the Call-ID from the chatplan, in the similar manner how it's done in dialplan, other than parsing it from SIP trace?<br>
<br>
Thank you for response,<br>
Marko<br>
<br>
> -----Original Message-----<br>
> From: Sergey Safarov [mailto:<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>]<br>
> Sent: Tuesday, November 14, 2017 4:24 PM<br>
> To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
> Subject: Re: [Freeswitch-users] mod_sms chat messages delivery notification<br>
><br>
> My experiance say that Call-ID change is required to prevent message loops.<br>
> Looks like need to use other header or field to correlate messages.<br>
><br>
><br>
> вт, 14 нояб. 2017 г., 13:44 Marko Djuric <<a href="mailto:Marko.Djuric@amphinicy.com" target="_blank">Marko.Djuric@amphinicy.com</a><br>
> <mailto:<a href="mailto:Marko.Djuric@amphinicy.com" target="_blank">Marko.Djuric@amphinicy.com</a>> >:<br>
><br>
><br>
>       Hi all,<br>
><br>
>       We're using mod_sms for SIP SIMPLE messaging with delivery<br>
> notifications<br>
>       (message/imdn+xml).<br>
>       The Call-ID is changed in the chatplan, and this causes issues with<br>
> matching<br>
>       the delivery notifications to the original message.<br>
><br>
>       Changing the Call-ID itself is not an issue, but I'm wondering if it is<br>
>       possible to read the original Call-ID and/or manually set the Call-ID in<br>
> the<br>
>       chatplan.<br>
><br>
>       The message:getHeader("sip_call_id") does not contain the Call-ID. My<br>
>       understanding is that this is due to skip_global_process=false variable<br>
> set<br>
>       by mod_sms.<br>
>       Setting the sip_call_id variable also does not produce a desired effect,<br>
> as<br>
>       it is added as another header instead of setting the Call-ID one.<br>
><br>
>       The question is - how to match the messages before and after the<br>
> chatplan?<br>
><br>
>       Any help is appreciated.<br>
><br>
>       Thank you!<br>
>       Marko<br>
><br>
>       __________________________________________________________<br>
> _______________<br>
>       Professional FreeSWITCH Consulting Services:<br>
>       <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>><br>
>       <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
>       Official FreeSWITCH Sites<br>
>       <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>       <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>       <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
>       FreeSWITCH-users mailing list<br>
>       <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a> <mailto:<a href="mailto:FreeSWITCH-" target="_blank">FreeSWITCH-</a><br>
> <a href="mailto:users@lists.freeswitch.org" target="_blank">users@lists.freeswitch.org</a>><br>
>       <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>       UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-</a><br>
> users<br>
>       <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div>