MOR API device callflow get

From Kolmisoft Wiki

Jump to: navigation, search

Contents

[edit] Description

MOR API Device Call Flow get

[edit] Usage

  • Call: /api/device_callflow_get
  • Methods: POST, GET(if allowed, not recomended)



[edit] Parametres



[edit] Request

We have API Secret Key = 456789, device_id = 100

We send:

HTML POST: http://<SERVER_IP>/billing/api/device_callflow_get?u=admin&device_id=100&hash=71516eea4850f7e0300ac86adf9fb64bca845aa7

* Note that username and password are not included in hash

[edit] Returns

Success

 <page>
   <user>Test User #1</user>
   <device>FAX/102</device>
   <callflow>
     <state>Before call</state>
     <priority>1</priority>
     <action/>
     <data/>
   </callflow
   <callflow>
     <state>Call</state>
     <priority>1</priority>
     <action>Dial</action>
     <data>FAX/102|60</data>
   </callflow>
   <callflow>
     <state>Answered</state>
     <priority>1</priority>
     <action>Hangup</action>
     <data/>
   </callflow>
   <callflow>
     <state>No answer</state>
     <priority>1</priority>
     <action/>
     <data/>
   </callflow>
   <callflow>
     <state>Busy</state>
     <priority>1</priority>
     <action/>
     <data/>
   </callflow>
   <callflow>
     <state>Failed</state>
     <priority>1</priority>
     <action/><data/>
   </callflow>
 </page>

Errors

  • <error>Device was not found</error> – Device was not found.
  • <error>You are not authorised to use this functionality</error> – you need permissions in order to view this function.
  • <error>User was not found</error> – User was not found.
  • <error>Incorrect hash</error> – Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.



[edit] See also

Personal tools

Try MOR

Try M2