[Freeswitch-users] Chat Plan Handling

Keith keith at rhizomatica.org
Sat Aug 10 13:50:55 UTC 2019

On 08/08/2019 16:23, Sean Devoy wrote:
> How can to stop the default handling of an inbound SMS message?


Hi Sean, after some long time trying to do that, then giving up, and
coming back to it, various times, I finally went for the source code
with a comb and it seems I finally found a way to do it:

Please see.

Hmm, when making that commit, I referenced:

Which is where I found in this comment:

/* The event was handled by an extension in the chatplan,

* so the event will be duplicated, modified and queued again,
 * but it won't be processed by the chatplan again.
 * So this copy of the event can be destroyed by the caller.

This is the condition for skipping the default handling:

if (switch_true
"final_delivery"))) {
    do_skip = 1;

so you need the final_delivery event header. Not sure how you add that
in an XML dialplan, or in your implementation.

Maybe the python in github can give you some clues.

and no, stop and all that does not work - It only prevents the chatplan
from execing applications. (IIUC)



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190810/f7ed0726/attachment.html>

More information about the FreeSWITCH-users mailing list