...
Code Block |
---|
cd /usr/tmp wget http://files.freeswitch.org/g729/fsg729-158167-installer sh ./fsg729-158167-installer |
Note: fsg729-139-installer did not work with FreeSWITCH Version 1.0.head (1), try 136, the previous one if it gave error such as (var/log/sipxpbx/freeswitch.log):
...
System/Servers/Server nnn/Media Services/Codec
System/Servers/Server nnn/SIP trunking/SIP/Permitted Codecs (TBD: I don't think this applies – douglas)
Click "Apply" button on each page even though you haven't changed anything to trigger config change and prompt to restart Media Services. Go ahead and restart "Media Services"
Info |
---|
freeswitch_licence_server is automatically started by mod_com_g729 if freeswitch is started by root, but in sipXecs freeswitch is not started by root. So you have to start freeswitch_license_server manually: /usr/sbin/freeswitch_license_server
Code Block |
---|
cd /usr/sbin
./freeswitch_ licenselicence_server |
Putting this in init.d worked for me to make it start with the server:
Create an entry in /etc/rc.d/init.d (ex: G729app) and paste this in:
Code Block |
---|
#!/bin/sh
# description: FS_LIC_SVR
# chkconfig: 2345 99 00
case "$1" in
'start')
/usr/sbin/freeswitch_licence_server
touch /var/lock/subsys/G729app
;;
'stop')
rm -f /var/lock/subsys/G729app
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
|
if the license server is not working or the license is invalid, freeswitch will complain (var/log/sipxpbx/freeswitch.log):
Code Block |
---|
[ERR] mod_com_g729.c:113 ENCODER CREATE FAILED- 0x9c213b0 (nil)
[ERR] switch_core_io.c:882 Codec G.729 encoder error!
|
Monitoring License
Run the freeswitch console:
Code Block |
---|
cd /usr/local/freeswitch/bin ./fs_cli (First, unload the passthru mod, and licensed one, and reload the licensed one) freeswitch@internal>unload mod_g729 freeswitch@internal>unload mod_com_g729 freeswitch@internal>load mod_com_g729 Here are the g729 commands to run from the fs_cli. These are not available until you load the mod_com_g729 module. I think the FS docs allude to freeswitch@internal>a g729_status, which probably worked on the older Permitted G.729AB channels: 1binaries, but has since been replaced with these. I think the docs on their site probably need to be changed. Once the mod_com_g729 has successfully loaded, you will see the following option from the "help" command of the fs_cli: g729_available,,return true or false if g729 is available,mod_com_g729 g729_count,,return permitted license count,mod_com_g729 g729_info,,return current g729 usage details,mod_com_g729 g729_used,,return in use encoder and decoders,mod_com_g729 freeswitch@internal>g729_available true freeswitch@internal>g729_count 2 freeswitch@internal>g729_info Permitted G729 channels: 2 Encoders in use: 0 Decoders in use: 0 freeswitch@internal>g729_used 0:0 |
OK, but WAIT, we are not done! Now we have to activate the licenses in sipx media server and restart media server. We also need to look in