[Freeswitch-users] multiple profiles and user not registered (SOLVED)

David Villasmil david.villasmil.work at gmail.com
Fri Jan 13 04:42:52 MSK 2017


John,

<action application="bridge" data="${sofia_contact(*/1001 at 1.2.3.4)}"/>

note: 1.2.3.4 being my domain (or IP1)

worked perfectly!

Thanks!

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

On Thu, Jan 12, 2017 at 6:52 PM, David Villasmil <
david.villasmil.work at gmail.com> wrote:

> I will try this as soon as i can
>
> Thanks!
>
> On Thu, Jan 12, 2017 at 2:59 PM John Covici <covici at ccs.covici.com> wrote:
>
>> OK, the form of this is on the bridge itself use <action
>> application="bridge"
>> data="${sofia_contact(*/${dialed_extension}@${domain})}   and what
>> ever else.
>>
>> Hope this helps.
>>
>> On Thu, 12 Jan 2017 14:29:24 -0500,
>> David Villasmil wrote:
>> >
>> > [1  <multipart/alternative (7bit)>]
>> > [1.1  <text/plain; UTF-8 (quoted-printable)>]
>> > [1.2  <text/html; UTF-8 (quoted-printable)>]
>> > Hello
>> >
>> > That didn't worked for me, and i can't find anything similar to that
>> >
>> > David
>> >
>> > On Thu, Jan 12, 2017 at 12:12 PM John Covici <covici at ccs.covici.com>
>> wrote:
>> >
>> >  There is a form of sofia-contact which will search all profiles, if I
>> >  remember its */ followed by user name.
>> >
>> >  On Thu, 12 Jan 2017 11:46:06 -0500,
>> >  David Villasmil wrote:
>> >  >
>> >  > [1 <multipart/alternative (7bit)>]
>> >  > [1.1 <text/plain; UTF-8 (quoted-printable)>]
>> >  > [1.2 <text/html; UTF-8 (quoted-printable)>]
>> >  > 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 <+34%20669%2044%2083%2037>
>> >  >
>> >  > 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.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 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/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
>> >  >
>> >  > ____________________________________________________________
>> _____________
>> >  > 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
>> >  >
>> >  > [2 <text/plain; us-ascii (7bit)>]
>> >  > ____________________________________________________________
>> _____________
>> >  > 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
>> >
>> >  --
>> >  Your life is like a penny. You're going to lose it. The question is:
>> >  How do
>> >  you spend it?
>> >
>> >  John Covici
>> >  covici at ccs.covici.com
>> >
>> >  ____________________________________________________________
>> _____________
>> >  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
>> >
>> > [2  <text/plain; us-ascii (7bit)>]
>> > ____________________________________________________________
>> _____________
>> > 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
>>
>> --
>> Your life is like a penny.  You're going to lose it.  The question is:
>> How do
>> you spend it?
>>
>>          John Covici
>>          covici at ccs.covici.com
>>
>> _________________________________________________________________________
>> 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/f23c8c14/attachment-0001.html 


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