To see if it's a reinvite I normally use CSEQ field. It's unique for each type of message in each call. So if you get the same CSEQ and it's a INVITE message, it means that it's a REINVITE.
Jose Simoes On 1/13/06, Jerry Yin <[EMAIL PROTECTED]> wrote: > > The way is to check the to-tag. If it is exist, it is a re-invite. > Otherwise, it's the Invite. > > If the UA receives a invite with to-tag but there's no dialog, it should > reject the request by a 481 "Call Leg/Transaction Does Not Exist" > response. > > Jerry > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of Uttam > > Kumar Sarkar > > Sent: Friday, January 13, 2006 10:57 AM > > To: 'Ramesh'; [email protected] > > Subject: Re: [Sip-implementors] Distinguishing Initail Invite > > fromReInvit es. > > > > > > Probably you must be storing the call-ids of all new calls. If > > the INVITE's > > call id matches your active call list then it's a re-INVITE. > > > > -----Original Message----- > > From: Ramesh [mailto:[EMAIL PROTECTED] > > Sent: Friday, January 13, 2006 10:56 AM > > To: [email protected] > > Subject: [Sip-implementors] Distinguishing Initail Invite from > ReInvites. > > > > > > Hi, > > How can we distinguish between an Initial Invite and a re-Invite? Is > it > > by looking at the Tag in the To field or by someother means? The > > problem on > > hand is that we are using session timers using INVITES and > > sometimes we get > > a response from the uac as though it is a new call. Since the client > does > > not support session timers we are using reinvites to check if the > > session is > > still up from our side. > > > > Thanks in advance > > -- > > cheers > > ramesh > > _______________________________________________ > > Sip-implementors mailing list > > [email protected] > > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors > > > > > > > > > > NOTE: This message, including any attachments, may include privileged, > > confidential and/or inside information. Any distribution or use of this > > communication by anyone other than the intended recipient(s) is strictly > > prohibited and may be unlawful. If you are not the intended recipient, > > please notify the sender by replying to this message and then > > delete it from > > your system. Thank you. > > _______________________________________________ > > Sip-implementors mailing list > > [email protected] > > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors > > > > _______________________________________________ > Sip-implementors mailing list > [email protected] > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors > _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
