]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-11281: Verto.newCall dialog callback overrides should be set before invite
authorChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 18:51:27 +0000 (13:51 -0500)
committerChad Phillips <chad@apartmentlines.com>
Thu, 26 Jul 2018 18:51:27 +0000 (13:51 -0500)
commit5f96f669c2fe7f133164aab735b412bef794d932
tree075138ba5ae270cdda098a5034f1261019fc0971
parentd5af929660de70c64abcb61b540ffd4689a7b365
FS-11281: Verto.newCall dialog callback overrides should be set before invite

Verto.newCall() permits passing custom callback functions per call that
override the default dialog callbacks inherited from the Verto object.
However, they are currently set after calling the invite() function, and it's
possible that some of these callbacks could be called during the invite()
function's execution.

To avoid a race condition, move setting these custom callbacks on the dialog
to happen before calling invite().
html5/verto/js/src/jquery.verto.js