SEE WHAT YOU CAN BUILD WITH STRINGEE APIs

Dial 02471008875 on your phone and enter the code 8483#, A FREE call will be made to the Softphone below
$from = $_GET['from'];
$to = $_GET['to'];
$postDataFromStringee = file_get_contents('php://input');

if(!$postDataFromStringee){
	$eventUrl = "https://v1.stringee.com/demo/landingpage_demo/stringee_demo.php?from=$from&to=$to";
	$sccos = '[{
	        "action": "talk",
                "text": "Thank you for trying Stringee`s service, please enter 4 digits ext and press the pound key!",
            	"voice": "hn_female_thutrang_phrase_48k-hsmm",
	        "silenceTime": 2000
	    },
	    {
	        "action": "input",
	        "eventUrl": "' . $eventUrl . '",
	        "submitOnHash": true,
	        "timeout": "15"
	    }
	]';
} else {
	$postDataFromStringee = json_decode($postDataFromStringee, true);
	$dtmf = $postDataFromStringee['dtmf'];

	$userId = 'demo_' . $dtmf;

	$sccos = '[{
	        "action": "connect",
	        "from": {
				"type": "external",
				"number": "' . $from . '",
				"alias": "' . $from. '"
			},
			"to": {
				"type": "internal",
				"number": "' . $userId . '",
				"alias": "' . $to . '",
			},
	    }
	]';
}

echo $sccos;                                

var config = {
	arrowDisplay: 'none',
	fromNumbers: [{alias: 'Not available', number: 'Not available'}],
	askCallTypeWhenMakeCall: false,
	appendToElement: 'wrap-softphone-demo'
};
		
StringeeSoftPhone.on('requestNewToken', function () {
	StringeeSoftPhone.connect(access_token);
});
StringeeSoftPhone.init(config);
StringeeSoftPhone.connect(access_token);
                            
1. The user call to: 02471008875

2. StringeeServer (HTTP GET) ==> YourServer, YourServer return result:
	[{
		"action": "talk",
                "text": "Thank you for trying Stringee`s service, please enter 4 digits ext and press the pound key!",
        		"voice": "hn_female_thutrang_phrase_48k-hsmm",
		"silenceTime": 2000
	}, {
		"action": "input",
		"eventUrl": "https://v1.stringee.com/demo/landingpage_demo/stringee_demo.php?from=84901701***&to=84865221779",
		"submitOnHash": true,
		"timeout": "15"
	}]

3. The user enter code: 1234#

4. StringeeServer (HTTP POST) ==> YourServer:

	a. Post data

		{
			"time": "1537198677761",
			"dtmf": "1234",
			"call_id": "call-vn-1-214SDLEP4F-1536793871344",
			"customField": "",
			"timeout": false,
			"projectId": 888
		}

	b. YourServer return result:

		[{
			"action": "connect",
			"from": {
				"type": "external",
				"number": "84901701***",
				"alias": "84901701***"
			},
			"to": {
				"type": "internal",
				"number": "demo_1234",
				"alias": "84865221779",
			},
		}]
                            

Trusted by 1000+ businesses

Stringee Call API

Build high-quality call features for your application; allow App-to-App, App-to-Phone, Phone-to-App cals.

LEARN MORE
Stringee Video Conference API (beta)

Easily build your Video Conference application with Stringee Video Conference APIs.

LEARN MORE
Stringee SMS API

Send SMS to your customers right from your application

LEARN MORE

FEATURES

Customer Service

Lower resolution times

Financial Services

Improve customers' satisfaction rates

Education

Increase enrollment rate

Healthcare

Reach medical services faster

Media & Entertainment

Increase reach and engagement

Field Services

Reduce operational cost

STRINGEE ON MEDIA

Marketsinsider
Cision
Owra
Acrofan
Caphebiz
Medianet