I want to be able to use multiple Kynetx apps (rulesets) in a single phone call. Say the first app is a phone menu, and the second app provides the functionality for the menu option. How do I redirect from one to the other?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you use a twilio:redirect() or twill:gather_start() action, the url you provide is a relative URL.
All twilio webhooks provided by Kynetx have the full URL of
http://webhooks.kynetxapps.net/t/appid/eventnameIf you pass in a URL relative to this, it will resolve relative to this. Example:
With a base URL of
http://webhooks.kynetxapps.net/t/myappid/callstartthe actiontwilio:redirect("sayhello")will resolve tohttp://webhooks.kynetxapps.net/t/myappid/sayhelloThis will send in a new event to the same application.
If you want to switch apps, you can either provide the full URL, including the new appid, or use a relative URL like the following:
With a base URL:
http://webhooks.kynetxapps.net/t/myappid/callstartthe actiontwilio:redirect("../newappid/sayhello")resolves to:http://webhooks.kynetxapps.net/t/newappid/sayhelloHere is an example app which uses a different app for a menu choice.
And the app which receives the menu choice.
By using the action
twilio:redirect('../firstappid/givemenu')instead oftwilio:hangup(), this rule could redirect back to the first app.