[reSIProcate] OnReferAccepted() called when SipFrag contain 408

Scott Godin slgodin at icescape.com
Mon Jan 22 15:50:11 CST 2007


onReferAccepted is called when the first notify is seen, or when a 2xx
response to the refer is received.  This is due to the fact that it is
very common for the first notify to make it to the UA before the refer
response (see RJS post from earlier today).

 

onReferRejected is called when an error response (4xx or whatever) is
received for the refer.

 

Scott

 

From: Kovar, William (Bill) [mailto:bkovar at avaya.com] 
Sent: Monday, January 22, 2007 4:45 PM
To: Scott Godin; resiprocate-devel at list.resiprocate.org
Subject: RE: [reSIProcate] OnReferAccepted() called when SipFrag contain
408

 

Scott,

 

Thanks for the clarification, but then I would ask why is
OnReferAccepted called when a NOTIFY (code >=100) is sent and not on the
actual 202??

 

Also, given your explanation below, when would OnReferRejected() be
called? When a failure to accept the REFER is sent?

 

Bill Kovar

bkovar at avaya.com

Avaya, Inc.

(732) 852-2609

 

	 

________________________________

	From: Scott Godin [mailto:slgodin at icescape.com] 
	Sent: Monday, January 22, 2007 4:38 PM
	To: Kovar, William (Bill);
resiprocate-devel at list.resiprocate.org
	Subject: RE: [reSIProcate] OnReferAccepted() called when SipFrag
contain 408

	The Refer request was accepted, otherwise the other endpoint
wouldn't have sent a Notify.  The other endpoint is notifying you that
could not reach the Refer destination - your application must always
parse out the SipFrag Body and handle the embedded responses
appropriately.

	 

	From: resiprocate-devel-bounces at list.resiprocate.org
[mailto:resiprocate-devel-bounces at list.resiprocate.org] On Behalf Of
Kovar, William (Bill)
	Sent: Monday, January 22, 2007 4:07 PM
	To: resiprocate-devel at list.resiprocate.org
	Subject: [reSIProcate] OnReferAccepted() called when SipFrag
contain 408

	 

	All,

	 

	Seeing some weird behavior in Dialog.cxx. Why would a
onReferAccepted() be called when a 408 SipFrag is returned?? Shouldn't
this cause OnReferRejected()??

	 

	See the trace below:

	 

	 

	 

	NOTIFY sip:55506 at 135.8.116.33:5060 SIP/2.0

	 

	Via: SIP/2.0/UDP
135.8.52.181:5060;branch=z9hG4bK030303132626431616b2cc.0

	 

	Via: SIP/2.0/TCP
135.8.83.172;psrrposn=1;received=135.8.83.172;branch=z9hG4bK014e08ff8aad
b1903f45bcb3e300

	 

	Max-Forwards: 69

	 

	Record-Route: <sip:135.8.52.181:5060;lr>

	 

	Contact: "SIP DEV's IP ph"<sip:70800 at 135.8.83.172;transport=tcp>

	 

	To: "55506"<sip:55506 at avaya.com>;tag=856f4606

	 

	From: "SIP DEV's IP
ph"<sip:70800 at avaya.com>;tag=0ba7d8df8aadb1833f45bcb3e300

	 

	Call-ID: 0ba7d8df8aadb1843f45bcb3e300

	 

	CSeq: 2 NOTIFY

	 

	Content-Type: message/sipfrag

	 

	User-Agent: Avaya CM/R013x.01.2.632.1

	 

	Subscription-State: terminated;reason=noresource

	 

	Event: refer

	 

	Content-Length: 29

	 

	 

	 

	SIP/2.0 408 Request Timeout

	 

	
	 ![2007-01-22 20:37:13.473] <5224:RESIP:DUM>  DEBUG |
ClientSubscription.cxx:31 | ClientSubscription::ClientSubscription from
SipReq:  NOTIFY 55506 at 135.8.116.33:5060 tid=030303132626431616b2cc.0
cseq=NOTIFY contact=70800 at 135.8.83.172 / 2 from(wire)
	 ![2007-01-22 20:37:13.473] <5224:RESIP:DUM>  DEBUG |
Dialog.cxx:847 | +++++++ mRemoteTarget.Uri =
sip:70800 at 135.8.83.172;transport=tcp
	 ![2007-01-22 20:37:13.473] <5224:RESIP:DUM>  DEBUG |
Dialog.cxx:849 | +++++++ Rline = SUBSCRIBE
sip:70800 at 135.8.83.172;transport=tcp SIP/2.0
	 ![2007-01-22 20:37:13.473] <5224:RESIP:DUM>  DEBUG |
Dialog.cxx:914 | Dialog::makeRequest: SUBSCRIBE
sip:70800 at 135.8.83.172;transport=tcp SIP/2.0

	 

	Via: SIP/2.0/
;branch=z9hG4bK-d87543-367f846ff920d910-1--d87543-;rport

	 

	Max-Forwards: 70

	 

	Route: <sip:135.8.52.181:5060;lr>

	 

	Route: <sip:135.8.83.172;lr;transport=tcp>

	 

	Contact: <sip:55506 at 135.8.116.33:5060>

	 

	To: "SIP DEV's IP
ph"<sip:70800 at avaya.com>;tag=0ba7d8df8aadb1833f45bcb3e300

	 

	From: "55506"<sip:55506 at avaya.com>;tag=856f4606

	 

	Call-ID: 0ba7d8df8aadb1843f45bcb3e300

	 

	CSeq: 4 SUBSCRIBE

	 

	Event: refer

	 

	Content-Length: 0

	 

	 

	 

	
	 ![2007-01-22 20:37:13.473] <5224:RESIP:APP>  INFO |
UserAgent.cpp:1897 | sip:55506 at avaya.com
CUserAgent::onReferAccepted(ISH) on session 5 - SipReq:  NOTIFY
55506 at 135.8.116.33:5060 tid=030303132626431616b2cc.0 cseq=NOTIFY
contact=70800 at 135.8.83.172 / 2 from(wire)
	 

	 

	Bill Kovar

	bkovar at avaya.com

	Avaya, Inc.

	(732) 852-2609

	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070122/2073e87a/attachment.htm>


More information about the resiprocate-devel mailing list