[Freeswitch-users] Using chat command in a dialplan

Kurtis Heimerl kheimerl at cs.berkeley.edu
Wed Jul 20 10:00:17 MSD 2011


I feel somewhat embarrassed, but I can't figure out how to cause a
chat event to go off from the dialplan. I've tried:

<action application="chat"
data="sip|${username}|${destination_number}@${domain_name}|${msg_body}"/>

and

<action application="eval" data="chat
sip|${username}|${destination_number}@${domain_name}|${msg_body}"/>

and neither worked. The wiki says it's part of the API
(http://wiki.freeswitch.org/wiki/Mod_dptools) but I'm pretty sure
that's just a command-line API. Is there a way to run a command-line
call from the dialplan?

Any direction would be appreciated.



More information about the FreeSWITCH-users mailing list