On Mon, Jun 25, 2012 at 9:23 PM, Dan Chang <[email protected]> wrote:
> Hello all!  I had mentioned this topic previously as a tangent on another
> topic, but I am finally addressing it directly and I think I have enough
> information to form a reasonable question.  My goal is to be able to change
> all of the call forwarding ring timers (defaulted to 20 sec) to a different
> value, either by changing the value for each user (in a reasonably
> programmatic, bulk way) or by changing the default.
>

Hi,

yep, that one is a little bit tricky

check AbstractUser.java, there is a

    @SettingEntry(path = CALLFWD_TIMER)
    public int getDefaultInitDelay() {
        return m_proxyManager.getSettings().getDefaultInitDelay();
    }

so basically it retrieves value from sipXproxy.xml

<setting name="SIPX_PROXY_DEFAULT_SERIAL_EXPIRES">
      <type>
        <integer required="yes" />
      </type>
      <value>20</value>
    </setting>

You could change this one or another option would be to remove block
altogether from AbstractUser

@SettingEntry(path = CALLFWD_TIMER)
    public int getDefaultInitDelay() {
        return m_proxyManager.getSettings().getDefaultInitDelay();
    }

and add a deafult value in user-settings.xml

  <group name="callfwd">
    <setting name="timer">
      <type>
        <integer min="1" max="999" required="yes" />
      </type>
      <value>55</value>
    </setting>
  </group>

(in this case 55 will become the default value for all users in your system)
I'd say we could commit code with 2nd approach and set the default to
20 so it will match SIPX_PROXY_DEFAULT_SERIAL_EXPIRES value by
default.

George
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to