Hi folks,

is it possible that sofia sip does not send the auto answer to a
incoming REFER? In my case sofia sip does always response with 202
ACCEPTED without a possibility to change the response value in the
nua_i_refer callback function. I want to respond with FORBIDDEN in some
cases.

I think the following code does send the 202 ACCEPTED, isn't it?
   if (sr->sr_status == 100 && method != sip_method_unknown &&
      !sip_is_allowed(NH_PGET(sr->sr_owner, appl_method), method, name))
{
    if (method == sip_method_refer || method == sip_method_subscribe)
      SR_STATUS1(sr, SIP_202_ACCEPTED);
    else 
      SR_STATUS1(sr, SIP_200_OK);

(nua_stack.c line 1409)

Best regards,
Bernhard Suttner


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to