       , ->
         console.log('Added the ICE Candidate.')
       , (err) ->
-        console.log('[ERROR] - ICE Candidate. ' + err)
+        console.log('[ERROR] - ICE Candidate.' + err)
       )
     else
       #alert('[ERROR] - no peer for peer_id: '+config.peer_id)



  doGetUserMedia: (callback) ->
    if( @localStream? )
      if( callback )
        callback()
      return
    constraints = {"audio": true, "video": {"mandatory": {}, "optional": []}}
    try
      console.log("Requested access to local media with mediaConstraints:\n \"" + JSON.stringify(constraints) + "\"")
      getUserMedia(constraints, (stream) =>
        @localStream = stream
        local_media = if @USE_VIDEO
                        $("<video>")
                      else

    @sdpConstraints = {'mandatory': {'OfferToReceiveAudio':true, 'OfferToReceiveVideo':true }}
    @pc_config = {"iceServers":
          [
              {url:'stun:stun.l.google.com:19302'},
              {url:'stun:stun01.sipphone.com'},
              {url:'stun:stun.ekiga.net'},
              {url:'stun:stun.fwdnet.net'},
              {url:'stun:stun.ideasip.com'},
              {url:'stun:stun.iptel.org'},
              {url:'stun:stun.rixtelecom.se'},
              {url:'stun:stun.schlund.de'},
              {url:'stun:stun.l.google.com:19302'},
              {url:'stun:stun1.l.google.com:19302'},
              {url:'stun:stun2.l.google.com:19302'},
              {url:'stun:stun3.l.google.com:19302'},
              {url:'stun:stun4.l.google.com:19302'},
              {url:'stun:stunserver.org'},
              {url:'stun:stun.softjoys.com'},
              {url:'stun:stun.voiparound.com'},
              {url:'stun:stun.voipbuster.com'},
              {url:'stun:stun.voipstunt.com'},
              {url:'stun:stun.voxgratia.org'},
              {url:'stun:stun.xten.com'},
              {
                  url: 'turn:waturn.cloudapp.net:443?transport=tcp',
                  credential: 'walkaboutpass',
                  username: 'walkabout'
              },
              {
                  url: 'turn:numb.viagenie.ca',
                  credential: 'muazkh',
                  username: 'webrtc@live.com'
              },
              {
                  url: 'turn:192.158.29.39:3478?transport=udp',
