Misc. Dialplan Tools chat

From FreeSWITCH Wiki
Revision as of 22:39, 1 February 2012 by Tobarja (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



Send a text message to a IM client.


chat <proto>|<from>|<to>|<message>


from console

chat sip|1000@|1001@|Hello chat from freeswitch
  • 1000/1001 are different users
  • is your SIP domain

From Perl

$api = new freeswitch::API();
$foo = $api->execute("chat", "jingle|from_jid|to_jid|test");

sending chat message to external URI

chat sip|1000@|external/sip:SCS@conference.freeswitch.org|hi from freeswitch

in this case, SCS@conference.freeswitch.org is the external URI while is your freeswitch public IP

See Also