20 Jul
2011
20 Jul
'11
6 a.m.
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.