Skip to content

Commit

Permalink
External input improvements (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
zevarito authored and Álvaro Alonso committed Aug 2, 2017
1 parent b73b1b1 commit 5b6f250
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions erizo_controller/common/amqper.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ exports.broadcast = function(topic, message, callback) {
/*
* Calls remotely the 'method' function defined in rpcPublic of 'to'.
*/
exports.callRpc = function(to, method, args, callbacks) {
exports.callRpc = function(to, method, args, callbacks, timeout) {
corrID ++;
map[corrID] = {};
map[corrID].fn = callbacks;
map[corrID].to = setTimeout(callbackError, TIMEOUT, corrID);
map[corrID].to = setTimeout(callbackError, timeout || TIMEOUT, corrID);
rpcExc.publish(to, {method: method, args: args, corrID: corrID, replyTo: clientQueue.name});
};
2 changes: 1 addition & 1 deletion erizo_controller/erizoController/erizoController.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ var listen = function () {
callback(id);
sendMsgToRoom(socket.room, 'onAddStream', st.getPublicStream());
} else {
callback(null, 'Error adding External Input');
callback(null, 'Error adding External Input:' + result);
}
});
} else if (options.state === 'erizo') {
Expand Down
2 changes: 1 addition & 1 deletion erizo_controller/erizoController/roomController.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ exports.RoomController = function (spec) {
subscribers[publisherId] = [];

amqper.callRpc(getErizoQueue(publisherId), 'addExternalInput', args,
{callback: callback});
{callback: callback}, 20000);

erizos[erizoId].publishers.push(publisherId);

Expand Down

0 comments on commit 5b6f250

Please sign in to comment.