diff --git a/README b/README index e03064b2..41bf5eec 100644 --- a/README +++ b/README @@ -1,4 +1,17 @@ Flashphoner-client is an open-source part of Flashphoner product. You can use it for customization. -Builds: http://flashphoner.com/downloads/builds/flashphoner_client/ \ No newline at end of file +Builds: http://flashphoner.com/downloads/builds/flashphoner_client/ + +requirement: +DETECTING java command... +- Java command found successfully. + +DETECTING JVM architecture... +- 64-Bit architecture detected successfully. + +DETECTING JDK home... +- JDK home detected successfully: /usr/java/default. + +DETECTING ANT... +- Error: ANT is not found diff --git a/client/api/src/com/flashphoner/api/Flash_API.as b/client/api/src/com/flashphoner/api/Flash_API.as index ae4a0788..9d794e93 100644 --- a/client/api/src/com/flashphoner/api/Flash_API.as +++ b/client/api/src/com/flashphoner/api/Flash_API.as @@ -91,6 +91,7 @@ package com.flashphoner.api ExternalInterface.addCallback("notificationResult",notificationResult); ExternalInterface.addCallback("call",call); ExternalInterface.addCallback("callByToken",callByToken); + ExternalInterface.addCallback("msrpCall",msrpCall); ExternalInterface.addCallback("hangup",hangup); ExternalInterface.addCallback("answer",answer); ExternalInterface.addCallback("subscribe",subscribe); @@ -377,6 +378,10 @@ package com.flashphoner.api if (callee.indexOf("@") == -1 || callee.indexOf("@") == callee.length-1){ return 1; } + }else if (callee.indexOf("tel:") == 0){ + if (callee.substring(4).search(reg) != -1){ + return 1; + } }else{ if (callee.search(reg) != -1){ if (callee.indexOf("@") != -1){ @@ -413,6 +418,15 @@ package com.flashphoner.api phoneServerProxy.callByToken(callObject); return 0; } + + /** + * Create new msrp call + * @param call object + **/ + public function msrpCall(callObject:Object):int{ + phoneServerProxy.msrpCall(callObject); + return 0; + } /** * Get information about logged user diff --git a/client/api/src/com/flashphoner/api/PhoneModel.as b/client/api/src/com/flashphoner/api/PhoneModel.as index 3fb6c6d2..f89e2996 100644 --- a/client/api/src/com/flashphoner/api/PhoneModel.as +++ b/client/api/src/com/flashphoner/api/PhoneModel.as @@ -126,6 +126,18 @@ package com.flashphoner.api parameters[node] = String(xml[node]); } + var wcs_server:String = xml.wcs_server; + if (wcs_server!=null && wcs_server.length!=0){ + PhoneConfig.WCS_SERVER = wcs_server; + } + Logger.info("WCS_SERVER: "+PhoneConfig.WCS_SERVER); + + var rtmfp_port:String = xml.rtmfp_port; + if (rtmfp_port!=null && rtmfp_port.length!=0){ + PhoneConfig.RTMFP_PORT = int(rtmfp_port); + } + Logger.info("RTMFP_PORT: "+PhoneConfig.RTMFP_PORT); + var use_enhanced_mic:String = xml.use_enhanced_mic; if (use_enhanced_mic!=null && use_enhanced_mic.length!=0){ diff --git a/client/api/src/com/flashphoner/api/PhoneServerProxy.as b/client/api/src/com/flashphoner/api/PhoneServerProxy.as index 9293df03..03117bd9 100644 --- a/client/api/src/com/flashphoner/api/PhoneServerProxy.as +++ b/client/api/src/com/flashphoner/api/PhoneServerProxy.as @@ -116,8 +116,13 @@ package com.flashphoner.api public function callByToken(callObject:Object):void{ Logger.info("PhoneServerProxy.callByToken()"); - nc.call("call",responder, callObject); - } + nc.call("call", responder, callObject); + } + + public function msrpCall(callObject:Object):void{ + Logger.info("PhoneServerProxy.msrpCall()"); + nc.call("msrpCall", responder, callObject); + } public function disconnect():void { hasDisconnectAttempt = true; diff --git a/client/api/src/com/flashphoner/api/data/PhoneConfig.as b/client/api/src/com/flashphoner/api/data/PhoneConfig.as index 321f872c..57020eb3 100644 --- a/client/api/src/com/flashphoner/api/data/PhoneConfig.as +++ b/client/api/src/com/flashphoner/api/data/PhoneConfig.as @@ -92,6 +92,10 @@ package com.flashphoner.api.data public static var LOAD_BALANCER_URL = null; + public static var WCS_SERVER:String = "192.168.1.5"; + + public static var RTMFP_PORT:int = 1935; + /** * Current version of Flashphoner product **/ diff --git a/client/api/src/com/flashphoner/api/js/APINotifyJS.as b/client/api/src/com/flashphoner/api/js/APINotifyJS.as index 3de2463c..a27e420d 100644 --- a/client/api/src/com/flashphoner/api/js/APINotifyJS.as +++ b/client/api/src/com/flashphoner/api/js/APINotifyJS.as @@ -32,7 +32,7 @@ package com.flashphoner.api.js ExternalInterface.call("notifyConnected"); } public function notifyRegistered(_sipObject:Object):void{ - ExternalInterface.call("notifyRegistered"); + ExternalInterface.call("notifyRegistered", _sipObject); } public function notifyBalance(balance:Number,_sipObject:Object):void{ ExternalInterface.call("notifyBalance",String(balance)); diff --git a/client/client/src/Phone.html b/client/client/src/Phone.html index c5649857..51564766 100644 --- a/client/client/src/Phone.html +++ b/client/client/src/Phone.html @@ -4,7 +4,7 @@