[Sofia-sip-devel] NOTIFY sip frag set to 503 when receiving 407 Invite response

2011-03-30 Thread Nauman Sulaiman
Hi, when performing an attended transfer, when the transfer destination sends a 
407 to the INVITE with replaces generated by transferee, a NOTIFY with 503 
sipfrag is sent to the transferrer. Code is here in nua_session.c
in function nh_referral_respond. The transfer destination is in different
domain. The resulting NOTIFY 503 sent to the transferrer makes him think the 
transfer has failed rather than just being in progress. Is there some reason 
for this or is it a bug?


if (status = 300)
status = 503, phrase = sip_503_Service_unavailable;

  snprintf(payload, sizeof(payload), SIP/2.0 %03u %s\r\n, status, phrase);

  if (status  200)
substate = active;
  else
substate = terminated ;reason=noresource;

  nua_stack_post_signal(ref-ref_handle,
nua_r_notify,
SIPTAG_EVENT(ref-ref_event),
SIPTAG_SUBSCRIPTION_STATE_STR(substate),
SIPTAG_CONTENT_TYPE_STR(message/sipfrag),
SIPTAG_PAYLOAD_STR(payload),
TAG_END());

 
Regards


  

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel


Re: [Sofia-sip-devel] NOTIFY sip frag set to 503 when receiving 407 Invite response

2011-03-30 Thread Pekka Pessi
Hi,

2011/3/30 Nauman Sulaiman nauman762-h...@yahoo.co.uk:
 Hi, when performing an attended transfer, when the transfer destination sends 
 a 407 to the INVITE with replaces generated by transferee, a NOTIFY with 503 
 sipfrag is sent to the transferrer. Code is here in nua_session.c
 in function nh_referral_respond. The transfer destination is in different
 domain. The resulting NOTIFY 503 sent to the transferrer makes him think the 
 transfer has failed rather than just being in progress. Is there some reason 
 for this or is it a bug?

I think it is a bug, the stack should check if the request is restartable.

--Pekka

-- 
Pekka.Pessi mail at nokia.com

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel