[reSIProcate] How to differentiate "invite" or "holdoff"?

常铮 changzheng at emails.bjut.edu.cn
Sun Oct 2 08:22:34 CDT 2005


Hi all
I can not differentiate two situations as follows.
(Terminal A and Terminal B as example for my description)

Situation 1:
When initially establish Call,
A send INVITE with Sdp to B, 
then B answer it and return 200ok with Sdp to A, 
and then A recevive 200ok and call virtual function 
  virtual void
  InviteSessionHandler::onAnswer(InviteSessionHandle is, const SipMessage& msg,
const SdpContents& sdp)

Situation 2:
When HoldOff,
A send same INVITE with same Sdp to B, 
then B answer it and return 200ok with Sdp to A, 
and then A recevive 200ok and call virtual function 
  virtual void
  InviteSessionHandler::onAnswer(InviteSessionHandle is, const SipMessage& msg,
const SdpContents& sdp)

I want to know in Terminal A,
How to differentiate this two situations in function onAnswer()?
I think the two "msg" and the two "sdp" are all same, 
maybe there are some difference in "is".

Thank you very much.

ZhengChang , 
Beijing , China





More information about the resiprocate-devel mailing list