Skip to content

Commit

Permalink
Fix SIP connection test and improve logging for SIP¨Application class.
Browse files Browse the repository at this point in the history
  • Loading branch information
GhaziTriki committed Jul 2, 2018
1 parent 854816b commit 1c6611a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ package org.bigbluebutton.clientcheck.service
private static var RECORD_MOCK:Boolean=false;
private static var EXTERNAL_USER_ID_MOCK:String="123456";
private static var INTERNAL_USER_ID_MOCK:String="654321";
private static var CLIENT_CONN_ID:String="client-conn-id";
private static var LOCK_ON_MOCK:Boolean=true;

public function init():void
Expand All @@ -60,7 +61,7 @@ package org.bigbluebutton.clientcheck.service
// sip has a different way of connecting to the red5 server, need to fake connection data.
if (systemConfiguration.rtmpApps[i].applicationUri.indexOf("sip") > 0)
{
_netConnection.connect(systemConfiguration.rtmpApps[i].applicationUri, ROOM_MOCK, EXTERNAL_USER_ID_MOCK, USER_NAME_MOCK, INTERNAL_USER_ID_MOCK);
_netConnection.connect(systemConfiguration.rtmpApps[i].applicationUri, ROOM_MOCK, EXTERNAL_USER_ID_MOCK, USER_NAME_MOCK, INTERNAL_USER_ID_MOCK, CLIENT_CONN_ID);
continue;
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void appStop(IScope scope) {
public boolean appConnect(IConnection conn, Object[] params) {

if(params.length != 5) {
log.error("Invalid number of parameters. param length=" + params.length);
log.error("Invalid number of parameters. Provided parameters={} .Required parameters=5", params.length);
return false;
}

Expand Down

0 comments on commit 1c6611a

Please sign in to comment.