Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion applets/transfer/twiml.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
if ($redirect_type_selector == "flow")
{
$gotoflow_raw = AppletInstance::getValue('gotoflow');
if(AppletInstance::getFlowType() == "sms")
{
$gotoflow_url = site_url("/twiml/applet/sms/" . $gotoflow_raw . "/start");
}
else
{
$gotoflow_url = site_url("/twiml/applet/voice/" . $gotoflow_raw . "/start");
}

$gotoflow_url = site_url("/twiml/applet/voice/" . $gotoflow_raw . "/start");

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Work above is just going to be overwritten isn't it?


$response = new Response();
Expand All @@ -26,4 +35,4 @@
else
{
trigger_error("Unexpected redirect-type-selector value of '$redirect_type_selector'");
}
}