Revision: 263f309fbfa9
Author:   Jean Deruelle <[email protected]>
Date:     Wed Oct  9 13:20:18 2013 UTC
Log:      Fixes Issue 18

http://code.google.com/p/webrtcomm/source/detail?r=263f309fbfa9

Modified:
 /src/WebRTComm/WebRTCommCall.js

=======================================
--- /src/WebRTComm/WebRTCommCall.js     Fri Sep 27 20:32:29 2013 UTC
+++ /src/WebRTComm/WebRTCommCall.js     Wed Oct  9 13:20:18 2013 UTC
@@ -516,32 +516,33 @@
                 newWebRTCommMessage.to = this.calleePhoneNumber;
             }

- if (this.messageChannel && this.messageChannel.readyState === "open")
-            {
-                try
-                {
-                    this.messageChannel.send(newWebRTCommMessage.text);
-                    if (this.eventListener.onWebRTCommMessageSentEvent)
-                    {
-                        var that = this;
-                        setTimeout(function() {
-                            try {
- that.eventListener.onWebRTCommMessageSentEvent(newWebRTCommMessage);
-                            }
-                            catch (exception) {
- console.error("PrivateJainSipClientConnector:processMessageSipRequestEvent(): catched exception in event listener:" + exception);
-                            }
-                        }, 1);
-                    }
-                }
-                catch (exception)
-                {
- console.error("WebRTCommCall:sendMessage(): catched exception:" + exception); - throw "WebRTCommCall:sendMessage(): catched exception:" + exception;
-                }
-            }
-            else
-            {
+ // Commented out for https://code.google.com/p/webrtcomm/issues/detail?id=18 SIP MESSAGE sending is not consistent +// if (this.messageChannel && this.messageChannel.readyState === "open")
+//            {
+//                try
+//                {
+//                    this.messageChannel.send(newWebRTCommMessage.text);
+//                    if (this.eventListener.onWebRTCommMessageSentEvent)
+//                    {
+//                        var that = this;
+//                        setTimeout(function() {
+//                            try {
+// that.eventListener.onWebRTCommMessageSentEvent(newWebRTCommMessage);
+//                            }
+//                            catch (exception) {
+// console.error("PrivateJainSipClientConnector:processMessageSipRequestEvent(): catched exception in event listener:" + exception);
+//                            }
+//                        }, 1);
+//                    }
+//                }
+//                catch (exception)
+//                {
+// console.error("WebRTCommCall:sendMessage(): catched exception:" + exception); +// throw "WebRTCommCall:sendMessage(): catched exception:" + exception;
+//                }
+//            }
+//            else
+//            {
                 try
                 {
                     newWebRTCommMessage.connector.send();
@@ -551,7 +552,7 @@
console.error("WebRTCommCall:sendMessage(): catched exception:" + exception); throw "WebRTCommCall:sendMessage(): catched exception:" + exception;
                 }
-            }
+//            }
             return newWebRTCommMessage;
         }
         else

--

--- You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to