Skip to content

Instantly share code, notes, and snippets.

@andrewwatson
Created May 17, 2011 22:43
Show Gist options
  • Save andrewwatson/977589 to your computer and use it in GitHub Desktop.
Save andrewwatson/977589 to your computer and use it in GitHub Desktop.
Patch to Dial Applet so that the Dial verb can have a configurable timeout
twiml.php changes
33a34,35
> $ring_timeout = AppletInstance::getValue('ring_timeout', 20);
>
126c128
< $dial = $response->addDial(array('action' => current_url(), 'timeout' => 5));
---
> $dial = $response->addDial(array('action' => current_url(), 'timeout' => $ring_timeout));
ui.php changes
25a26
> $ring_timeout = AppletInstance::getValue('ring-timeout',20);
54a56,61
> <h2>Ring Timeout</h2>
> <div>
> <label class="field-label"># of seconds to ring
> <input class="input medium" name="ring_timeout" value="<?php echo $ring_timeout; ?>">
> </div>
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment