Misc. Dialplan Tools chat

From FreeSWITCH Wiki
Jump to: navigation, search

Contents

Description

Send a text message to a IM client.

Usage

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

Examples

from console

chat sip|1000@172.20.0.1|1001@172.20.0.1|Hello chat from freeswitch
  • 1000/1001 are different users
  • 172.20.0.1 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@41.200.0.1|external/sip:SCS@conference.freeswitch.org|hi from freeswitch

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

See Also