1) I recommend not use "domain" and dereviated variables. This variables may be used in bridge and other application. 2) try send invite as in example provided early. On Thu, Sep 17, 2015, 23:22 Tanguy <phenix@vfemail.net> wrote:
I am now able to call a extension from a remote server, for those who are interested i used theses options on freeswitch2 public dialplan
<action application="set" data="call_direction=inbound"/> <action application="set" data="domain_name=${sip_to_host}" > <action application="set" data="domain=${sip_to_host}"/> <action application="transfer" data="${sip_to_user} XML ${sip_to_host}" />
On 16/09/2015 19:39, Tanguy wrote:
Hello Sergey
Thanks for your reply but i am not sure to userstand what you mean. What is reg_user@mydomain.org ? I don't want to call a locally registered user.
Alternatively i tried to mix my original idea and yours
<action application="bridge" data="{sip_invite_to_uri=<sip:${destination_number}@somedomain
}sofia/internal/${destination_number}@freeswitch2.company.com" />
I will probably able to parse the To header on freeswitch2 dialplan.
INVITE sip:5003@freeswitch2.company.com SIP/2.0 Via: SIP/2.0/UDP 94.125.x.x;rport;branch=z9hG4bK5F1Z6rc8jK96H Max-Forwards: 69 From: "Tanguy bureau" <sip:5002@94.125.x.x> <sip:5002@94.125.x.x>;tag=D5978NDrZ39ae
To: <sip:5003@somedomain.voip.company.com> <sip:5003@somedomain.voip.company.com>
Regards
On 16/09/2015 04:36, Sergey Safarov wrote:
Try dial as
originate {sip_invite_to_uri=<sip:${destination_number}@mydomain.org
}user/reg_user@mydomain.org & park
or
<action application="bridge" data="{sip_invite_to_uri=<sip:${ destination_number}@mydomain.org>}user/reg_user@mydomain.org"/>
Also check sip_invite_req_uri variable.
On Tue, Sep 15, 2015, 23:50 Tanguy <phenix@vfemail.net> wrote:
Hello
I have two multi-domains freeswitch servers 1 and 2 and i want to interconnect them for internal calls
I read https://wiki.freeswitch.org/wiki/Connect_Two_FreeSWITCH_Boxes but it did not fully fit to my need because I want to call from freeswitch1 a specific extension of freeswitch2 on a specific domain ( and not just default ). In short i want to tell to freeswitch2: Connect me with extension 1000@domain-name and not just connect me with extension 1000
My guess is send custom sip headers from freeswitch1 and parse X-domainname on freeswitch2 dialplan
<action application="set" data="sip_h_X-domainname=somedomain"/> <action application="bridge" data="sofia/internal/${destination_number}@freeswitch2.company.com "/>
This will probably work, but is there a clean way to do it without using non standard headers ?
Best Regards
_________________________________________________________________________ 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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ 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