if (this.route.startsWith("Internet: ")) { Enumeration en = jfritz.getSIPProviderTableModel() .getProviderList().elements(); while (en.hasMoreElements()) { SipProvider sipProvider = (SipProvider) en.nextElement(); if (sipProvider.getNumber().equals(this.route.substring(10))) { this.route = "SIP" + sipProvider.getProviderID(); break; } } }
    public Call(JFritz jfritz, CallType calltype, Date calldate,            PhoneNumber number, String port, String route, int duration) {        this.jfritz = jfritz;        this.calltype = calltype;        this.calldate = calldate;        this.number = number;                //fix so that an empty number doesnt get linked to an empty entry in the telephone book        if(this.number != null && this.number.toString().equals("") )        	this.number = null;                this.route = route;        this.port = port;        this.duration = duration;    }