mod_dptools/redirect and 300 Multiple Choices
Hello everyone, I'd like to use redirect to send 300 Multiple Choices (with multiple contacts) instead of 302 Moved Temporarily with one contact. I tried using redirect and separating multiple contacts with spaces but FS just sent out a 500 :(. Is this possible? If not, how hard would it be to implement this feature? Thanks! -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
The issue is that redirect uses SIP_302_MOVED_TEMPORARILY instead of SIP_300_MULTIPLE_CHOICES so a new option/api would have to be added to allow us to send a 300. /b On May 19, 2010, at 12:58 PM, Kristian Kielhofner wrote:
Hello everyone,
I'd like to use redirect to send 300 Multiple Choices (with multiple contacts) instead of 302 Moved Temporarily with one contact. I tried using redirect and separating multiple contacts with spaces but FS just sent out a 500 :(. Is this possible? If not, how hard would it be to implement this feature?
Thanks!
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
We could do it maybe with catching the multiple responses in a redirect and automatically doing a 300 instead of 302 or some special handling in respond? Mike On May 19, 2010, at 2:09 PM, Brian West wrote:
The issue is that redirect uses SIP_302_MOVED_TEMPORARILY instead of SIP_300_MULTIPLE_CHOICES so a new option/api would have to be added to allow us to send a 300.
/b
On May 19, 2010, at 12:58 PM, Kristian Kielhofner wrote:
Hello everyone,
I'd like to use redirect to send 300 Multiple Choices (with multiple contacts) instead of 302 Moved Temporarily with one contact. I tried using redirect and separating multiple contacts with spaces but FS just sent out a 500 :(. Is this possible? If not, how hard would it be to implement this feature?
Thanks!
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Wed, May 19, 2010 at 2:31 PM, Michael Jerris <mike@jerris.com> wrote:
We could do it maybe with catching the multiple responses in a redirect and automatically doing a 300 instead of 302 or some special handling in respond?
Mike
300 would probably be better (more similar to other implementations) but 302 will probably work as many stacks treat them interchangeably. As long as they can parse multiple Contacts I suppose it doesn't really matter... -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
On Wed, May 19, 2010 at 2:09 PM, Brian West <brian@freeswitch.org> wrote:
The issue is that redirect uses SIP_302_MOVED_TEMPORARILY instead of SIP_300_MULTIPLE_CHOICES so a new option/api would have to be added to allow us to send a 300.
/b
Hmmm... I might just try to get away with 302 and specifying multiple contacts separated with a comma. Trying this appears to work but the resulting header is not RFC compliant: Contact: "unknown" <sip:1@test.com;q=2;lcr=foo, sip:2@test.com;q=1;lcr=foo> should be: Contact: "unknown" <sip:1@test.com;q=2;lcr=foo>, <sip:2@test.com;q=1;lcr=foo> Each URI should be enclosed in separate <>. How hard would it be to make that change? BTW, if you haven't guessed by now I'm experimenting with making FreeSWITCH a standalone LCR server with mod_lcr. I'm just curious, mostly :). -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Bounty would get it done quickly I suspect. /b On May 19, 2010, at 1:39 PM, Kristian Kielhofner wrote:
Each URI should be enclosed in separate <>. How hard would it be to make that change?
BTW, if you haven't guessed by now I'm experimenting with making FreeSWITCH a standalone LCR server with mod_lcr. I'm just curious, mostly :).
Review and commit DP-16 patch first please :-) On Wednesday 19 May 2010, Brian West wrote:
Bounty would get it done quickly I suspect.
/b
On May 19, 2010, at 1:39 PM, Kristian Kielhofner wrote:
Each URI should be enclosed in separate <>. How hard would it be to make that change?
BTW, if you haven't guessed by now I'm experimenting with making FreeSWITCH a standalone LCR server with mod_lcr. I'm just curious, mostly :).
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
http://jira.freeswitch.org/browse/BOUNTY-18 On Wed, May 19, 2010 at 2:44 PM, Brian West <brian@freeswitch.org> wrote:
Bounty would get it done quickly I suspect.
/b
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Tony got this in, awesome! One question - the RFC says a UA MAY use multiple Contact headers or multiple addresses in a Contact field. As implemented now FreeSWITCH uses multiple Contact headers. While I don't see a problem with this I wonder how difficult it would be to change it to a single Contact header if someone requested. On Wed, May 19, 2010 at 3:53 PM, Kristian Kielhofner <kris@kriskinc.com> wrote:
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
We actually found that if you enable compressed headers it will bunch them into one contact header ;) /b On May 19, 2010, at 5:33 PM, Kristian Kielhofner wrote:
Tony got this in, awesome!
One question - the RFC says a UA MAY use multiple Contact headers or multiple addresses in a Contact field.
As implemented now FreeSWITCH uses multiple Contact headers. While I don't see a problem with this I wonder how difficult it would be to change it to a single Contact header if someone requested.
Is that compressed headers or compact headers (or are they the same thing)? Is this inherent Sofia behavior? If so, I trust them ;). On Wed, May 19, 2010 at 6:38 PM, Brian West <brian@freeswitch.org> wrote:
We actually found that if you enable compressed headers it will bunch them into one contact header ;)
/b
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
Bringing this up again... It appears at least one of my platforms does not like multiple Contact headers or compact headers and I'm not sure how much I can do about it. Would it be possible to get FS to send multiple contacts using one Contact header without using compact headers? SIP! On Wed, May 19, 2010 at 6:53 PM, Brian West <brian@freeswitch.org> wrote:
Its compact.. compressed... oh well long day.
/b
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
not without intervention from the sofia devs, Sofia sip does that deep down and we don't have access to it. even when we supply it as a one big string it renders it out depending on those settings. On Thu, May 20, 2010 at 1:13 PM, Kristian Kielhofner <kris@kriskinc.com>wrote:
Bringing this up again...
It appears at least one of my platforms does not like multiple Contact headers or compact headers and I'm not sure how much I can do about it. Would it be possible to get FS to send multiple contacts using one Contact header without using compact headers?
SIP!
On Wed, May 19, 2010 at 6:53 PM, Brian West <brian@freeswitch.org> wrote:
Its compact.. compressed... oh well long day.
/b
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
Understood. I'll see what I can do. Thanks! On Thu, May 20, 2010 at 3:23 PM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
not without intervention from the sofia devs, Sofia sip does that deep down and we don't have access to it. even when we supply it as a one big string it renders it out depending on those settings.
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
participants (5)
-
Anthony Minessale
-
Brian West
-
Kristian Kielhofner
-
Michael Jerris
-
Sergey Okhapkin