You can now send parameters from the caller to the callee when you make a call. Programmable Voice SDK Android 3.0 (Mobile) There is no method to pass custom information via mobile SDK version 1.x/2.x on Android or iOS. Parameter value must be a string, up to 128 bytes.Parameter name must be a string, up to 32 bytes.Note: The following restrictions apply to the Parameter noun: You can use the params property to pass information to the application as POST/GET parameters.įor example, the following code will pass the params app=Support and location=Seattle to the Twilio application associated with this Device's access token. The ConnectOptions object is a JavaScript object with optional params, rtcConfiguration, and rtcConstraints properties. The Voice Javascript (JS) SDK includes a nnect() function which takes an optional ConnectOptions argument. You can send multiple params and value as part of the same X- headerįor example, you could (User-to-User Information) header can be sent without prepending Ĭustom Headers Voice Javascript (JS) SDK (Formerly Twilio Client) Sending custom params FROM the SDK to your app TwiMLĪny SIP headers can be sent by appending them to the end of the TwiML noun URI with the X- prefix.įor example, you could send X-customHeader1 and X-customHeader2 on all originated calls. Note: Twilio's request to this URL must still be responded to with valid TwiML call processing instructions. Then, when the API call is answered, you will receive a callback to their server with those details.įor example, if you have two custom headers, let's call them customParameter and customValue, you would construct the voice request URL like this: If you have custom headers or tracking details you want associated with your requests, you can pass the details in the voice request URL. Twilio offers users a number of methods for passing custom information in HTTP query strings and SIP URIs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |