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:[email protected]]
Sent: Friday, May 15, 2009 1:27 PM
To: 'Pekka Pessi'
Cc: '[email protected]'
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:[email protected]]
Sent: Friday, May 15, 2009 12:36 PM
To: 'Pekka Pessi'
Cc: '[email protected]'
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:[email protected]]
Sent: Friday, May 15, 2009 9:29 AM
To: Jerry Richards
Cc: [email protected]
Subject: Re: [Sofia-sip-devel] "Require: 100rel" in 180 Ringing Message
2009/5/15 Jerry Richards <[email protected]>:
> 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
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel