Skip to content

SessionDescriptionHandler failed Cannot read property 'logger' of undefined #835

Closed

Description

@miladmeidanshahi

Describe the bug
When I put a session on hold I get this error

sip.SessionDescriptionHandler | SessionDescriptionHandler.getDescription failed - TypeError: Cannot read property 'logger' of undefined
sip.Inviter | Session.getOffer: SDH getDescription rejected...
sip.Inviter | Cannot read property 'logger' of undefined
sip.Inviter | Failed to send re-INVITE
session-description-handler.js?13cd:173 Uncaught (in promise) TypeError: Cannot read property 'logger' of undefined

My code

session.invite({
   sessionDescriptionHandlerModifiers: [session.sessionDescriptionHandler.holdModifier]
)}

Environment Information

  • sip version 0.17.0
  • linux
  • electron 9.1.0

Activity

  1. added a commit that references this issue on Jul 13, 2020
    655d327
  2. john-e-riordan commented on Jul 13, 2020

    @john-e-riordan
    Collaborator

    The SDH API for hold changed in 17.x, but the cleanup of the old method wasn't complete - and this bug.

    Anyway, this should work in 17.1 and up...

    import { Web } from "sip.js";
    
    // Hold
    session.invite({
       sessionDescriptionHandlerModifiers: [Web.holdModifier]
    )}
    
    // Unhold
    session.invite({
       sessionDescriptionHandlerModifiers: []
    )}
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions