[Freeswitch-users] On the handling of SIP headers

Kristian Kielhofner kristian.kielhofner at gmail.com
Fri Oct 9 12:10:36 PDT 2009


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




More information about the FreeSWITCH-users mailing list