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@gmail.com
phone: +34669448337

On Thu, Jan 12, 2017 at 11:20 AM, David Villasmil <david.villasmil.work@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

On Thu, Jan 12, 2017 at 10:45 AM, Yehavi Bourvine <yehavi.bourvine@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@gmail.com>:
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@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@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@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
ᐧ

_________________________________________________________________________
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.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.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