[EMAIL PROTECTED] wrote:
> In latest revisions, a bug was introduced - you cannot answer a remote 
> call because it is immediately disconnected. Remote party sends BYE for 
> some reason after you try to answer it.
>
> In revision 8938 it works fine. I will continue using 8938 as I dont 
> have time to debug this one.
>
> Jaroslav Libak
>
> _______________________________________________
> sipxtapi-dev mailing list
> [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
>
>   
Alexander, please replace in SipConnection.cpp:

    if (mpMediaInterface->isConnectionIdValid(mConnectionId) &&
            mpMediaInterface != NULL)

with

if (mpMediaInterface != NULL &&
        !mpMediaInterface->isConnectionIdValid(mConnectionId))

The original condition was very stupid, as if mpMediaInterface was NULL 
then we got
illegal memory access. Also note that in the 2nd version there is ! 
before the 2nd condition.
We need to create media connection if the ID is invalid, not vice versa.

This bug was introduced in revision 9049.

I didnt debug this, I just checked out revisions until I found this one 
which looked suspicios.

Jaroslav Libak

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to