Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call Hold is not working #5

Open
rahulkrv opened this issue Jul 26, 2021 · 1 comment
Open

Call Hold is not working #5

rahulkrv opened this issue Jul 26, 2021 · 1 comment

Comments

@rahulkrv
Copy link

rahulkrv commented Jul 26, 2021

When request to hold the call, it terminates the call
// holds or resumes the call

public sipToggleHoldResume() {
try {
if (this.oSipSessionCall) {

    var i_ret;

    this.callInfo['message'] = this.oSipSessionCall.bHeld ? 'Resuming the call...'
      : 'Holding the call...';
    console.log(this.oSipSessionCall)

    i_ret = this.oSipSessionCall.bHeld ? this.oSipSessionCall.resume()
      : this.oSipSessionCall.hold();

    this.callInfo['message'] = this.oSipSessionCall.bHeld ? 'Hold' : 'Unhold';

    if (i_ret != 0) {
      this.callInfo['message'] = 'Hold / Resume failed';
    }

  }
} catch (e) {
  console.log("error hold", e)
}

}

@andrew-paes
Copy link

Any work on this? Looks like the project is abandoned about 3 years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants