Don't pretend we support skinny-wait timeout (See #FS 477)

This commit is contained in:
Mathieu Parent 2013-04-03 20:55:27 +02:00
parent 17408154ee
commit 5838050e4f
3 changed files with 9 additions and 6 deletions

View File

@ -7,17 +7,17 @@
The special applications:
- skinny-process tells skinny to process the call (route, set call forwarding, ...)
- skinny-drop tells skinny to drop the call
- skinny-wait tells skinny to wait 'data' seconds for more numbers before drop
- skinny-wait tells skinny to wait for more digits
-->
<!-- http://wiki.freeswitch.org/wiki/Mod_skinny -->
<include>
<context name="skinny-patterns">
<!--
Wait 10 seconds for another digit by default
Wait for another digit by default
-->
<extension name="Default">
<condition>
<action application="skinny-wait" data="10"/>
<action application="skinny-wait" />
</condition>
</extension>

View File

@ -7,17 +7,17 @@
The special applications:
- skinny-process tells skinny to process the call (route, set call forwarding, ...)
- skinny-drop tells skinny to drop the call
- skinny-wait tells skinny to wait 'data' seconds for more numbers before drop
- skinny-wait tells skinny to wait for more digits
-->
<!-- http://wiki.freeswitch.org/wiki/Mod_skinny -->
<include>
<context name="skinny-patterns">
<!--
Wait 10 seconds for another digit by default
Wait for another digit by default
-->
<extension name="Default">
<condition>
<action application="skinny-wait" data="10"/>
<action application="skinny-wait" />
</condition>
</extension>

View File

@ -698,6 +698,9 @@ switch_status_t channel_on_routing(switch_core_session_t *session)
case SKINNY_ACTION_WAIT:
/* for now, wait forever */
switch_channel_set_state(channel, CS_HIBERNATE);
if (!zstr(data)) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "skinny-wait doesn't support timeout yet (See #FS-477)");
}
break;
case SKINNY_ACTION_DROP:
default: