Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now


Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Twilio Clientを使用した着信通話


In order for your client device to be allowed to receive incoming connections from Twilio, you need to make sure that the Capability Token you've provided allows for it. To do this, you will need to assign a unique client name to your Client and have your server application provide this client name to the incoming capability of the token generator.


        In this example, you can see the client name of "joey" is being assigned. When you have multiple clients, this name will need to be unique so that they can each receive calls intended for them.


        Twilio電話番号に対して発信された通話をClientにルーティングするには、Twilio電話番号に着信Voice URLを用意して、下記のTwiMLを返すことが必要です。

        <?xml version="1.0" encoding="UTF-8"?>

        This will connect the inbound caller with the client application that is registered as "joey." In order to have a conversation, however, the client needs to accept the call.


        To accept a call, you only need to listen for the incoming event. That event will pass you a connection object on which you can call the accept() method.



              If your arch-enemy is calling and you're just not in the mood to listen to their monologue, you can reject the call. The process is similar to accepting a call except instead of calling the accept() method on the connection object, you call its reject() method.


                    REST APIを使用したClientへの発信

                    Calling a Twilio Client using the Twilio REST API is extremely easy as well. It's just like making a PSTN phone call with the REST API, but for the To parameter you specify "client:" followed by the client name you wish to call. Here's an example that calls the client named "tommy."

                          David Prothero Alan Klein Andrew Baker
                          Rate this page:


                          誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。