             println("ERROR: \(error.localizedDescription)")
         }
     }
-
-    func replace(text: String, original: String, other: String) -> String {
-        return text
-    }
 }
    init(session: Session) {
        self.session = session
    }

    func patchSessionDescription(sdp: String) -> String {
        var patched = ""
        let lines = sdp.componentsSeparatedByString("\r\n")
        for line in lines {
            if line.hasPrefix("c=IN IP4") {
                patched += replace(line, original: "0.0.0.0", other: "IP Address") + "\r\n"
            } else if line.hasPrefix("a=rtcp:") {
                patched += replace(line, original: "0.0.0.0", other: "IP Address") + "\r\n"
            } else if line.hasPrefix("m=audio") {
                patched += replace(line, original: "RTP/SAVPF", other: "UDP/TLS/RTP/SAVPF") + "\r\n"
            } else if line == "a=sendrecv" {
                // Don't add this attribute it's not necessary.
            } else {
                patched += line + "\r\n"
            }
        }
        return sdp
    }
    

        didCreateSessionDescription sdp: RTCSessionDescription!, error: NSError!) {
        // Set the local session description and dispatch a copy to the js engine.
        if error == nil {
            let patchedSessionDescription = patchSessionDescription(sdp.description)
            
            self.session.peerConnection.setLocalDescriptionWithDelegate(self, sessionDescription: sdp)
            dispatch_async(dispatch_get_main_queue()) {
                let json: AnyObject = [
