MOR API c2c callback

From Kolmisoft Wiki
Revision as of 14:55, 23 May 2013 by Aisteb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

MOR API

THIS MANUAL IS ACTUAL FOR MOR 8 AND LOWER VERSIONS ONLY. MOR 9 AND UP HAS DIFFERENT METHOD FOR THIS!


Request

http://<YOUR_SERVER_IP>/billing/api/c2c_callback?u=<USERNAME>&p=<PASSWORD>campaign_id=<CAMPAIGN_ID>&client=<CLIENT>
  • USERNAME/PASSWORD - for user, not device!
  • CAMPAIGN_ID - for this campaign this c2c callback is
  • CLIENT- cient's number

All fields are necessary to fill.


Response

<Status>Ok</Status>
  • Means callback is initiated


Errors

Not authenticated

<Status>Not authenticated</Status>
  • User is not present with provided username
  • User's password is wrong

Bad campaign

<Status>Bad campaign</Status>
  • Campaign does not exist or not belong to this user


No client number

<Status>No client</Status>
  • No cient number in request - no where to call


Call is not received

  • Check your CDR for FAILED call and reason why it failed
  • Check Asterisk CLI for error
  • Use Call Tracing to locate error and fix it