     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)
+      #offerConstraints = {
+      #  "optional": [
+      #    { "OfferToReceiveAudio": true },
+      #    { "OfferToReceiveVideo": true },
+      #  ]
+      #}
+      #constraints = @mergeConstraints(offerConstraints, sdpConstraints)
 
       peer_connection.createOffer((local_description) =>
         console.log("Local offer description is: ", local_description)

    'mandatory': {
      'OfferToReceiveAudio': true,
      'OfferToReceiveVideo': true
    },
    'optional': [{
      'VoiceActivityDetection': false
    }]
  }

  constructor: (worker) ->

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

  mergeConstraints: (cons1, cons2) ->
