Hi,
o Jeremy A [07/31/09 11:38]:
Hi,
I've got a class that I think should work for dialing out from a
conference but I get no onSessionStart() call.
if the INVITE is outgoing you need to implement
void onSessionStart(const AmSipReply& reply);
and not
void onSessionStart(const AmSipRequest& req){}
because the session is started when you receive a 200 reply.
> dlg.sendRequest ( "INVITE", "application/sdp", body, "" );
> start();
> AmSessionContainer::instance()->addSession ( _session_id, this );
I think to avoid race conditions (but very rare ones) it would make
sense to add it to session container before sending the INVITE.
Also, note that you are sending the INVITE in the thread that creates
the session (usually this is OK, but it may not block).
BR
Stefan
--
Stefan Sayer
VoIP Services
[email protected]
www.iptego.com
IPTEGO GmbH
Wittenbergplatz 1
10789 Berlin
Germany
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems