How to set you virtual number

With the numbers API, you are able to rent a new number and use it as the sender in your campaigns.
When you go to My numbers and press edit you have the following options:
1.Set the SMS Settings
2.Set the Inbound Call Settings -> Forward to 1. Dialplan 2.To 3.Sip
When you set it to Forward to Dialplan you can set the dialplan that you want and the Inbound voice callback url.
In the dialplan you can set also a play verd, say verb, dial verb. An example is the following:

response.headers['Content-Type'] = 'application/json',
  response.body = {
  "verbs": [
    {
      "type": "DIAL",
      "from": "xxxxxxxx",
      "to": {
        "phone": "xxxxxx",
      },
      "callback": {
        "url": "xxxxxxx",
        "strategy": "OnCompletion"
      }
    }
  ]
}

An example of the inbound callback url is the following

{
    "messageId": "f4dd3316-a121-457c-9e06-95ca5b43ff64",
    "to": "+447451274483",
    "from": "302394110976",
    "country": "GB",
    "price": 0.0015,
    "originatingService": "Voice",
    "conversationTrackingId": "71140d95-1987-44d2-b181-357dac08423a",
    "status": {
        "name": "Completed",
        "reason": "",
        "description": "",
        "updatedDate": "2020-03-09T10:11:27.441Z"
    },
    "direction": "Inbound",
    "respectQuietHours": false,
    "duration": 20,
    "createdAt": "2020-03-09T10:11:07.547Z",
    "chargeInterval": 1
}

And the callback that you will get is the following:

{
    "messageId": "f4dd3316-a121-457c-9e06-95ca5b43ff64",
    "to": "+447451274483",
    "from": "302394110976",
    "country": "GB",
    "price": 0.0015,
    "originatingService": "Voice",
    "conversationTrackingId": "71140d95-1987-44d2-b181-357dac08423a",
    "status": {
        "name": "Completed",
        "reason": "",
        "description": "",
        "updatedDate": "2020-03-09T10:11:27.441Z"
    },
    "direction": "Inbound",
    "respectQuietHours": false,
    "duration": 20,
    "createdAt": "2020-03-09T10:11:07.547Z",
    "chargeInterval": 1
}