Skip to content

Instantly share code, notes, and snippets.

@phm200
Created May 30, 2018 19:53
Show Gist options
  • Save phm200/0294ac99236f4638b72a80fc20a5bc56 to your computer and use it in GitHub Desktop.
Save phm200/0294ac99236f4638b72a80fc20a5bc56 to your computer and use it in GitHub Desktop.
Streams PR #64 - Softphone Manager 2
connect.contact(function(contact) {
...
contact.onRefresh(function() {
...
session.remoteAudioElement = document.getElementById('remote-audio');
session.connect();
// new code
var bus = connect.core.getEventBus();
bus.trigger(contact.getEventName(connect.ContactEvents.SESSION), session);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment