diff options
Diffstat (limited to 'src/net')
3 files changed, 17 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/ConnectionPanel.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/ConnectionPanel.java index a48d9b2..398781a 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/ConnectionPanel.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/ConnectionPanel.java @@ -518,6 +518,15 @@ public class ConnectionPanel } /** + * Sets the voicemail URI. + * @param voicemailURI the voicemail URI. + */ + void setVoicemailURI(String voicemailURI) + { + voicemailField.setText(voicemailURI); + } + + /** * Sets the keep alive interval * @param keepAliveInterval the keep alive interval */ diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationForm.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationForm.java index 534eda7..53d64ce 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationForm.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationForm.java @@ -360,6 +360,9 @@ public class SIPAccountRegistrationForm String keepAliveInterval = accountID.getAccountPropertyString("KEEP_ALIVE_INTERVAL"); + String voicemailURI = accountID.getAccountPropertyString( + ProtocolProviderFactory.VOICEMAIL_URI); + boolean xCapEnable = accountID .getAccountPropertyBoolean("XCAP_ENABLE", false); boolean xCapUseSipCredetials = accountID @@ -428,6 +431,9 @@ public class SIPAccountRegistrationForm connectionPanel.setKeepAliveMethod(keepAliveMethod); connectionPanel.setKeepAliveInterval(keepAliveInterval); + if (voicemailURI != null && voicemailURI.length() > 0) + connectionPanel.setVoicemailURI(voicemailURI); + presencePanel.setXCapEnable(xCapEnable); presencePanel.setXCapEnableEnabled(xCapEnable); presencePanel.setXCapUseSipCredetials(xCapUseSipCredetials); diff --git a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard.java index 6e830d0..4492541 100644 --- a/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/sipaccregwizz/SIPAccountRegistrationWizard.java @@ -511,6 +511,8 @@ public class SIPAccountRegistrationWizard accountProperties.put( ProtocolProviderFactory.VOICEMAIL_URI, registration.getVoicemailURI()); + else if(isModification()) + accountProperties.put(ProtocolProviderFactory.VOICEMAIL_URI, ""); if(isModification()) { |