Hello everyone, In using FS for various scenarios I've noticed some behavior that I'm not sure is completely "proper". Given that this probably lives in mod_sofia who knows what's really "proper". It is SIP after all... So the issue comes up when using FreeSWITCH as a B2BUA and bridging between endpoints (very common). Should FreeSWITCH copy the X- headers (possibly others) as it does now? I'd like to think it shouldn't by default and the behavior should be one of: 1) Don't pass X-* (or anything else, really) from one leg to another. If you want to pass specific X- headers (or anything else), set them explicitly on the outbound leg. 2) Make the behavior configurable with a channel variable and/or sofia config option: {sip_pass_headers=all|none|X-MyCustomHeaderByName} Thoughts? -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
There is this endless push and pull on this topic, those who want them assume it should be default, those who don't assume that should be default. This probably needs a configuration option defaulting to pass them (those who don't want to pass them are usually a bit more educated and would find the option better than the other way around). Mike On Oct 9, 2009, at 3:10 PM, Kristian Kielhofner wrote:
Hello everyone,
In using FS for various scenarios I've noticed some behavior that I'm not sure is completely "proper". Given that this probably lives in mod_sofia who knows what's really "proper". It is SIP after all...
So the issue comes up when using FreeSWITCH as a B2BUA and bridging between endpoints (very common). Should FreeSWITCH copy the X- headers (possibly others) as it does now? I'd like to think it shouldn't by default and the behavior should be one of:
1) Don't pass X-* (or anything else, really) from one leg to another. If you want to pass specific X- headers (or anything else), set them explicitly on the outbound leg. 2) Make the behavior configurable with a channel variable and/or sofia config option:
{sip_pass_headers=all|none|X-MyCustomHeaderByName}
Thoughts?
Mike, Thanks for getting back to me. I agree. I'm willing to throw down on a bounty for this. Any idea how much work we're talking about here? On Sun, Oct 11, 2009 at 5:59 PM, Michael Jerris <mike@jerris.com> wrote:
There is this endless push and pull on this topic, those who want them assume it should be default, those who don't assume that should be default. This probably needs a configuration option defaulting to pass them (those who don't want to pass them are usually a bit more educated and would find the option better than the other way around).
Mike
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Brian, You are correct, they *probably* shouldn't be passed by default. On Sun, Oct 11, 2009 at 7:44 PM, Brian West <brian@freeswitch.org> wrote:
Well since we aren't a proxy you shouldn't default to passing them right?
/b
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
participants (3)
-
Brian West
-
Kristian Kielhofner
-
Michael Jerris