Okay. Just to wrap-up this issue, I now specify the SIPTAG_HEADER_STR("Require: 100rel") in my nua_respond(..., SIP_180_RINGING, ...) call and it works as I expect, without the need for any sofia-sip change. That is, the "180 Ringing" message is sent and it includes the "Require: 100rel" header.
Best Regards, Jerry -----Original Message----- From: Jerry Richards [mailto:jer...@tonecommander.com] Sent: Friday, May 15, 2009 1:55 PM To: 'Jerry Richards'; 'Pekka Pessi' Cc: 'sofia-sip-devel@lists.sourceforge.net' Subject: RE: [Sofia-sip-devel] "Require: 100rel" in 180 Ringing Message Another related problem, the "Require: 100rel" will only be included in the 180 Ringing if SIPTAG_REQUIRE_STR("100rel") is included in the nua_respond parameter list. Calling nua_set_hparams() with SIPTAG_REQUIRE_STR("100rel") doesn't do the trick. Jerry -----Original Message----- From: Jerry Richards [mailto:jer...@tonecommander.com] Sent: Friday, May 15, 2009 1:27 PM To: 'Pekka Pessi' Cc: 'sofia-sip-devel@lists.sourceforge.net' Subject: RE: [Sofia-sip-devel] "Require: 100rel" in 180 Ringing Message Pekka, I commented out the entire if-statement below, and now I see the 180 Ringing get transmitted with the "Require: 100rel" header. Are there any side-effects/pitfalls to doing this? Best Regards, Jerry -----Original Message----- From: Jerry Richards [mailto:jer...@tonecommander.com] Sent: Friday, May 15, 2009 12:36 PM To: 'Pekka Pessi' Cc: 'sofia-sip-devel@lists.sourceforge.net' Subject: RE: [Sofia-sip-devel] "Require: 100rel" in 180 Ringing Message I think this is a bug, because RFC 3262 says a provisional response can contain a "Require: 100rel", even if the request original request only indicates "Supported: 100rel"). However, in the function nua_invite_server_respond(), the following if-statement causes the function to exit with return value of 0 or -1 (because reliable=1 and sr->sr_status=180), and nua_base_server_respond() does not get called. if (reliable && sr->sr_status < 200) { ... if (...) { return -1; } ... return 0; } Any suggestions on how to fix this? Best Regards, Jerry -----Original Message----- From: Pekka Pessi [mailto:ppe...@gmail.com] Sent: Friday, May 15, 2009 9:29 AM To: Jerry Richards Cc: sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] "Require: 100rel" in 180 Ringing Message 2009/5/15 Jerry Richards <jer...@tonecommander.com>: > If I invoke nua_respond(nh, 180, "Ringing", > SIPTAG_REQUIRE_STR("100rel")) alone, then sofia doesn't send out the 180 Ringing message at all. Does your client indicate that it supports 100rel? If not, then Sofia eats your 180. -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel