diff --git a/CHANGELOG.md b/CHANGELOG.md index e5166d1..532c06a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ i.e. `..` - Support ignore ealry media to preanswer class #91 - Upgrate lib starlette==0.14.2 -> 0.25.0, redis==3.5.2 -> 4.4.4 - Version fastapi starlette agreement +- Fix missing function early-media ## [v0.5.9] - 2022-07-26 diff --git a/callng/callfunc.lua b/callng/callfunc.lua index 40cd3db..77bc638 100644 --- a/callng/callfunc.lua +++ b/callng/callfunc.lua @@ -220,7 +220,7 @@ function earlyMediaProcess(name, DxLeg) elseif streamtype == 'speak' then DxLeg:execute('speak', 'flite|slt|'..streamdata) elseif streamtype == 'signal' then - if ({'true', 'false', 'ring_ready'}, streamdata) then + if ismeberof({'true', 'false', 'ring_ready'}, streamdata) then DxLeg:setVariable("ignore_early_media", streamdata) end else end