I'm making a SEMS module in C++, and when I sent my bye, I also
immediately stop the session:

        this->dlg.bye();
        this->setStopped();

This pattern is also used in other modules, like the voicemail.

Unfortunately, when the SIP message 200 OK is received from the client,
the AmSipDispatcher gives an error:
        ERROR: [42074940] handleSipMsg (AmSipDispatcher.cpp:48): could
not dispatch reply: (Incoming 200 OK reply)

I suspect the AmSipDispatcher is trying to post an event to the already
stopped session. Clearly, I'm not
interested in this event, otherwise I would've waited for it.
Also, this is not a critical error (I believe the internal state machine
closes down the call properly), so I
would suggest to demote the error to a warning, or even to a debug
message (since it could be a very deliberate
choice not to wait for the event).

Is my statement correct, or am I closing down my session in the wrong
way?

Thanks,
Bert
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to