Difference between revisions of "MOR API c2c callback"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 2: Line 2:


   
   
=                 THIS METHOD ONLY WORKS WITH MOR8 and older versions                        =
                 '''THIS METHOD ONLY WORKS WITH MOR8 and older versions'''                        





Revision as of 11:20, 25 January 2012

MOR API


               THIS METHOD ONLY WORKS WITH MOR8 and older versions                        


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