Hi All,
As far as my knowledge goes, the actual call flow should be... to receive
487 Request Terminated
1.INVITE
------------------------>
2. 100 Trying
<-----------------------
3. CANCEL
------------------------>
4. 487 Request Terminated
<-----------------------
5. ACK
------------------------>
But in case you are receiving 180 Ringing, which indicates that the Term has
received the INVITE message.
Thus in this case you are in completed INVITE transaction state.
Hence in order to stop this Transaction you are sending CANCEL and reciving
OK which is perfectly fine.
You will receive a 487 response only if you are in INVITE Proceeding state
and
you send a CANCEL request before you receive a 180 Ringing response.
Regards,
Atul
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of sam n
Sent: Tuesday, August 31, 2004 6:40 AM
To: [EMAIL PROTECTED]
Subject: [Sip-implementors] Canceling a pending INVITE
Hello,
I need to cancel an INVITE that was just sent, and am trying the
method indicated in RFC 3261. Below is a small log of the SIP messages
sent/received.
<send INVITE>
INVITE sip:[EMAIL PROTECTED] SIP/2.0
Call-ID: [EMAIL PROTECTED]
CSeq: 590812 INVITE
From: <sip:[EMAIL PROTECTED]>;tag=1508783231-1592972684
To: "1001" <sip:[EMAIL PROTECTED]>
Via: SIP/2.0/UDP 192.168.0.16:1099
Max-Forwards: 70
Contact: "gernot" <sip:[EMAIL PROTECTED]:1099>
User-Agent: C12 Phone
Allow: ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,UPDATE,NOTIFY
Content-Type: application/sdp
Content-Length: 159
// sdp body
<receive TRYING>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
192.168.0.16:1099;branch=z9hG4bK2a812a1942f6c5e7081b1c7505d45b8c
From: <sip:[EMAIL PROTECTED]>;tag=1508783231-1592972684
To: "1001" <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 590812 INVITE
Content-Length: 0
<receive RINGING>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP
192.168.0.16:1099;branch=z9hG4bK2a812a1942f6c5e7081b1c7505d45b8c
From: <sip:[EMAIL PROTECTED]>;tag=1508783231-1592972684
To: "1001" <sip:[EMAIL PROTECTED]>;tag=1229238695-1093914397502
Call-ID: [EMAIL PROTECTED]
CSeq: 590812 INVITE
Allow: ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,UPDATE,NOTIFY
Supported: 100rel
Contact: <sip:192.168.0.170:5060>
Remote-Party-ID: "Jill
Tester"<sip:[EMAIL PROTECTED];user=phone>;screen=yes;party=called;privacy=o
ff;id-type=subscriber
Content-Length: 0
<send CANCEL>
CANCEL sip:[EMAIL PROTECTED] SIP/2.0
Call-ID: [EMAIL PROTECTED]
CSeq: 590812 CANCEL
From: <sip:[EMAIL PROTECTED]>;tag=1508783231-1592972684
To: "1001" <sip:[EMAIL PROTECTED]>
Via: SIP/2.0/UDP 192.168.0.16:1099
Max-Forwards: 70
User-Agent: C12 Phone
Contact: "gernot" <sip:[EMAIL PROTECTED]:1099>
Content-Length: 0
<receive OK for CANCEL>
SIP/2.0 200 OK
Via: SIP/2.0/UDP
192.168.0.16:1099;branch=z9hG4bK4f4ef2cc44a8b287fda3dd08df6fdebd
From: <sip:[EMAIL PROTECTED]>;tag=1508783231-1592972684
To: "1001" <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 590812 CANCEL
Content-Length: 0
However, after this, i do not receive a 487 Request Terminated
response, and the remote user's phone proceeds to ring.
Could anyone kindly tell me where i'm going wrong.
Thanks in advance.
Regards,
Sam
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors