2008/2/25, Jerry Richards <[EMAIL PROTECTED]>: > So are you saying a bug was fixed in which version?
Nope, it has not been fixed. if you include a new feature tag in SIPTAG_REQUIRE()/SIPTAG_REQUIRE_STR() you have to include it in NUTAG_SUPPORTED(), too. This is just in case someone invents an unsymmetric feature that one can require without supporting it. > Also, I noticed if I > set SIPTAG_UNSUPPORTED_STR("timer, 100rel") in the nua_handle() call just > prior to nua_invite() (or nua_register()), the outgoing INVITE (or REGISTER) > message has both "Supported: timer, 100rel" and "Unsupported: timer, > 100rel". A SIP_* tags included nua_handle() call are included in all the requests by default. However, Unsupported header is meant to be used only in responses. It is used when a request has Require header with a feature tag which is not supported by the UAS (or Proxy-Require has a feature tag which is not supported by proxy). Sorry if this is confusing. Here is a short summary how the SIP feature negotiation works and how to use different tags: Supported header indicates the features supported by the sender. The SIPTAG_SUPPORTED/SIPTAG_SUPPORTED_STR with nua_set_params()/nua_set_hparams()/nua_handle()/nua_invite()/nua_respond()... list the complete set of supported features, included in the Supported header in the requests/responses. NUTAG_SUPPORTED() adds features to the currently supported set of features. Require header (SIPTAG_REQUIRE/SIPTAG_REQUIRE_STR) lists the features that the remote end must support in order to correctly handle the message. If a Require header is included in request, the UAS must support the listed features. If it does not, UAS responds with 420 and lists the features it does not support in the Unsupported header. If Require header is included in response the UAC must support the features. Beside 100rel and timer extensions, it is up to the application using Sofia SIP to check that the UAC has listed features in its Supported header. If the UAC does not support the required features application must respond with 421 and list the required features in the Require header. Proxy-Require header (SIPTAG_PROXY_REQUIRE/SIPTAG_PROXY_REQUIRE_STR) lists the features that all the proxies processing the request must support in order to correctly handle the request. If the proxy does not support the features, it responds with 420 and lists the features it does not support in the Unsupported header. --Pekka > -----Original Message----- > From: Pekka Pessi [mailto:[EMAIL PROTECTED] > Sent: Monday, February 25, 2008 7:01 AM > To: Jerry Richards > Cc: sofia-sip-devel@lists.sourceforge.net > Subject: Re: [Sofia-sip-devel] Supported and Required Headers > > 2008/2/21, Jerry Richards <[EMAIL PROTECTED]>: > > Is the sofia-sip default set to "Supported: timer 100rel"? I don't > > think I specify this, but the stack is including this header in > > outgoing INVITE messages. > > Yes, that is the default. > > > Also, if I want to control this header (and also use the "Required: > > timer, 100rel, ..." header), then do you agree I should use the following > tags: > > > > - SIPTAG_SUPPORTED_STR("timer, 100rel") > > - SIPTAG_UNSUPPORTED_STR("timer, 100rel") > > - SIPTAG_REQUIRE_STR("timer, 100rel") > > - NUTAG_SESSION_TIMER(3600) > > You should use > > SIPTAG_REQUIRE_STR("timer, 100rel"), > NUTAG_SESSION_TIMER(3600) > > > Also, would I only specify these when calling nua_invite()? > > That depends. I guess you should set NUTAG_SESSION_TIMER(3600) nua-wide, but > you can use SIPTAG_REQUIRE_STR("timer, 100rel") only with nua_invite() (and > SIPTAG_UNSUPPORTED_STR() only with nua_respond()). In other words, they are > ignored with nua_set_params() or nua_set_hparams(). I guess that is what you > meant that they "do not work". > > A feature tag in Require header implies that it is Supported, but the > feature tags listed with SIPTAG_REQUIRE or SIPTAG_REQUIRE_STR are not added > to the list of Supported features stored in the handle. I guess this could > be considered as a bug and fixed... > > -- > Pekka.Pessi mail at nokia.com > > -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- 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