MOR API provider update

From Kolmisoft Wiki
Revision as of 10:21, 18 July 2022 by Dmitrij (talk | contribs) (Created page with "=Description= MOR API for updating providers. <br><br> =Usage= * From '''MOR X17''' call: '''/api/provider_update''' * Methods: POST, GET(if allowed, not recomended) <br><br> ===Parametres=== * u - username to login. '''Required'''. * provider_id - Selects Provider '''Required'''. * active - 1 for active, 0 for not active * name - Provider's name, must be unique * dtmfmode - DTMF Mode, accepted values [inband, info, rfc2833, auto], * if ccl is active and Provider...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

MOR API for updating providers.




Usage

  • From MOR X17 call: /api/provider_update
  • Methods: POST, GET(if allowed, not recomended)



Parametres

  • u - username to login. Required.
  • provider_id - Selects Provider Required.
  • active - 1 for active, 0 for not active
  • name - Provider's name, must be unique
  • dtmfmode - DTMF Mode, accepted values [inband, info, rfc2833, auto],
  • if ccl is active and Provider is SIP, then accepted values are [rfc2833, auto]
  • location_id - Any Location (locations) by owner (locations.user_id)
  • timeout - Ringing Timeout, any integer value which is equal to 30 or higher
  • max_timeout - Call Timeout, any integer value which is equal to 0 or higher
  • call_limit - Call Limit, any integer value which is equal to 0 or higher
  • balance_limit - Balance limit, any decimal value (value separated by dot ".")
  • tariff_id - Tariff to use, can be any Provider Tariff (tariffs.purpose == 'provider')
  • server_ids - Asterisk Servers, must be in following format "1,3,4"



Request

If API Secret Key = secret

You send:

HTML POST: http://<SERVER IP>/billing/api/provider_update?u=admin&provider_id=7&name=Test3221&hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4

* Note that username (u) is not included in the hash

Returns

Success

<?xml version="1.0" encoding="UTF-8"?>
<page>
 <status>
   <success>Provider updated</success>
 </status>
</page>


See also