提交 3d9538b3 authored 作者: Diego Viola's avatar Diego Viola

some minor changes

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/contrib@17008 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 26dfa147
...@@ -4,11 +4,11 @@ require 'rubygems' ...@@ -4,11 +4,11 @@ require 'rubygems'
require 'fsr' require 'fsr'
require "fsr/listener/inbound" require "fsr/listener/inbound"
def custom_channel_hangup_handler(event) def custom_channel_presence_handler(event)
FSR::Log.info "From: #{event.content[:from]} - #{event.content[:status]}" FSR::Log.info "From: #{event.content[:from]} - #{event.content[:status]}"
end end
FSL::Inbound.add_event_hook(:PRESENCE_IN) {|event| custom_channel_hangup_handler(event) } FSL::Inbound.add_event_hook(:PRESENCE_IN) {|event| custom_channel_presence_handler(event) }
FSL::Inbound.add_event_hook(:PRESENCE_OUT) {|event| custom_channel_hangup_handler(event) } FSL::Inbound.add_event_hook(:PRESENCE_OUT) {|event| custom_channel_presence_handler(event) }
FSR.start_ies!(FSL::Inbound, :host => "localhost", :port => 8021) FSR.start_ies!(FSL::Inbound, :host => "localhost", :port => 8021)
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论