freeswitch/scripts/c/socket2me
Brian West 3734f4cd44 bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00
..
Makefile more clean up 2009-06-27 00:40:56 +00:00
README more clean up 2009-06-27 00:40:56 +00:00
socket2me.c bump copyright date and fix some email and typos from diego. 2011-01-05 10:09:04 -06:00

README

EXAMPLE OF EVENT SOCKET EXTERNAL APP: REQUIRES mod_event_socket

Set this or something similar in your dialplan

<extension name="fax">
  <condition field="destination_number" expression="^866">
    <action application="set" data="fax_file_name=/tmp/cool.tiff"/>
    <!--"send" or "recv"-->
    <action application="set" data="fax_mode=send"/>
    <action application="socket" data="127.0.0.1:8084 async"/>
  </condition>
</extension>


and in a separate process run 
#./socket2me 127.0.0.1 127.0.0.1 8084