Skip to content

Commit

Permalink
Add option my_events
Browse files Browse the repository at this point in the history
Fixes #42
  • Loading branch information
shimaore committed Nov 6, 2017
1 parent 2ea0b26 commit c88c8b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/esl.coffee.md
Expand Up @@ -240,6 +240,7 @@ The call handler will receive a `FreeSwitchResponse` object, `options` are optio
debug "Server: #{error}"
options.all_events ?= true
options.my_events ?= true
assert.ok handler?, "server handler is required"
assert.strictEqual typeof handler, 'function', "server handler must be a function"
Expand All @@ -260,7 +261,7 @@ Confirm connection with FreeSwitch.
Restricting events using `filter` is required so that `event_json` will only obtain our events.

@filter Unique_ID, @uuid
@filter Unique_ID, @uuid if options.my_events
.then ->
@auto_cleanup()
.then ->
Expand Down

0 comments on commit c88c8b4

Please sign in to comment.