File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
play-audio-stream-in-to-call Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 55$ keypair = new \Nexmo \Client \Credentials \Keypair (file_get_contents (NEXMO_APPLICATION_PRIVATE_KEY_PATH ), NEXMO_APPLICATION_ID );
66$ client = new \Nexmo \Client ($ keypair );
77
8- $ client ->calls [NEXMO_CALL_UUID ]->put (new \Nexmo \Call \Earmuff ());
8+ $ client ->calls [UUID ]->put (new \Nexmo \Call \Earmuff ());
99sleep (3 );
10- $ client ->calls [NEXMO_CALL_UUID ]->put (new \Nexmo \Call \Unearmuff ());
10+ $ client ->calls [UUID ]->put (new \Nexmo \Call \Unearmuff ());
Original file line number Diff line number Diff line change 55$ keypair = new \Nexmo \Client \Credentials \Keypair (file_get_contents (NEXMO_APPLICATION_PRIVATE_KEY_PATH ), NEXMO_APPLICATION_ID );
66$ client = new \Nexmo \Client ($ keypair );
77
8- $ client ->calls [NEXMO_CALL_UUID ]->put (new \Nexmo \Call \Mute ());
8+ $ client ->calls [UUID ]->put (new \Nexmo \Call \Mute ());
99sleep (3 );
10- $ client ->calls [NEXMO_CALL_UUID ]->put (new \Nexmo \Call \Unmute ());
10+ $ client ->calls [UUID ]->put (new \Nexmo \Call \Unmute ());
Original file line number Diff line number Diff line change 55$ keypair = new \Nexmo \Client \Credentials \Keypair (file_get_contents (NEXMO_APPLICATION_PRIVATE_KEY_PATH ), NEXMO_APPLICATION_ID );
66$ client = new \Nexmo \Client ($ keypair );
77
8- $ stream = $ client ->calls [NEXMO_CALL_UUID ]->stream ();
8+ $ stream = $ client ->calls [UUID ]->stream ();
99$ stream ->setUrl ('https://nexmo-community.github.io/ncco-examples/assets/voice_api_audio_streaming.mp3 ' );
1010$ stream ->put ();
Original file line number Diff line number Diff line change 55$ keypair = new \Nexmo \Client \Credentials \Keypair (file_get_contents (NEXMO_APPLICATION_PRIVATE_KEY_PATH ), NEXMO_APPLICATION_ID );
66$ client = new \Nexmo \Client ($ keypair );
77
8- $ dtmf = $ client ->calls [NEXMO_CALL_UUID ]->dtmf ();
8+ $ dtmf = $ client ->calls [UUID ]->dtmf ();
99$ dtmf ->setDigits ('2468# ' );
1010$ dtmf ->put ();
Original file line number Diff line number Diff line change 55$ keypair = new \Nexmo \Client \Credentials \Keypair (file_get_contents (NEXMO_APPLICATION_PRIVATE_KEY_PATH ), NEXMO_APPLICATION_ID );
66$ client = new \Nexmo \Client ($ keypair );
77
8- $ talk = $ client ->calls [NEXMO_CALL_UUID ]->talk ();
8+ $ talk = $ client ->calls [UUID ]->talk ();
99$ talk ->setText (TEXT );
1010$ talk ->setVoiceName ('Kimberly ' );
1111$ talk ->put ();
Original file line number Diff line number Diff line change 55$ keypair = new \Nexmo \Client \Credentials \Keypair (file_get_contents (NEXMO_APPLICATION_PRIVATE_KEY_PATH ), NEXMO_APPLICATION_ID );
66$ client = new \Nexmo \Client ($ keypair );
77
8- $ client ->calls [NEXMO_CALL_UUID ]->put (new \Nexmo \Call \Transfer ("https://developer.nexmo.com/ncco/transfer.json " ));
8+ $ client ->calls [UUID ]->put (new \Nexmo \Call \Transfer ("https://developer.nexmo.com/ncco/transfer.json " ));
You can’t perform that action at this time.
0 commit comments