• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

adhearsion / punchblock / 1140

Build:
Build:
LAST BUILD BRANCH: freeswitch
DEFAULT BRANCH: develop
Ran 27 Aug 2015 07:38PM UTC
Jobs 5
Files 135
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1140

Pull #254

travis-ci

benlangfeld
<a href="https://github.com/adhearsion/punchblock/commit/<a class=hub.com/adhearsion/punchblock/commit/44f590cd2f35eb51ceba26df9724b56846559940">44f590cd2<a href="https://github.com/adhearsion/punchblock/commit/44f590cd2f35eb51ceba26df9724b56846559940">&quot;&gt;Avoid races in processing Asterisk 13 bridges

On Asterisk 13, BridgeEnter and BridgeLeave events do not include the opposite-channel ID, leaving us to track this using the sequential events. When processed by the Call object, these must call back out to the translator to store global state to correlate. In previous releases of Punchblock, this has encountered a race condition because the translator is accessed via its ActorProxy, raising the possibility of the second event being processed before the first is done.

A previous attempt to fix this was https://github.com/adhearsion/punchblock/commit/</a><a class="double-link" href="https://github.com/adhearsion/punchblock/commit/<a class="double-link" href="https://github.com/adhearsion/punchblock/commit/14f6e760acbd8aac11f1410665bb5f6046db351a">14f6e760a</a>">14f6e760a</a><a href="https://github.com/adhearsion/punchblock/commit/44f590cd2f35eb51ceba26df9724b56846559940">, released in 2.7.4, but this resulted in a suspected memory leak and crashing under heavy load in one example application. This first attempt was rolled back and the release yanked. This second attempt eliminates the issue by other means, that is moving the correlation up into the translator itself, passing the correlated data down to the call itself.
Pull Request #254: [WIP] Better fix for Asterisk 13 joined events

28 of 28 new or added lines in 2 files covered. (100.0%)

12404 of 12517 relevant lines covered (99.1%)

394.85 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
lib/punchblock/translator/asterisk.rb
Jobs
ID Job ID Ran Files Coverage
1 1140.1 (1.9.3) 27 Aug 2015 07:40PM UTC 0
99.09
Travis Job 1140.1
2 1140.2 (2.0.0) 27 Aug 2015 07:40PM UTC 0
99.09
Travis Job 1140.2
3 1140.3 (2.1.0) 27 Aug 2015 07:39PM UTC 0
99.09
Travis Job 1140.3
4 1140.4 (jruby) 27 Aug 2015 07:38PM UTC 0
97.5
Travis Job 1140.4
6 1140.6 (ruby-head) 27 Aug 2015 07:43PM UTC 0
99.09
Travis Job 1140.6
Source Files on build 1140
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1140
  • Pull Request #254
  • PR Base - master (#1134)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc