[Freeswitch-users] Call a remote extension on specific domain
Tanguy
phenix at vfemail.net
Fri Sep 18 00:21:22 MSD 2015
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 at mydomain.org <mailto:reg_user at 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 at 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 at 94.125.x.x>;tag=D5978NDrZ39ae
> To: <sip:5003 at 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
>> <mailto:destination_number%7D at mydomain.org>>}user/reg_user at mydomain.org
>> <mailto:reg_user at mydomain.org> & park
>>
>> or
>>
>> <action application="bridge"
>> data="{sip_invite_to_uri=<sip:${destination_number}@mydomain.org
>> <mailto:destination_number%7D at mydomain.org>>}user/reg_user at mydomain.org
>> <mailto:reg_user at mydomain.org>"/>
>>
>> Also check sip_invite_req_uri variable.
>>
>>
>> On Tue, Sep 15, 2015, 23:50 Tanguy <phenix at vfemail.net
>> <mailto:phenix at 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 at 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 <mailto:destination_number%7D at 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 at freeswitch.org <mailto:consulting at 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 at lists.freeswitch.org
>> <mailto:FreeSWITCH-users at 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 at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150917/299d11fe/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list