When the client makes a call from the app by calling the makeCall method of the Stringee SDK, Stringee Server sends a HTTP GET request to Your Server. Your Server must return a SCCO object to control the call such as: call routing, block call...
The Answer URL (answer_url) is configured in your project on Dashboard. The request which Stringee Server sends to Your Server is in the following format:
answer_url?from=84899199866&to=84909988668&fromInternal=true&userId=huydn&projectId=25&custom=custom&callId=call-vn-1-ABCDWXKXYZ-1542377678717
in which
HTTP Method: GET
Field | Type | Description |
---|---|---|
from | String | Corresponding to the from parameter which passed to the makeCall() method. |
to | String | Corresponding to the to parameter which passed to the makeCall() method. |
custom | String | Corresponding to the custom parameter which passed to the makeCall() method. |
fromInternal | Boolean | True: in an app-to-app, app-to-phone call. It means calling from the app |
userId | String | User ID |
projectId | Long | Project ID |
callId | String | Call ID |
When having an incoming call to the Number which you've bought from Stringee, Stringee Server sends a HTTP GET request to Your Server to get a SCCO object.
The Answer URL (answer_url) is configured in your Number. The request which Stringee Server sends to Your Server is in the following format:
answer_url?from=84909986668&to=84899199866&uuid=890ccbe2-f9a6-11e7-be7b-b7890f26c79d&fromInternal=false
in which
HTTP Method: GET
Field | Type | Description |
---|---|---|
from | String | Caller number |
to | String | Called number (your Stringee Number) |
fromInternal | Boolean | False: in a phone-to-app, phone-to-phone call. |
uuid | String | Call UUID |
When the state of the call/room changes, Stringee Server notifies Your Server by sending a HTTP POST.
Call events: https://developer.stringee.com/docs/server/call-events
Event URL (event_url) is configured in your Project.
Event URL (event_url) is configured in your Number.