The from/to fields may be matched but this does not isolate the messages. Tags are different as well. And for message delivery notification, Call-ID is used to match delivered / viewed messages. In dialplan, sip_call_id variable exposes the Call-ID. I’m looking for a way to read the same variable within the chatplan. Thanks, Marko From: Sergey Safarov [mailto:s.safarov@gmail.com] Sent: Tuesday, November 14, 2017 4:24 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] mod_sms chat messages delivery notification My experiance say that Call-ID change is required to prevent message loops. Looks like need to use other header or field to correlate messages. вт, 14 нояб. 2017 г., 13:44 Marko Djuric <Marko.Djuric@amphinicy.com <mailto:Marko.Djuric@amphinicy.com> >: Hi all, We're using mod_sms for SIP SIMPLE messaging with delivery notifications (message/imdn+xml). The Call-ID is changed in the chatplan, and this causes issues with matching the delivery notifications to the original message. Changing the Call-ID itself is not an issue, but I'm wondering if it is possible to read the original Call-ID and/or manually set the Call-ID in the chatplan. The message:getHeader("sip_call_id") does not contain the Call-ID. My understanding is that this is due to skip_global_process=false variable set by mod_sms. Setting the sip_call_id variable also does not produce a desired effect, as it is added as another header instead of setting the Call-ID one. The question is - how to match the messages before and after the chatplan? Any help is appreciated. Thank you! Marko _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org