Stefan Sayer wrote:
> 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.

I have implemented that and it is never called. I notice that in the
conference.cpp example this code is commented out and call handling
happens in the onSipReply section.

Do you know what are the conditions that onSessionStart(const
AmSipReply& reply) is called?
>
> I think to avoid race conditions (but very rare ones) it would make
> sense to add it to session container before sending the INVITE.

The conference.cpp example does it the other way around. I have
implemented it as you suggested.

>
> Also, note that you are sending the INVITE in the thread that creates
> the session (usually this is OK, but it may not block).

Would it be best to call it in a session thread? If so, what function
should I put it in? i.e. What is the first event function called by the
new thread?

Regards

Jeremy

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

Reply via email to