Suggestions

close search

Make call to a phone number, then connect the call with another phone number when it is answered by the first receiver

  1. Register an account on https://developer.stringee.com
  2. Create a new project at https://developer.stringee.com/project
  3. Buy a phone number at https://developer.stringee.com/number
  4. Create access token https://developer.stringee.com/docs/call-rest-api/call-rest-api-authentication
  5. Send a POST request to https://api.stringee.com/v1/call2/callout, with header X-STRINGEE-AUTH = access token and the body like below:
{
    "from": {
        "type": "external",
        "number": "STRINGEE_NUMBER",
        "alias": "STRINGEE_NUMBER"
    },
    "to": [{
        "type": "external",
        "number": "TO_NUMBER_1",
        "alias": "TO_NUMBER_1"
    }],

    "actions": [{
        "action": "connect",
        "from": {
            "type": "internal",
            "number": "STRINGEE_NUMBER",
            "alias": "STRINGEE_NUMBER"
        },

        "to": {
            "type": "external",
            "number": "TO_NUMBER_2",
            "alias": "TO_NUMBER_2"
        }
    }]
}

Where:
STRINGEE_NUMBER: the phone number to make the outbound call (bought in step 3), format 84xxxxxxxxx (i.g 842473082686)
TO_NUMBER_1: the phone number will receive the 1st call, format 84xxxxxxxxx (i.g 84899199586)
TO_NUMBER_2: the phone number will receive the 2nd call, format 84xxxxxxxxx (i.g 84909982888)

Sample

curl -i -X POST \
   -H "X-STRINGEE-AUTH:ACCESS_TOKEN" \
   -d \
'{
    "from": {
        "type": "external",
        "number": "84989048888",
        "alias": "84989048888"
    },
    "to": [{
        "type": "external",
        "number": "84976415888",
        "alias": "84976415888"
    }],

    "actions": [{
        "action": "connect",
        "from": {
            "type": "external",
            "number": "84989048888",
            "alias": "84989048888"
        },

        "to": {
            "type": "external",
            "number": "84379368888",
            "alias": "84379368888"
        }
    }]
}
' \
 'https://api.stringee.com/v1/call2/callout'