...
Now restart postgresql
FreeSWITCH
Create a new conference profile called intercom in 8/usr/local/freeswitch/conference.conf.xml* and set it to the following:
Code Block |
---|
<profile name="intercom">
<param name="domain" value="$${domain}"/>
<param name="rate" value="16000"/>
<param name="interval" value="20"/>
<param name="energy-level" value="300"/>
<param name="sound-prefix" value="$${sounds_dir}/en/us/callie"/>
<param name="muted-sound" value="conference/conf-muted.wav"/>
<param name="unmuted-sound" value="conference/conf-unmuted.wav"/>
<param name="alone-sound" value="conference/conf-alone.wav"/>
<param name="moh-sound" value="$${hold_music}"/>
<param name="enter-sound" value=""/>
<param name="exit-sound" value=""/>
<param name="kicked-sound" value=""/>
<param name="locked-sound" value="conference/conf-locked.wav"/>
<param name="is-locked-sound" value="conference/conf-is-locked.wav"/>
<param name="is-unlocked-sound" value="conference/conf-is-unlocked.wav"/>
<param name="pin-sound" value="conference/conf-pin.wav"/>
<param name="bad-pin-sound" value="conference/conf-bad-pin.wav"/>
<param name="caller-id-name" value="$${outbound_caller_name}"/>
<param name="caller-id-number" value="$${outbound_caller_id}"/>
<param name="comfort-noise" value="true"/>
</profile>
|
Note |
---|
Be sure to create a gateway pointing to you FreeSWITCH server in sipXecs and point the appropriate numbers to it |
...
Code Block | ||
---|---|---|
| ||
#!/usr/bin/php -q <?php // set a couple of things so we dont kill the system ob_implicit_flush(true); set_time_limit(30); // Open stdin so we can read the data in $in = fopen("php://stdin", "r"); // Connect to conference echo "sendmsg\n"; echo "call-command: execute\n"; echo "execute-app-name: set\n"; echo "execute-app-arg: conference_auto_outcall_flags=mute\n\n"; echo "sendmsg\n"; echo "call-command: execute\n"; echo "execute-app-name: set\n"; echo "execute-app-arg: api_hangup_hook=conference $1 kick all\n\n"; echo "sendmsg\n"; echo "call-command: execute\n"; echo "execute-app-name: conference\n"; echo "execute-app-arg: $1@default$1@intercom\n\n"; echo "sendmsg\n"; echo "call-command: execute\n"; echo "execute-app-name: sleep\n"; echo "execute-app-arg: 350\n"; echo "event-lock:true\n\n"; // Play a prompt at the beginning of the page/conference echo "sendmsg\n"; echo "call-command: execute\n"; echo "execute-app-name: set\n"; echo "execute-app-arg: tmp=\${conference $1 play /usr/local/freeswitch/sounds/tones/norstar.wav}\n\n"; fclose($in); ?> |
...