RECORD_START | STOP事件我已經設置了一個NodeJS應用程序(帶有node_esl),並將它連接到部署在Amazon AWS上的Freeswitch服務器的事件套接字層(ESL)。請參見下面的代碼:Freeswitch ESL
var esl = require('modesl'),
conn = new esl.Connection('SERVER_IP', PORT, 'PASSWORD', function() {
conn.api('status', function(res) {
//res is an esl.Event instance
console.log(res.getBody());
});
conn.subscribe([
'RECORD_START',
'RECORD_STOP'
], function(evt) {
console.log(evt)
});
conn.on('esl::event::RECORD_START::*', function(evt) {
console.log(evt);
});
conn.on('esl::event::RECORD_STOP::*', function(evt) {
console.log(evt);
});
});
我使用下面的命令記錄在FreeSWITCH的視頻會議,我希望上面的接口來接收RECORD_START | STOP事件。然而,所述事件從未收到。
# To start recording
conference <conf_id> recording start
# To stop recording
conference <conf_id> recording stop
以下是發佈會我記錄FreeSWITCH的輪廓:
<profile name="cp">
<param name="domain" value="$${domain}"/>
<param name="rate" value="8000"/>
<param name="video-mode" value="transcode"/>
<param name="interval" value="20"/>
<param name="caller-controls" value="default"/>
<param name="energy-level" value="0"/>
<param name="conference-flags" value="wait-mod|audio-always|livearray-sync|livearray-json-status"/>
<param name="max-members" value="25"/>
<param name="sound-prefix" value="/usr/local/freeswitch/conf/sounds/"/>
<param name="enter-sound" value="tone_stream://%(200,0,500,600,700)"/>
<param name="exit-sound" value="tone_stream://%(500,0,300,200,100,50,25)"/>
</profile>
我收到廣大ESL賽事通過這個接口,但是不RECORD_START | STOP。有任何想法嗎?