Stéphane Alnet

Results 42 comments of Stéphane Alnet

@danjenkins there's no restrictions for this in the module, and a cursory look at the FreeSwitch code for `uuid_record` and the internal `switch_core_session_perform_locate` function doesn't seem to indicate there are...

@TimMeade There are plenty of reasons this could fail (connectivity issues between the client and FreeSwitch, password different from default, etc.); running your script with `DEBUG="*"` in the environment should...

Ah, using the `=>` shortcut won't work because it binds `this` inside your function. Try for example ``` const fsCommand = function (cmd) { ``` etc.

That's strange. Did you replace all the occurrences of `=>` with `function ()`? Basically `=>` works as `(function () {…}).bind(this)`. In the example you provided this means `this.api` tries to...

A side note: with recent Node.js and `esl` you would be better off using the `async`/`await` pattern rather than `seem` and `yield` (even though they do the same thing essentially)....

If I take the code you were referring to, an up-to-date implementation would look like this: ```javascript const call_handler = async () => { const caller = this.data['Channel-Caller-ID-Number'] const callee...

@afshin2003 this was [introduced in Node.js 1.5.0](https://github.com/nodejs/node/blob/v4.2.1/CHANGELOG.md#2015-03-06-version-150-rvagg), you probably need to upgrade Node.js. (And I probably need to document this in `package.json` as well.)

The reference to `indexOf` was introduced in 44b45e20ba9a0a69b4d8ae8acc65b4ac13d63f56 so it's recent (`esl` 4.1.0). Yes, `npm install` should work, `npm run-script prepublish` is actually what builds.

Well actually, what happened in 44b45e20ba9a0a69b4d8ae8acc65b4ac13d63f56 is that the parser's buffer was changed from a `string` to an actual `Buffer` object. So the dependency was introduced because of that change...

Please check https://github.com/shimaore/esl/issues/56#issuecomment-851045691#35 But basically you need to subscribe for the CUSTOM event then filter on the Event-Subclass.