Difference between revisions of "MOR API morphone details get"

From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with '=Description= <!---This functionality is available from MOR x4---> MOR API morphone details get <br><br> =Usage= * From '''MOR X4''' call: '''/api/morphone_details_get''' * …')
 
(No difference)

Latest revision as of 14:50, 6 July 2013

Description

MOR API morphone details get

Usage

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



Parametres

  • u - username for authentication. Required.
  • p - password for authentication. Required.



Request

API Secret Key = secret

We send:

HTML POST: http://<SERVER_IP>/billing/api/morphone_details_get?u=username&p=password



Returns

Success

<?xml version="1.0" encoding="UTF-8"?>
<page>
  <device>
    <username>device username</username>
    <password>device password</password>
    <enabled_codecs>codecs list</enabled_codecs>
  </device>
  <server_ip></server_ip>
  <server_port></server_port>
  <did_number></did_number>
</page>




Errors

  • <error>Bad login</error> - User does not exist in MOR system.
  • <error>Device was not found</error> - SIP Device was not found.



See also