
public final class PhoneNumberParameters extends Object
The following optional parameters for the DID provider to set when a number is bought or updated
| Property | Description |
|---|---|
| VoiceUrl | The URL in host:port format that the DID provider should request when somebody dials the new phone number. |
| VoiceMethod | The method that should be used to request the VoiceUrl. Only SIP or SIPS supported currently. Defaults to SIP. |
| doVoiceCallerIdLookup | Do a lookup of a caller's name from the CNAM database if the service provider support it. Either true or false. Defaults to false.. |
| SmsUrl | The URL in host:port format (SIP, SMPP, or SS7 MAP) that the DID provider should request when somebody sends an SMS to the phone number. |
| SMSMethod | The method that should be used to request the SmsUrl. SS7, SMPP, SIP or SIPS supported currently. Defaults to SIP. If SMPP or SS7 are used, the URL of the SMSC will be provided |
| UssdUrl | The URL in host:port format that the DID provider should request when somebody sends a USSD message to the phone number. |
| UssdMethod | The method that should be used to request the UssdUrl. SS7, SIP or SIPS supported currently. Defaults to SIP. If SS7 is used, the URL of the USSD will be provided |
| FaxUrl | The URL in host:port format that the DID provider should request when somebody sends a Fax message to the phone number. |
| FaxMethod | The method that should be used to request the FaxUrl. SIP or SIPS supported currently. Defaults to SIP. |
| Constructor and Description |
|---|
PhoneNumberParameters() |
PhoneNumberParameters(String voiceUrl,
String voiceMethod,
boolean doVoiceCallerIdLookup,
String smsUrl,
String smsMethod,
String ussdUrl,
String ussdMethod,
String faxUrl,
String faxMethod) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFaxMethod() |
String |
getFaxUrl() |
PhoneNumberType |
getPhoneNumberType() |
String |
getSmsMethod() |
String |
getSmsUrl() |
String |
getUssdMethod() |
String |
getUssdUrl() |
String |
getVoiceMethod() |
String |
getVoiceUrl() |
boolean |
isDoVoiceCallerIdLookup() |
void |
setDoVoiceCallerIdLookup(boolean doVoiceCallerIdLookup) |
void |
setFaxMethod(String faxMethod) |
void |
setFaxUrl(String faxUrl) |
void |
setPhoneNumberType(PhoneNumberType phoneNumberType) |
void |
setSmsMethod(String smsMethod) |
void |
setSmsUrl(String smsUrl) |
void |
setUssdMethod(String ussdMethod) |
void |
setUssdUrl(String ussdUrl) |
void |
setVoiceMethod(String voiceMethod) |
void |
setVoiceUrl(String voiceUrl) |
public PhoneNumberParameters()
public PhoneNumberParameters(String voiceUrl, String voiceMethod, boolean doVoiceCallerIdLookup, String smsUrl, String smsMethod, String ussdUrl, String ussdMethod, String faxUrl, String faxMethod)
voiceUrl - voiceMethod - voiceCallerIdLookup - smsUrl - smsMethod - ussdUrl - ussdMethod - faxUrl - faxMethod - public String getVoiceUrl()
public void setVoiceUrl(String voiceUrl)
voiceUrl - the voiceUrl to setpublic String getVoiceMethod()
public void setVoiceMethod(String voiceMethod)
voiceMethod - the voiceMethod to setpublic boolean isDoVoiceCallerIdLookup()
public void setDoVoiceCallerIdLookup(boolean doVoiceCallerIdLookup)
doVoiceCallerIdLookup - the doVoiceCallerIdLookup to setpublic String getSmsUrl()
public void setSmsUrl(String smsUrl)
smsUrl - the smsUrl to setpublic String getSmsMethod()
public void setSmsMethod(String smsMethod)
smsMethod - the smsMethod to setpublic String getUssdUrl()
public void setUssdUrl(String ussdUrl)
ussdUrl - the ussdUrl to setpublic String getUssdMethod()
public void setUssdMethod(String ussdMethod)
ussdMethod - the ussdMethod to setpublic String getFaxUrl()
public void setFaxUrl(String faxUrl)
faxUrl - the faxUrl to setpublic String getFaxMethod()
public void setFaxMethod(String faxMethod)
faxMethod - the faxMethod to setpublic PhoneNumberType getPhoneNumberType()
public void setPhoneNumberType(PhoneNumberType phoneNumberType)
phoneNumberType - the phoneNumberType to setCopyright © 2015. All Rights Reserved.