Call Us Today! 877.742.2583




Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

About

Excerpt

Send a text message to an IM client.

Usage

<action application="chat" data="protocol | from_jid | to_jid | message | [<content-type>]"/>

Fields are separated with the pipe | character. Whitespace is allowed between the pipe character and the data fields.

protocol — One of sip, verto, jingle; others? add here.

from_jid — uri of the originator or sender

to_jid — uri of the recipient of the message

message — the body of the message to send

content-type — defaults to text

CLI

Here is an example sending to SIP and Verto endpoints:

Code Block
languageperl
themeEmacs
languageperl
titlePerl
freeswitch@default>chat sip|Server@FS.local|1000@domain.local|Hello chat fromvia SIP!
freeswitch@default>chat verto|Server@FS.local|1000@domain.local|Hello chat fromvia Verto!

 

Perl

Code Block
languageperl
themeEmacs
languageperl
titlePerl
$api = new freeswitch::API();
$foo = $api->execute("chat", "jingle|from_jid|to_jid|test Jingle message"); 

 

See Also