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

Reply via email to