o Juha Heinanen [09/23/08 17:51]:
> Schroeder, Paul writes:
>
> i don't remember seeing any commend on this message from paul.
Bogdan commented on the same issue. Pauls patch is missing handling the
case where the invite can not be sent. which method is the correct one
to remove the session then, is it destroySession()?
Stefan
>
> -- juha
>
> --------------------------------------------------------------------------
>
> > i have to make a change in the AmSessionContainer::startSessionUAC
> > method, because a race condition existed between the moment where the
> > INVITE was sent and the new session was added to the container
> > (AmEventDispatcher). Sometimes it appears that sems is unable to
> > assign a reply with the session, because the reply comes before a
> > session exist. therefore i write the addSession command before the
> > invite was send.
> >
> > Index: AmSessionContainer.cpp
> > ===================================================================
> > --- AmSessionContainer.cpp (Revision 1073)
> > +++ AmSessionContainer.cpp (Arbeitskopie)
> > @@ -156,6 +156,8 @@
> > session->dlg.updateStatusFromLocalRequest(req); // sets local tag
> as well
> > session->setCallgroup(req.from_tag);
> >
> > + addSession("","",req.from_tag,session);
> > +
> > session->setNegotiateOnReply(true);
> > if (int err = session->sendInvite(req.hdrs)) {
> > ERROR("INVITE could not be sent: error code = %d.\n",
> > @@ -171,7 +173,7 @@
> >
> > session->start();
> >
> > - addSession("","",req.from_tag,session);
> > +
> > }
> > }
> >
> > paul
> _______________________________________________
> Semsdev mailing list
> [email protected]
> http://lists.iptel.org/mailman/listinfo/semsdev
--
Stefan Sayer
VoIP Services
[EMAIL PROTECTED]
www.iptego.com
IPTEGO GmbH
Am Borsigturm 40
13507 Berlin
Germany
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev