How to change the account state scenario to get rounded amount of money?

It is possible to setup the account state scenario to say only dollar values rounded.
The available settings for the up_rounding_threshold parameter are between 0 and 99 it means the hundredths parts of amount.

If the hundredths part is higher or equal the up_rounding_threshold parameter it will round up if its lower then it rounds down the value.

Example : 
Account state is 7.50 - if the up_rounding_threshold="50" is setup like below then voipbox will play : 8 dollars.
Account state is 7.49 - if the up_rounding_threshold="50" is setup like below then voipbox will play : 7 dollars.

Below is the modified account state scenario.

<?xml version="1.0" encoding="utf-8" ?>
<SCENARIO name="Account state" description="Account state scenario says client's account state.">
    <STATE id="1" name="SayAccountState" up_rounding_threshold="50">
            <TRANSITION type="TransitionOnEvent">
                <next_state_id event="EndCallEvent">FINAL_STATE_ID</next_state_id>
            <TRANSITION type="TransitionAlwaysTrue">


  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

If I setup "Caller ID prefix" for my IVR Client does it affect his ANI number recognize when registering without a PIN?

No. Client is recognized according to real ANI send by gateway. Changing Caller ID will not...

Can I have a special, unique design of softphone?

Yes, however it is charged extra. You can see some examples in our gallery or ask us by email.

Can the softphone be customised under my name and with my logo?

Yes, the softphone (named SIPLink) which is delivered with the main package, is always customized...

What windows versions are supported for SipLink and Vippie?

Windows 2000, Windows XP, Windows Vista, Windows 7. No matter is it x86 or x64 copy.