Added support for mod_rtmp (Real Time Messaging Protocol)
authorMazi Lo <OpenWRT@slickdeals.endjunk.com>
Sat, 18 Jun 2011 00:57:22 +0000 (00:57 +0000)
committerMazi Lo <OpenWRT@slickdeals.endjunk.com>
Sat, 18 Jun 2011 00:57:22 +0000 (00:57 +0000)
SVN-Revision: 27211

net/freeswitch/Makefile
net/freeswitch/files/etc.minimal/autoload_configs/logfile.conf.xml [new file with mode: 0644]
net/freeswitch/files/etc.packages/rtmp/autoload_configs/rtmp.conf.xml [new file with mode: 0644]

index e8648c69095ccf3e7c5965ae27b4c050080b2155..a18e460d87696185125d121d49306f3ad0504828 100644 (file)
@@ -14,7 +14,7 @@ PKG_RELEASE:=1
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=git://git.$(PKG_NAME).org/$(PKG_NAME).git
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_REV:=1c6b7d81618a943be9b1c0720bc0032b34b2876a
+PKG_REV:=0128bce4ac222c6e0ee17ee9f89b63678ff8cf97
 PKG_SOURCE_VERSION:=$(PKG_REV)
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@@ -88,6 +88,7 @@ FS_MOD_AVAILABLE:= \
        python \
        radius-cdr \
        rss \
+       rtmp \
        say-de \
        say-en \
        say-es \
@@ -137,6 +138,7 @@ FS_MOD_AVAILABLE:= \
 PKG_CONFIG_DEPENDS:= \
        $(patsubst %,CONFIG_PACKAGE_$(PKG_NAME)-mod-%,$(FS_MOD_AVAILABLE)) \
 
+include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
 
 define Package/$(PKG_NAME)/Default
@@ -472,6 +474,8 @@ define Package/$(PKG_NAME)-tools/install
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_cli $(1)/usr/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_encode $(1)/usr/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/fs_ivrd $(1)/usr/bin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/fsxs $(1)/usr/bin/
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/gentls_cert $(1)/usr/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/tone2wav $(1)/usr/bin/
 endef
 
@@ -592,6 +596,7 @@ $(eval $(call BuildPlugin,portaudio-stream,format mod_portaudio_stream,mod_porta
 $(eval $(call BuildPlugin,python,Python language interface,mod_python,,@BROKEN)) # needs Python
 $(eval $(call BuildPlugin,radius-cdr,Radius-CDR interface,mod_radius_cdr,,@BROKEN)) # fails in freeradius-client
 $(eval $(call BuildPlugin,rss,RRS feeds via TTS,mod_rss,,))
+$(eval $(call BuildPlugin,rtmp,RTMP Protocol Handler,mod_rtmp,,))
 $(eval $(call BuildPlugin,say-de,German say,mod_say_de,,))
 $(eval $(call BuildPlugin,say-en,English say,mod_say_en,,))
 $(eval $(call BuildPlugin,say-es,Spanish say,mod_say_es,,))
@@ -628,7 +633,7 @@ $(eval $(call BuildPlugin,stress,application mod_stress,mod_stress,,))
 $(eval $(call BuildPlugin,syslog,SysLog logger,mod_syslog,,))
 $(eval $(call BuildPlugin,tone-stream,Tone generation stream,mod_tone_stream,,))
 $(eval $(call BuildPlugin,tts-commandline,ASR TTS cli,mod_tts_commandline,,))
-$(eval $(call BuildPlugin,unimrcp,MRCP interface,mod_unimrcp,,))
+$(eval $(call BuildPlugin,unimrcp,MRCP interface,mod_unimrcp,,@BROKEN))
 $(eval $(call BuildPlugin,valet-parking,application mod_valet_parking,mod_valet_parking,,))
 $(eval $(call BuildPlugin,vmd,VoiceMail beep detection,mod_vmd,,))
 $(eval $(call BuildPlugin,voicemail,VoiceMail,mod_voicemail,,))
diff --git a/net/freeswitch/files/etc.minimal/autoload_configs/logfile.conf.xml b/net/freeswitch/files/etc.minimal/autoload_configs/logfile.conf.xml
new file mode 100644 (file)
index 0000000..57f276c
--- /dev/null
@@ -0,0 +1,26 @@
+<configuration name="logfile.conf" description="File Logging">
+  <settings>
+   <!-- true to auto rotate on HUP, false to open/close -->
+   <param name="rotate-on-hup" value="true"/>
+  </settings>
+  <profiles>
+    <profile name="default">
+      <settings>
+        <!-- File to log to -->
+       <!--<param name="logfile" value="/var/log/freeswitch.log"/>-->
+        <!-- At this length in bytes rotate the log file (0 for never) -->
+        <param name="rollover" value="10485760"/>
+               <!-- Uncomment to prefix all log lines by the session's uuid  -->
+               <!-- <param name="uuid" value="true" /> -->
+      </settings>
+      <mappings>
+       <!-- 
+            name can be a file name, function name or 'all' 
+            value is one or more of debug,info,notice,warning,err,crit,alert,all
+            Please see comments in console.conf.xml for more information
+       -->
+       <map name="all" value="debug,info,notice,warning,err,crit,alert"/>
+      </mappings>
+    </profile>
+  </profiles>
+</configuration>
diff --git a/net/freeswitch/files/etc.packages/rtmp/autoload_configs/rtmp.conf.xml b/net/freeswitch/files/etc.packages/rtmp/autoload_configs/rtmp.conf.xml
new file mode 100644 (file)
index 0000000..d5d2788
--- /dev/null
@@ -0,0 +1,17 @@
+<configuration name="rtmp.conf" description="RTMP Endpoint">
+  <profiles>
+       <profile name="default">
+               <settings>
+                       <param name="bind-address" value="0.0.0.0:1935" />
+                       <param name="context" value="public" />
+                       <param name="dialplan" value="XML" />
+                       <!-- If this is set to true, no unauthenticated inbound calls will be allowed -->
+                       <param name="auth-calls" value="true" />
+                       <!-- How much time should the clients buffer the media stream (miliseconds) -->
+                       <param name="buffer-len" value="50" />
+                       <!-- Sets the maximum size of outbound RTMP chunks -->
+                       <param name="chunksize" value="512" />
+               </settings>
+       </profile>
+  </profiles>
+</configuration>