     'mandatory': {
       'OfferToReceiveAudio': true,
       'OfferToReceiveVideo': true
-    },
-    'optional': [{
-      'VoiceActivityDetection': false
-    }]
+    }
+    #'optional': [{
+    #  'VoiceActivityDetection': false
+    #}]
   }
 
   constructor: (worker) ->

        )
      , (error) ->
        console.log("Error sending offer: "+error)
      ,constraints)
    peer_connection

  mergeConstraints: (cons1, cons2) ->

    console.log('config',config)
    if (config.sendOffer)
      console.log("Creating RTC offer to " + peer_id)
      #offerConstraints = {
      #  "optional": [
      #    { "OfferToReceiveAudio": true },
      #    { "OfferToReceiveVideo": true },
      #  ]
      #}
      #constraints = @mergeConstraints(offerConstraints, sdpConstraints)

      peer_connection.createOffer((local_description) =>
        console.log("Local offer description is: ", local_description)
