+ displayName + ")");  params.clear(); params.add(new Integer(callId));  if (n == 0) { gui.execute("core.acceptCall", params); } else { gui.execute("core.endCall", params); }
+ displayName + ").");  DialogThread dt = new DialogThread(gui, dialog, pendingCalls, accountId, callId, sipUri, displayName); dt.start();
    public boolean incomingCall(int accountId, int callId, String sipUri,            String displayName) {        try {            Object[] options = { "Accept", "Decline" };            int n = JOptionPane.showOptionDialog(gui, "Incoming call from "                    + sipUri + " (" + displayName + ").\n", "INCOMING CALL",                    JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE,                    null, options, options[0]);            Call c = new Call(callId, accountId, sipUri, displayName);            pendingCalls.add(c);            print("Incoming call # " + callId + " from " + sipUri + " ("                    + displayName + ")");            params.clear();            params.add(new Integer(callId));            if (n == 0) {                gui.execute("core.acceptCall", params);            } else {                gui.execute("core.endCall", params);            }            return true;        } catch (Exception e) {            {                e.printStackTrace();                return false;            }        }    }