Created
May 17, 2011 22:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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