diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index 1a6337004e..46d2834152 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -373,7 +373,7 @@ SWITCH_DECLARE_CONSTRUCTOR DTMF::DTMF(char idigit, uint32_t iduration) digit = idigit; if (iduration == 0) { - iduration == SWITCH_DEFAULT_DTMF_DURATION; + iduration = SWITCH_DEFAULT_DTMF_DURATION; } duration = iduration;