[Freeswitch-users] Connect two freeswitch boxes with gateway

Luiz Fernando Softov fernando at softov.com.br
Mon May 11 00:26:00 MSD 2015


Thank you,

I found this

https://wiki.freeswitch.org/wiki/Sofia-SIP#Modifying_the_To:_header

* All inbound SIP calls will install any X- headers into local variables.
* This means you can easily bridge any X- header from one FreeSWITCH
instance to another.
* To access the header above on a 2nd box, use the channel variable
${sip_h_X-Answer}
* It is important to note that the syntax ${sip_h_customer-header}
can't be used to retrieve any custom header not starting with X-.
* It is because Sofia only reads and puts into variables custom
headers starting with X-.


But, i will try sip_invite_to_uri, and send reponse here







2015-05-10 11:49 GMT-04:00 Sergey Safarov <s.safarov at gmail.com>:
> Try variable use sip_invite_to_uri
> Example
> <action application="bridge"
> data="{sip_invite_to_uri=<sip:${destination_number}@mydomain.org}user/1000 at mydomain.org"/>
>
> On Sun, May 10, 2015 at 12:28 AM, Luiz Fernando Softov
> <fernando at softov.com.br> wrote:
>>
>> Hi, i'm trying to do this
>>
>> B have a gateway registered with user 1001 in A
>> and of course, A have a user 1001 registered
>>
>> B ----> [gateway] ------> A (1001)
>>
>> So, i'm trying to bridge 1001 when i call (1xxx)
>>
>> A ----> [bridge user/1001] ------> B
>>
>> and have this dial-string for user 1001
>>
>> {presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}
>>
>> In FS B i receive the call, but i want to receive the real destination
>> number, like 1002 or 1004
>>
>> Is there a way to bridge to user, and send the destination number?
>> So, in box B, i can transfer to correct user.
>>
>>
>> --
>> Luiz Fernando Softov
>> http://www.softov.com.br
>> fernando at softov.com.br
>>
>> _________________________________________________________________________
>> 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
>
>
>
> _________________________________________________________________________
> 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



-- 
Luiz Fernando Softov
http://www.softov.com.br
fernando at softov.com.br



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list