Skip to content

SipCall.waitForAnswer broken - always get time out #7

Description

@szcom

transaction's block (returned by getBlock()) is never notified upon receiving any responses
and thus this line in SipCall.java always hangs
EventObject response_event = parent.waitResponse(transaction, timeout);

problem seems to be in SipSession::processResponse() as it returns prematurely here:

    if (listener != null)
    {
        listener.processEvent(response);
        **return;** 
    }

    // if no listener, use the default blocking mechanism
    synchronized (sip_trans.getBlock())
    {
        sip_trans.getEvents().addLast(response);
        sip_trans.getBlock().notifyEvent();
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions