How to distinguish between normal originated and redirected by SIP 302 channels?
Hi all, We build FS-based PBX and faced issue with identifying outbound channels created by FS in case of receiving 302. We don't use internal redirect as it leads to redirecting source channel. Instead, we use enterprise originate and make FS send all channels to SBC which sends them back to FS in case of redirect. Problem is that after FS sends call redirected by 302 to SBC, we can't distinguish between usual originated calls from FS and redirect attempts as there is no significant difference in SIP fields. It would be great if we can for example set some header to identify redirected call from FS on SBC. Maybe you guys have some thoughts about how this can be done? -- Best regards, Dmitry Sytchev, IT Engineer
Hi Dmitry, check: https://freeswitch.org/confluence/display/FREESWITCH/Sofia+SIP+Stack#SofiaSI... On Mon, Jul 25, 2016 at 11:27 AM, Dmitry Sytchev <kbdfck@gmail.com> wrote:
Hi all,
We build FS-based PBX and faced issue with identifying outbound channels created by FS in case of receiving 302. We don't use internal redirect as it leads to redirecting source channel. Instead, we use enterprise originate and make FS send all channels to SBC which sends them back to FS in case of redirect.
Problem is that after FS sends call redirected by 302 to SBC, we can't distinguish between usual originated calls from FS and redirect attempts as there is no significant difference in SIP fields. It would be great if we can for example set some header to identify redirected call from FS on SBC.
Maybe you guys have some thoughts about how this can be done?
-- Best regards,
Dmitry Sytchev, IT Engineer
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.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
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Giovanni, thanks for your response! Yes we use that in different places. But we need to add some header only in case of FS sending redirected call back to SBC when FS reacts on 302 when set manual-redirect=false. If we use manual redirect, we could set it by hand. But we cant, since we use enterprise originate or originating to multiple destinations. And with manual-redirect=true we loose all active outbound legs because FS runs manual redirect on originating leg and not originated one. 2016-07-25 12:33 GMT+03:00 Giovanni Maruzzelli <gmaruzz@gmail.com>:
Hi Dmitry,
check: https://freeswitch.org/confluence/display/FREESWITCH/Sofia+SIP+Stack#SofiaSI...
On Mon, Jul 25, 2016 at 11:27 AM, Dmitry Sytchev <kbdfck@gmail.com> wrote:
Hi all,
We build FS-based PBX and faced issue with identifying outbound channels created by FS in case of receiving 302. We don't use internal redirect as it leads to redirecting source channel. Instead, we use enterprise originate and make FS send all channels to SBC which sends them back to FS in case of redirect.
Problem is that after FS sends call redirected by 302 to SBC, we can't distinguish between usual originated calls from FS and redirect attempts as there is no significant difference in SIP fields. It would be great if we can for example set some header to identify redirected call from FS on SBC.
Maybe you guys have some thoughts about how this can be done?
-- Best regards,
Dmitry Sytchev, IT Engineer
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.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
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.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
-- Best regards, Dmitry Sytchev, IT Engineer
participants (2)
-
Dmitry Sytchev
-
Giovanni Maruzzelli