[Freeswitch-users] bridge problem

Sergey Safarov s.safarov at gmail.com
Tue Dec 1 13:07:46 MSK 2015


You can use lua script for generate dialstring
example

<?xml version="1.0" encoding="UTF-8"?>
<include>
   <user id="2494">
      <params>
         <param name="dial-string" value="${lua(dialstring.lua
${dialed_user}@${dialed_domain})}"/>
         <param name="password" value="password"/>
         <param name="vm-enabled" value="false"/>
      </params>
      <variables>
         <variable name="effective_caller_id_name" value="Extension 2494"/>
         <variable name="outbound_caller_id_name" value="Extension 2494"/>
      </variables>
   </user>
</include>

To execute transfer from directory please use my PR

https://freeswitch.org/jira/browse/FS-8209

On Tue, Dec 1, 2015 at 10:55 AM, huseyin kalyoncu <hkalyoncu at gmail.com>
wrote:

> Hello Tristan
>
> i checked them. but loopback is the better choice for us.
> thanks for your reply
>
> huseyin
>
> On Tue, Dec 1, 2015 at 1:24 AM, Tristan Mahé <t.mahe at b-and-c.net> wrote:
>
>> Maybe a per leg execute_on_ring or api_on_* ?
>>
>> ie data=[api_on_...=bla]firsturi,[api_on_...=blb]seconduri...
>>
>>
>> On 11/28/2015 09:19 AM, huseyin kalyoncu wrote:
>>
>> i think *loopback* will do the job
>>
>> <action application="bridge" data="loopback/number"/>
>> instead of
>> <action application="bridge" data="sofia/profile/number"/>
>>
>> sorry for the noise
>>
>> huseyin
>>
>>
>> On Sat, Nov 28, 2015 at 6:08 PM, huseyin kalyoncu < <hkalyoncu at gmail.com>
>> hkalyoncu at gmail.com> wrote:
>>
>>> Hello
>>>
>>> Lets say i have a multiple bridge line like this:
>>>
>>> <action application="bridge"
>>> data="sofia/some_interface/some_uri1,sofia/some_interface/some_uri2,sofia/some_interface/some_uri3"/>
>>>
>>> or a single bridge:
>>>
>>> <action application="bridge" data="sofia/some_interface/some_uri1"/>
>>>
>>> Is there any way to execute different dialplan code for each bridge
>>> string
>>> before directing call to endpoint?
>>>
>>> i tried to set  force_transfer_context for even single bridge string
>>> like in given example on this page:
>>>
>>> https://wiki.freeswitch.org/wiki/Force_transfer_context_example
>>>
>>> But it did not worked. It did not transfer call to given context as
>>> expected.
>>> Instead, it executed bridge line directly.
>>>
>>> I can use transfer instead of bridge but it only works for single
>>> extension not for multiple extensions.
>>>
>>> Is there any way to achieve this?
>>>
>>> Thanks,
>>>
>>> Huseyin
>>>
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services: consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>>
>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://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
>>
>
>
> _________________________________________________________________________
> 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/20151201/9720f006/attachment-0001.html 


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