mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-15 15:54:13 +00:00
make dtmf duration defaults tweakable
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8126 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
56f6d7f17a
commit
96ff2abcd7
15 files changed
+97
-39
No files matched your search
@@ -761,7 +761,7 @@ JSClass event_class = {
|
||||
static JSBool dtmf_construct(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, jsval * rval)
|
||||
{
|
||||
switch_dtmf_t *dtmf;
|
||||
int32 duration = SWITCH_DEFAULT_DTMF_DURATION;
|
||||
int32 duration = switch_core_default_dtmf_duration(0);
|
||||
char *ename;
|
||||
|
||||
if (argc > 0) {
|
||||
@@ -774,7 +774,7 @@ static JSBool dtmf_construct(JSContext * cx, JSObject * obj, uintN argc, jsval *
|
||||
if (argc > 1) {
|
||||
JS_ValueToInt32(cx, argv[1], &duration);
|
||||
if (duration <= 0) {
|
||||
duration = SWITCH_DEFAULT_DTMF_DURATION;
|
||||
duration = switch_core_default_dtmf_duration(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user