]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-11280: Allow overriding permissionCallback per Verto dialog
authorChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 18:37:32 +0000 (13:37 -0500)
committerChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 18:37:32 +0000 (13:37 -0500)
commit36d9f7bc5e4a1644cdcf8c00df976d5283885ea3
tree48991dbf064b0fde4fc02ec95fd82311053865dd
parentd5af929660de70c64abcb61b540ffd4689a7b365
FS-11280: Allow overriding permissionCallback per Verto dialog

Currently the 'permissionCallback' object is only available at the Verto
instance level. This is problematic in multi-call scenarios, where an
individual call dialog needs access to the onGranted/onDenied callback
functions.

The patch adds a check for existence of onGranted/onDenied callback functions
at the dialog level, with a fallback to the original behavior of calling
onGranted/onDenied from the Verto instance if it's not available on the dialog.
This preserves backwards compatibility while allowing per-dialog overrides
going forward.
html5/verto/js/src/jquery.verto.js