TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received undefined
at checkListener (node:events:276:3)
at Endpoint.removeListener (node:events:682:7)
at TaskRestDial.stopAmd (/home/admin/apps/jambonz-feature-server/lib/utils/amd-utils.js:394:10)
at TaskRestDial.turnOffAmd (/home/admin/apps/jambonz-feature-server/lib/tasks/rest_dial.js:51:62)
at RestCallSession._hangup (/home/admin/apps/jambonz-feature-server/lib/session/rest-call-session.js:118:25)
at RestCallSession._callerHungup (/home/admin/apps/jambonz-feature-server/lib/session/rest-call-session.js:109:10)
at Dialog.emit (node:events:519:28)
at Dialog.handle (/home/admin/apps/jambonz-feature-server/node_modules/drachtio-srf/lib/dialog.js:497:14)
at Object.handle (/home/admin/apps/jambonz-feature-server/node_modules/drachtio-srf/lib/srf.js:136:46)
at next (/home/admin/apps/jambonz-feature-server/node_modules/drachtio-srf/lib/proto.js:202:15)
TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received undefined at checkListener (node:events:276:3) at Endpoint.removeListener (node:events:682:7) at TaskRestDial.stopAmd (/home/admin/apps/jambonz-feature-server/lib/utils/amd-utils.js:394:10) at TaskRestDial.turnOffAmd (/home/admin/apps/jambonz-feature-server/lib/tasks/rest_dial.js:51:62) at RestCallSession._hangup (/home/admin/apps/jambonz-feature-server/lib/session/rest-call-session.js:118:25) at RestCallSession._callerHungup (/home/admin/apps/jambonz-feature-server/lib/session/rest-call-session.js:109:10) at Dialog.emit (node:events:519:28) at Dialog.handle (/home/admin/apps/jambonz-feature-server/node_modules/drachtio-srf/lib/dialog.js:497:14) at Object.handle (/home/admin/apps/jambonz-feature-server/node_modules/drachtio-srf/lib/srf.js:136:46) at next (/home/admin/apps/jambonz-feature-server/node_modules/drachtio-srf/lib/proto.js:202:15)