Jure Bernava Prah
New Member
Hi!
We are trying to use on_record_hook after the recording of video streaming. The file is created correctly into /records directory. But it seems the hook on_record_hook.sh is not executed.
Our script for testing:
If I shell "sh /opt/on_record_hook.sh", the file PUPPA is created correctly and "HOOK WORK CORRECTLY" is printed into log.
our flashphoner.property are:
We are trying to use on_record_hook after the recording of video streaming. The file is created correctly into /records directory. But it seems the hook on_record_hook.sh is not executed.
Our script for testing:
Code:
/usr/bin/logger "HOOK WORK CORRECTLY"
touch "/usr/local/FlashphonerWebCallServer/records/PUPPA"
our flashphoner.property are:
Code:
ip =80.XXX.XXX.XXX
ip_local =10.10.XXX.XXX
port_from =XX000
port_to =XX000
media_port_from =XX001
media_port_to =XX000
waiting_answer =60
user_agent =Flashphoner/1.0
balance_header =balance
cost_header =cost
video_enabled =true
domain =
outbound_proxy =
outbound_port =
log_level =10
enable_context_logs =false
rtp_activity_detecting =true,60
sip_msg_listener =com.flashphoner.sdk.sip.ChangeCallIdListener
call_record_listener =com.flashphoner.server.client.DefaultCallRecordListener
dtmf =rfc2833
auto_login_url =/usr/local/FlashphonerWebCallServer/conf/account.xml
get_callee_url =/usr/local/FlashphonerWebCallServer/conf/callee.xml
codecs =opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,vp8,h264,flv,mpv
codecs_exclude_sip =mpeg4-generic,flv,mpv
codecs_exclude_streaming =flv,telephone-event
codecs_exclude_sip_rtmp =opus,g729,g722,mpeg4-generic,vp8,mpv
on_record_hook_script =/opt/on_record_hook.sh
client_log_level=INFO
enable_extended_logging=true
keep_extended_logs_max_days=15
rtmp_transponder_stream_name_prefix =rtmp_
-e
#The part below is moved from server.properties...
#Config
ws.port =XXXX
wss.port =XXX3
#File will be located in conf directory
#wss.keystore.file =XXXX
wss.keystore.password =XXXXX
wss.cert.password =XXXXXXX
rtmp.port =XX35
rtmfp.port =XX35
#keep_alive_algorithm may be INTERNAL, NONE, HIGH_LEVEL
keep_alive.algorithm =HIGH_LEVEL
keep_alive.peer_interval =2000
keep_alive.server_interval =5000
keep_alive.probes =10
#Reliability: on, partial, off
video_reliable =partial
audio_reliable =partial
audio_frames_per_packet =6
burst_avoidance_count =100
flush_audio_interval =80
flush_video_interval =0
record_streams = true