public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { try { calleeCSeq = in.readLong(); callerCSeq = in.readLong(); calleeContact = SipFactoryImpl.addressFactory.createURI(in.readUTF()); callerContact = SipFactoryImpl.addressFactory.createURI(in.readUTF()); int routeSetSize = in.readInt(); for (int i = 0; i < routeSetSize; i++) { javax.sip.address.Address route = SipFactoryImpl.addressFactory.createAddress(in.readUTF()); callerRouteSet.add(route); } routeSetSize = in.readInt(); for (int i = 0; i < routeSetSize; i++) { javax.sip.address.Address route = SipFactoryImpl.addressFactory.createAddress(in.readUTF()); calleeRouteSet.add(route); } javax.sip.address.Address toAddress = SipFactoryImpl.addressFactory.createAddress(in.readUTF()); toHeader = (To) SipFactoryImpl.headerFactory.createToHeader(toAddress, in.readUTF()); javax.sip.address.Address fromAddress = SipFactoryImpl.addressFactory.createAddress(in.readUTF()); fromHeader = (From) SipFactoryImpl.headerFactory.createFromHeader(fromAddress, in.readUTF()); callId = in.readUTF(); } catch (ParseException e) { throw new IllegalArgumentException("Problem occurred while unserializing ProxyTerminationInfo", e); } } /*
private void createToHeader() throws ParseException { SipURI toAddress = getAddressFactory().createSipURI(getToUser(), getToHost()); toAddress.setPort(getToPort()); Address toNameAddress = addressFactory.createAddress(toAddress); toNameAddress.setDisplayName(getToUser()); setToHeader(headerFactory.createToHeader(toNameAddress, getToUser() + "_Header")); }
ToHeader toHeader = sipHeaderFactory.createToHeader(toAddress, null);
.getContactAddress()); ToHeader toHeader = headerFactory.createToHeader(sender, null);
toHeader = SipFactoryImpl.headerFactory.createToHeader(toAddress, null); } catch (Exception pe) { throw new ServletParseException("Impossoible to parse the given To " + to.toString(), pe);