< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] How to differ the Invite and re-Invite!


Title: Mail
Hi Scott:
 
  Thanks. I understand it. But I meet some new problems related with re-invite today.
 
1.In an active call, for a UAC, when it send out the re-invite message, then UAS will send back the 200 OK.
  At this time, the onAnswer callback will be called, I want to know if the 200 OK is for re-invite or for initial invite in this function, how can I do ?
 
2.The other problem is the ACK message, I want to differ the ACK is for invite or for re-invite in the onAckReceived() callback, how can I do ?
 
Very thank for your patient answer.
 
Ryan
2008.06.25
 
----- Original Message -----
From: Scott Godi
Sent: 2008-06-24, 21:10:37
Subject: RE: RE: How to differ the Invite and re-Invite!

Please keep in mind the SDP Offer/Answer and SIP invite session state machines should be considered separate.  Accept is for “accepting an inbound call”.  For an initial invite this must be called sometime after provideAnswer in order to send out the SDP answer in the 200.  For re-invite the call is already “accepted”, so you only need to call provideOffer and DUM will send the 200 immediately.

Scott

From: 秦杨 [mailto:qinyang_1980@xxxxxxx]
Sent: Tuesday, June 24, 2008 8:24 AM
To: Scott Godin
Subject: Re: RE: How to differ the Invite and re-Invite!

Hi Scott:

    I just want to call some special procedure when incoming a re-invite message in onOffer, you know, I should maintain the call status.

1. Then, you mean that when incoming a invite message, we should call ServerInviteSession::accept.

    But if I want to accept a re-invite, how could I do ??

2. The other thing I don't understand so far is which one will send out the 200 OK in onOffer callback?

   1)h->provideAnswer(sdp);

   2)(ServerInviteSession*)h->accept();

Ryan

2008.06.24

----- Original Message -----

From: Scott Godin

Sent: 2008-06-24, 01:23:20

Subject: RE: How to differ the Invite and re-Invite!

The only reason I know of that you would need to know the difference between initial invite vs re-invite is if you want to decide if  to call ServerInviteSession::accept or not in the onOffer callback.  In this case you can call h->isAccepted() in order to differential initial UAS Invite from reInvite.  Let me know if you had a different use call in mind. 

Scott

From: 秦杨 [mailto:qinyang_1980@xxxxxxx]
Sent: Monday, June 23, 2008 8:42 AM
To: resiprocate-users
Cc: Scott Godin
Subject: How to differ the Invite and re-Invite!

Hi Scott:

  I send an invite message to a UAS, the UAS invoke the onOffer function.

But when I send a re-invite message(with sdp), the onOffer function also be called.

I want to know what different between the invite and re-invite, and which functions will be called when send them, and how to differ them??

Thanks.

Ryan

2008.06.23