For MWI you make the FreeSWITCH event SWITCH_EVENT_MESSAGE_WAITING with headers:
MWI-Messages-Waiting (yes/no) MWI-Message-Account <any sip url you want> MWI-Voice-Message x/y (a/b) read/unread (urgent read/urgent unread)
sendevent SEND_INFO profile: external content-type: text/plain to-uri: sip:email@example.com from-uri: sip:firstname.lastname@example.org content-length: 15 test
originate a call directly to park by making an ext the ext part of the originate command &park()IMPORTANT!
Since messaging format is similar
FreeSWITCH will ignore wrapped lines. See "FreeSWITCH EventSocket header length" post for more.
sendmsg <uuid> call-command: execute execute-app-name: playback execute-app-arg: /tmp/test.wav
The first command is Call-Command, it can do one of the following subcommands:
The format should be:
sendmsg <uuid> call-command: execute execute-app-name: <one of the applications> execute-app-arg: <application data> loops: <number of times to invoke the command, default: 1>
sendmsg <uuid> call-command: execute execute-app-name: <one of the applications> loops: <number of times to invoke the command, default: 1> content-type: text/plain content-length: <content length> <application data>
If you would like to correlate the When an application is executed via
CHANNEL_EXECUTE_COMPLETE events that are generated when the command you send using sendmsg is executed you can add going to be generated. If you would like to correlate these two events then add an
Event-UUID header with a your custom UUID you specify. In the corresponding events, the UUID will be in the
Application-UUID header. If you do not specify an
Event-UUID, Freeswitch will automatically generate a UUID for the
Hangup Hang up the call.
sendmsg <uuid> call-command: hangup hangup-cause: <one of the causes listed below>
unicast is used to hook up spandsp for faxing over a socket.
Additional information from Brian:
sendmsg <uuid> call-command: unicast local-ip: <default is 127.0.0.1> local-port: <default is 8025> remote-ip: <default is 127.0.0.1> remote-port: <default is 8026> transport: <either "tcp" or "udp", without the quotes> and optionally flags: native - don't transcode audio to/from L16
sendmsg <uuid> call-command: nomedia nomedia-uuid: <noinfo>
From Stéphane Alnet's comment:
Close the socket connection.