[Freeswitch-users] multiple profiles and user not registered

David Villasmil david.villasmil.work at gmail.com
Thu Jan 12 19:46:06 MSK 2017


this does work:

<action application="bridge" data="${sofia_contact(internal-second/1001)}"/>

but i have 2 profiles through which the user can be called, "internal" and
"internal-second", and doing it like this kind of kills the purpose, no?

I can think of maybe doing:

<extension name="call_internal" continue="true">
<condition field="context" expression="public" />
<condition field="destination_number" expression="1001">
<action application="set"
data="sofia_result=${sofia_contact(internal/${destination_number})}"/>
<action application="log" data="INFO sofia contact result:
${sofia_result}"/>
<condition field="${result}" data="sofia.*">

<action application="bridge" data="sofia/internal/${destination_number}"/>
<anti-action application="bridge"
data="sofia/internal-second/${destination_number}"/>

</condition>
</condition>
</extension>

i will try this
ᐧ

Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337

On Thu, Jan 12, 2017 at 11:20 AM, David Villasmil <
david.villasmil.work at gmail.com> wrote:

> In the form of:
>
> <action application="bridge" data="user/${sofia_contact(361110000)}"/>
>
> didn't work... was that the correct way of using it?
>
> thanks again
>>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> phone: +34669448337 <+34%20669%2044%2083%2037>
>
> On Thu, Jan 12, 2017 at 10:45 AM, Yehavi Bourvine <
> yehavi.bourvine at gmail.com> wrote:
>
>> try bridging to sofia_contact(1001) and see whether it works.
>>
>>        __Yehavi:
>>
>> 2017-01-12 16:24 GMT+02:00 David Villasmil <david.villasmil.work at gmail.co
>> m>:
>>
>>> Hello,
>>>
>>> Thanks for replying! I'm simply bridging to the user like
>>>
>>> user/1001
>>>
>>> This fails, of course.
>>>
>>> David
>>>
>>> On Wed, Jan 11, 2017 at 11:45 PM Yehavi Bourvine <
>>> yehavi.bourvine at gmail.com> wrote:
>>>
>>>> Can you post your bridge command call? Do you use sofia_contact() to
>>>> build the dial string?
>>>>
>>>>               Regards, __Yehavi:
>>>>
>>>> 2017-01-11 4:45 GMT+02:00 David Villasmil <
>>>> david.villasmil.work at gmail.com>:
>>>>
>>>> hello guys,
>>>>
>>>> i have 2 profiles for two different ip addresses (IP1 and IP2), both
>>>> profiles have force-register-domain and force-register-db-domain to the
>>>> IP1, i can register on IP2 but when calling this user like user at IP1,
>>>> fs returns USER_NOT_REGISTERED... i thought by forcing the register domain
>>>> i could call the user to any of the 2 ips... any ideas?
>>>>
>>>> Regards,
>>>>
>>>> David Villasmil
>>>> email: david.villasmil.work at gmail.com
>>>> phone: +34669448337 <+34%20669%2044%2083%2037>
>>>>>>>>
>>>> ____________________________________________________________
>>>> _____________
>>>> 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/free
>>>> switch-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/free
>>>> switch-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
>>>
>>
>>
>> _________________________________________________________________________
>> 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/20170112/0b9f388e/attachment-0001.html 


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