public void setDisplayName(String name) { if(SipServletMessageImpl.isSystemHeader(isModifiable)) { throw new IllegalStateException("this Address is used in a context where it cannot be modified"); } try { getAddress().setDisplayName(name); } catch (ParseException e) { throw new IllegalArgumentException("illegal name ", e); } }
public Address createAddress(URI uri, String displayName) { try { if (logger.isDebugEnabled()) { logger.debug("Creating Address from URI[" + uri.toString() + "] with display name[" + displayName + "]"); } javax.sip.address.Address address = SipFactoryImpl.addressFactory .createAddress(((URIImpl) uri).getURI()); address.setDisplayName(displayName); return new AddressImpl(address, null, ModifiableRule.Modifiable); } catch (ParseException e) { throw new IllegalArgumentException(e); } }
private void createContactHeader() throws ParseException { SipURI contactURI = addressFactory.createSipURI(getFromUser(), getFromHost()); contactURI.setTransportParam(getTransport()); contactURI.setPort(Integer.valueOf(getFromPort()).intValue()); Address contactAddress = addressFactory.createAddress(contactURI); // Add the contact address. contactAddress.setDisplayName(getFromUser()); contactHeader = headerFactory.createContactHeader(contactAddress); }
private void createFromHeader() throws ParseException { SipURI fromAddress = getAddressFactory().createSipURI(getFromUser(), getFromHost()); fromAddress.setPort(Integer.valueOf(getFromPort()).intValue()); Address fromNameAddress = addressFactory.createAddress(fromAddress); fromNameAddress.setDisplayName(getFromUser()); setFromHeader(headerFactory.createFromHeader(fromNameAddress, getFromUser() + "_Header")); }
contactAddress.setDisplayName(displayName);
newContactHeader.getAddress().setDisplayName(newRequestContactHeader.getAddress().getDisplayName());
try { uri.setUser(username); ch.getAddress().setDisplayName(null); } catch (ParseException e) { throw new IllegalStateException("Can't create contact header user part with MD5", 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")); }
toAddress.setDisplayName(toAddressString); ToHeader toHeader = sipHeaderFactory.createToHeader(toAddress, null); fromNameAddress.setDisplayName("Missed Calls"); FromHeader fromHeader = sipHeaderFactory.createFromHeader(fromNameAddress, "12345SomeTagID6789");
javax.sip.address.Address contactAddress = addressFactory.createAddress(sipURI); if(displayName != null && displayName.length() > 0) { contactAddress.setDisplayName(displayName);
callerAddress.setDisplayName(callerSip);
javax.sip.address.Address contactAddress = sipFactoryImpl.getAddressFactory().createAddress(sipURI); if(diaplayName != null && diaplayName.length() > 0) { contactAddress.setDisplayName(diaplayName);
Address from = addressFactory.createAddress(subscriptionData.getSubscriberURI()); if (subscriptionData.getSubscriberDisplayName() != null) { from.setDisplayName(subscriptionData.getSubscriberDisplayName());
Address fromNameAddress = addressFactory .createAddress("sip:wakeup@restcomm.com"); fromNameAddress.setDisplayName("Wake Up Service"); HeaderFactory headerFactory = sipProvider.getHeaderFactory(); FromHeader fromHeader = headerFactory.createFromHeader(
fromAddress.setDisplayName(from.getDisplayName()); .createAddress(((URIImpl)to.getURI()).getURI()); toAddress.setDisplayName(to.getDisplayName()); javax.sip.address.Address contactAddress = SipFactoryImpl.addressFactory.createAddress(sipURI); if(displayName != null && displayName.length() > 0) { contactAddress.setDisplayName(displayName);