MOR API ivr dial plan update

From Kolmisoft Wiki

Jump to: navigation, search

Contents

[edit] Description

Updates IVR dial plan.

Admin - can update IVR dial plan.

Reseller - can update his IVR dial plans.


[edit] Usage

  • From MOR X14 call: /api/ivr_dial_plan_update
  • Methods: POST, GET(if allowed, not recommended)



[edit] Parameters

Parameters which are included into hash:

  • u - username for authentication. Required.
  • ivr_dial_plan_id - dial plan id. Required.

Parameters which are not included into hash:

  • time_period1 - ivr time period 1 id or leave blank
  • time_period2 - ivr time period 2 id or leave blank
  • time_period3 - ivr time period 3 id or leave blank


[edit] Request

If you want to update dial plan with id 1 and change time period1 to id2, 2-id2 and 3-id3

You send:

HTML POST: http://SERVER_IP/billing/api/ivr_dial_plan_update?u=admin&ivr_dial_plan_id=1&time_period1=1&time_period2=2&time_period3=3&hash=ed9d3657ad490fa2ed860ecc93223d58bf471672



[edit] Returns

Success: Everything is ok.IVR dial plan was updated.

<page>
 <status>
   <success>Dial Plan successfully updated</success>
 </status>
</page>

Errors:

  • Dial plan was not found - incorrect dial plan value or access denied.
  • time_period1 was not found - incorrect time period value or access denied.
  • time_period2 was not found - incorrect time period value or access denied.
  • time_period3 was not found - incorrect time period value or access denied.

Example: If time_period3 was not found:

<page>
 <status>
   <error>time_period3 was not found</error>
 </status>
</page>

[edit] See also

Personal tools

Try MOR

Try M2