| 1 | = Freeswitch Mexcla Admin = |
| 2 | |
| 3 | mexcla is installed on paul.mayfirst.org (the same server hosting our freeswitch installation). |
| 4 | |
| 5 | It is a python script that is available via git://git.mayfirst.org/mfpl/mexcla |
| 6 | |
| 7 | It runs as a daemon on 127.0.0.1, listening on port 8888. It's controlled by runit and runs as the mexcla user. |
| 8 | |
| 9 | It depends on the python-twisted package and the eventsocket python freeswitch library (http://github.com/fiorix/eventsocket). |
| 10 | |
| 11 | On paul, the eventsocket python library is checked out via git in /usr/local/share/eventsocket and mexcla is checked out via git in /usr/local/share/mexcla |
| 12 | |
| 13 | I made the following changes to our freeswitch installation to get it to work: |
| 14 | |
| 15 | {{{ |
| 16 | diff --git a/autoload_configs/conference.conf.xml b/autoload_configs/conference.conf.xml |
| 17 | index 826f6fb..bd26edd 100644 |
| 18 | --- a/autoload_configs/conference.conf.xml |
| 19 | +++ b/autoload_configs/conference.conf.xml |
| 20 | @@ -10,14 +10,14 @@ |
| 21 | <!-- Note: none and default are reserved names for group names. Disabled if dist-dtmf member flag is set. --> |
| 22 | <caller-controls> |
| 23 | <group name="default"> |
| 24 | - <control action="mute" digits="0"/> |
| 25 | + <!-- <control action="mute" digits="0"/> --> |
| 26 | <control action="deaf mute" digits="*"/> |
| 27 | <control action="energy up" digits="9"/> |
| 28 | <control action="energy equ" digits="8"/> |
| 29 | <control action="energy dn" digits="7"/> |
| 30 | <control action="vol talk up" digits="3"/> |
| 31 | - <control action="vol talk zero" digits="2"/> |
| 32 | - <control action="vol talk dn" digits="1"/> |
| 33 | + <!-- <control action="vol talk zero" digits="2"/> --> |
| 34 | + <!-- <control action="vol talk dn" digits="1"/> --> |
| 35 | <control action="vol listen up" digits="6"/> |
| 36 | <control action="vol listen zero" digits="5"/> |
| 37 | <control action="vol listen dn" digits="4"/> |
| 38 | diff --git a/autoload_configs/ivr-mfpl.xml b/autoload_configs/ivr-mfpl.xml |
| 39 | index 0eeafe6..91644d8 100644 |
| 40 | --- a/autoload_configs/ivr-mfpl.xml |
| 41 | +++ b/autoload_configs/ivr-mfpl.xml |
| 42 | @@ -14,9 +14,9 @@ |
| 43 | <entry action="menu-exec-app" digits="1" param="execute_extension jamie"/> |
| 44 | <entry action="menu-exec-app" digits="2" param="execute_extension alfredo"/> |
| 45 | <entry action="menu-exec-app" digits="7" param="conference 3000@default"/> |
| 46 | - <!-- <entry action="menu-sub" digits="7" param="mfpl_conference"/> --> |
| 47 | <entry action="menu-exec-app" digits="3" param="execute_extension mallory"/> |
| 48 | <entry action="menu-exec-app" digits="8" param="execute_extension vmain"/> |
| 49 | + <entry action="menu-exec-app" digits="6" param="socket 127.0.0.1:8888 async full"/> |
| 50 | <entry action="menu-top" digits="9"/> <!-- Repeat this menu --> |
| 51 | </menu> |
| 52 | <menu name="mfpl_conference" |
| 53 | diff --git a/dialplan/mfpl/incoming.xml b/dialplan/mfpl/incoming.xml |
| 54 | index 92e8626..a5159d8 100644 |
| 55 | --- a/dialplan/mfpl/incoming.xml |
| 56 | +++ b/dialplan/mfpl/incoming.xml |
| 57 | @@ -36,6 +36,11 @@ |
| 58 | <action application="conference" data="3000@default"/> |
| 59 | </condition> |
| 60 | </extension> |
| 61 | + <extension name="Mexcla Conference"> |
| 62 | + <condition field="destination_number" expression="^9999$"> |
| 63 | + <action application="socket" data="127.0.0.1:8888 async full"/> |
| 64 | + </condition> |
| 65 | + </extension> |
| 66 | |
| 67 | </include |
| 68 | }}} |