Enterprise originate not honouring fs_path in 302 redirect
Hi All, First of all, I'm a relatively new user of FreeSWITCH so, please bear with me if I'm asking a silly question. I have users registering through multiple kamailio loadbalancer/registrars, so when we build a bridge command to multiple local users we send the initial invite(s) to the kamailio lookup server which then responds with a 302 redirect message specifying the contact details of the user. What I am trying to do is get FreeSWITCH to call a particular user via a particular loadbalancer based on information recieved in the 302 redirect. From what I have read in the archives, we can achieve this with the fs_path directive on the bridge command. However, how/where do I specify the fs_path in the contact header in the 302 redirect in such a manner that FreeSWITCH will honour the fs_path directive. I originally tried setting a fs_path parameter in the contact of the 302 redirect message, something like the following: Contact: <sip:subscriber@1.2.3.4:5678;rinstance=9af71926212a25cf;transport=UDP;received=sip:5.6.7.8:9012;fs_path=sip:1.2.3.5> However, FreeSWITCH ignores the fs_path directive here and attempts to send this call directly to 1.2.3.4, instead of sending it via 1.2.3.5. Is this at all possible using the enterprise originate (:_: seperator) feature of the bridge command? We're attempting this with FreeSWITCH v 1.4.20 ("official" rpm packages from the repo) Any info/tips/suggestions/beatings much appreciate :) Thanks
Its not designed to do that, and we never will. Its an exploitable attack vector if we did. On Tue, Jul 21, 2015 at 8:55 AM, Asgaroth <00asgaroth00@gmail.com> wrote:
Hi All,
First of all, I'm a relatively new user of FreeSWITCH so, please bear with me if I'm asking a silly question.
I have users registering through multiple kamailio loadbalancer/registrars, so when we build a bridge command to multiple local users we send the initial invite(s) to the kamailio lookup server which then responds with a 302 redirect message specifying the contact details of the user.
What I am trying to do is get FreeSWITCH to call a particular user via a particular loadbalancer based on information recieved in the 302 redirect. From what I have read in the archives, we can achieve this with the fs_path directive on the bridge command. However, how/where do I specify the fs_path in the contact header in the 302 redirect in such a manner that FreeSWITCH will honour the fs_path directive.
I originally tried setting a fs_path parameter in the contact of the 302 redirect message, something like the following:
Contact: <sip:subscriber@1.2.3.4:5678 ;rinstance=9af71926212a25cf;transport=UDP;received=sip:5.6.7.8:9012 ;fs_path=sip:1.2.3.5>
However, FreeSWITCH ignores the fs_path directive here and attempts to send this call directly to 1.2.3.4, instead of sending it via 1.2.3.5.
Is this at all possible using the enterprise originate (:_: seperator) feature of the bridge command?
We're attempting this with FreeSWITCH v 1.4.20 ("official" rpm packages from the repo)
Any info/tips/suggestions/beatings much appreciate :)
Thanks
_________________________________________________________________________ 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
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Thanks for the info Brian, we'll need to find an alternative way to get this going then :-) On 21/07/2015 21:34, Brian West wrote:
Its not designed to do that, and we never will. Its an exploitable attack vector if we did.
On Tue, Jul 21, 2015 at 8:55 AM, Asgaroth <00asgaroth00@gmail.com <mailto:00asgaroth00@gmail.com>> wrote:
Hi All,
First of all, I'm a relatively new user of FreeSWITCH so, please bear with me if I'm asking a silly question.
I have users registering through multiple kamailio loadbalancer/registrars, so when we build a bridge command to multiple local users we send the initial invite(s) to the kamailio lookup server which then responds with a 302 redirect message specifying the contact details of the user.
What I am trying to do is get FreeSWITCH to call a particular user via a particular loadbalancer based on information recieved in the 302 redirect. From what I have read in the archives, we can achieve this with the fs_path directive on the bridge command. However, how/where do I specify the fs_path in the contact header in the 302 redirect in such a manner that FreeSWITCH will honour the fs_path directive.
I originally tried setting a fs_path parameter in the contact of the 302 redirect message, something like the following:
Contact: <sip:subscriber@1.2.3.4:5678;rinstance=9af71926212a25cf;transport=UDP;received=sip:5.6.7.8:9012;fs_path=sip:1.2.3.5>
However, FreeSWITCH ignores the fs_path directive here and attempts to send this call directly to 1.2.3.4, instead of sending it via 1.2.3.5.
Is this at all possible using the enterprise originate (:_: seperator) feature of the bridge command?
We're attempting this with FreeSWITCH v 1.4.20 ("official" rpm packages from the repo)
Any info/tips/suggestions/beatings much appreciate :)
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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 <mailto: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
--
*/Brian West/* brian@freeswitch.org <mailto:brian@freeswitch.org>
*/Twitter: @FreeSWITCH , @briankwest/* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ 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
Hi all, I have a simple dialplan with IVR. If the client will set the correct PIN, it will be forwarded to the right person. The question in the following. Can I instead of the caller ID display for a selected name me? Caller's phone number can be different. It is even possible? Bridge do like this. <!-- Pripojeni na operatora VIP--> <extension name="from-pe3ny-connect"> <condition field="destination_number" expression="^CONNECTVIP$" break="on-true""> <action application="export" data="nolocal:absolute_codec_string=PCMA@20i,PCMU@20i"/> <action application="set" data="zrtp_secure_media=true"/> <!--<action application="set" data="inherit_codec=true""/>--> <action application="set" data="bypass_media=true"/> <action application="set" data="ringback=${us-ring}"/> <!--<action application="set" data="transfer_ringback=$${hold_music}"/>--> <action application="set" data="call_timeout=15"/> <!-- na recepci --> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=true"/> <action application="bridge" data="user/1008@sip1.applicloud.com,user/1007@sip1.applicloud.com"/> <!-- Na gsm --> <action application="answer"/> <action application="sleep" data="1000"/> <action application="bridge" data="sofia/gateway/pe3ny/732557771"/>--> <action application="hangup"/> </condition> </extension> -- S pozdravem, Ing.Denis Jakovlev mob.tel. 775-415-382
Dobrý den, <action application="set" data="effective_caller_id_name=Bob Smith"/> -- S pozdravem, Ing.Denis Jakovlev mob.tel. 775-415-382 středa 22. července 2015, 17:03:44, napsal jste: Hi all, I have a simple dialplan with IVR. If the client will set the correct PIN, it will be forwarded to the right person. The question in the following. Can I instead of the caller ID display for a selected name me? Caller's phone number can be different. It is even possible? Bridge do like this. <!-- Pripojeni na operatora VIP--> <extension name="from-pe3ny-connect"> <condition field="destination_number" expression="^CONNECTVIP$" break="on-true""> <action application="export" data="nolocal:absolute_codec_string=PCMA@20i,PCMU@20i"/> <action application="set" data="zrtp_secure_media=true"/> <!--<action application="set" data="inherit_codec=true""/>--> <action application="set" data="bypass_media=true"/> <action application="set" data="ringback=${us-ring}"/> <!--<action application="set" data="transfer_ringback=$${hold_music}"/>--> <action application="set" data="call_timeout=15"/> <!-- na recepci --> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=true"/> <action application="bridge" data="user/1008@sip1.applicloud.com,user/1007@sip1.applicloud.com"/> <!-- Na gsm --> <action application="answer"/> <action application="sleep" data="1000"/> <action application="bridge" data="sofia/gateway/pe3ny/732557771"/>--> <action application="hangup"/> </condition> </extension> -- S pozdravem, Ing.Denis Jakovlev mob.tel. 775-415-382
it's probably way better to use origination_caller_id_name in the bridge line On Wednesday, July 22, 2015, Denis Jakovlev <yadenis@seznam.cz> wrote:
Dobrý den,
<action application="set" data="effective_caller_id_name=Bob Smith"/>
*-- S pozdravem, Ing.Denis Jakovlev mob.tel <http://mob.tel>. 775-415-382 středa 22. července 2015, 17:03:44, napsal jste: * Hi all,
I have a simple dialplan with IVR. If the client will set the correct PIN, it will be forwarded to the right person.
The question in the following. Can I instead of the caller ID display for a selected name me? Caller's phone number can be different. It is even possible?
Bridge do like this.
<!-- Pripojeni na operatora VIP--> <extension name="from-pe3ny-connect"> <condition field="destination_number" expression="^CONNECTVIP$" break= "on-true""> <action application="export" data= "nolocal:absolute_codec_string=PCMA@20i,PCMU@20i"/> <action application="set" data="zrtp_secure_media=true"/> <!--<action application="set" data="inherit_codec=true""/>--> <action application="set" data="bypass_media=true"/> <action application="set" data="ringback=${us-ring}"/> <!--<action application="set" data="transfer_ringback=$${hold_music}"/>--> <action application="set" data="call_timeout=15"/> <!-- na recepci --> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=true"/> <action application="bridge" data="user/1008@sip1.applicloud.com <javascript:_e(%7B%7D,'cvml','1008@sip1.applicloud.com');>,user/ 1007@sip1.applicloud.com <javascript:_e(%7B%7D,'cvml','1007@sip1.applicloud.com');>"/> <!-- Na gsm --> <action application="answer"/> <action application="sleep" data="1000"/> <action application="bridge" data="sofia/gateway/pe3ny/732557771"/>--> <action application="hangup"/> </condition> </extension>
*-- S pozdravem, Ing.Denis Jakovlev mob.tel <http://mob.tel>. 775-415-382*
Dobrý den, Like this? <action application="bridge" data="{origination_caller_id_name=Bob Smith}user/1008@sip1.applicloud.com"/> -- S pozdravem, Ing.Denis Jakovlev mob.tel. 775-415-382 středa 22. července 2015, 17:25:05, napsal jste: it's probably way better to use origination_caller_id_name in the bridge line On Wednesday, July 22, 2015, Denis Jakovlev <yadenis@seznam.cz> wrote: Dobrý den, <action application="set" data="effective_caller_id_name=Bob Smith"/> -- S pozdravem, Ing.Denis Jakovlev mob.tel. 775-415-382 středa 22. července 2015, 17:03:44, napsal jste: Hi all, I have a simple dialplan with IVR. If the client will set the correct PIN, it will be forwarded to the right person. The question in the following. Can I instead of the caller ID display for a selected name me? Caller's phone number can be different. It is even possible? Bridge do like this. <!-- Pripojeni na operatora VIP--> <extension name="from-pe3ny-connect"> <condition field="destination_number" expression="^CONNECTVIP$" break="on-true""> <action application="export" data="nolocal:absolute_codec_string=PCMA@20i,PCMU@20i"/> <action application="set" data="zrtp_secure_media=true"/> <!--<action application="set" data="inherit_codec=true""/>--> <action application="set" data="bypass_media=true"/> <action application="set" data="ringback=${us-ring}"/> <!--<action application="set" data="transfer_ringback=$${hold_music}"/>--> <action application="set" data="call_timeout=15"/> <!-- na recepci --> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=true"/> <action application="bridge" data="user/1008@sip1.applicloud.com,user/1007@sip1.applicloud.com"/> <!-- Na gsm --> <action application="answer"/> <action application="sleep" data="1000"/> <action application="bridge" data="sofia/gateway/pe3ny/732557771"/>--> <action application="hangup"/> </condition> </extension> -- S pozdravem, Ing.Denis Jakovlev mob.tel. 775-415-382
participants (4)
-
Asgaroth
-
Brian West
-
Denis Jakovlev
-
Michael Jerris