<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hey there,<br>
    The issue was in the profile itself, I downloaded a fresh copy from
    the vanilla config and edited it to suit my needs. Now everything is
    working just fine.<br>
    Thanks for the help.<br>
    <br>
    <div class="moz-cite-prefix">On 19.3.2014 г. 5:00, Nandy Dagondon
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHKqMb7pYyq9EgpPPO8kKcdf-aGybV4JXRwfE6aS5S271XzSBg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Check conf/dialplan directory. There might be
        duplicate *xml files involved. 
        <div><br>
        </div>
        <div>In my case, api group_call returns nothing.  I had problems
          with ${toll_allow}, too.  There were 2 directory files loaded
          default.xml and 192.168.1.100.xml. Under
          conf/directory/default, the extension phone data are in order.
           default.xml points to the same domain, too,  192.168.1.100.
           I changed 192.168.1.100.xml to 192.168.1.100.xml.noload and
          reloadxml (or F6).  Solved. <br>
          <div class="gmail_extra"><br>
            <br>
            <br>
            <div class="gmail_quote">On Tue, Mar 18, 2014 at 8:41 PM,
              mbo <span dir="ltr">&lt;<a moz-do-not-send="true"
                  href="mailto:mbodbg@gmx.net" target="_blank">mbodbg@gmx.net</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                OK, I see. So you’re registered with user 611, if you
                make a call it hit’s the expected context, but all
                variables set in the user configuration are not set.
                That should work also with your version you are using,
                I’m doing the same. Can you provide more logs?<br>
                <br>
                Thanks<br>
                <br>
                Markus<br>
                <br>
                <br>
                Am 17.03.2014 um 19:37 schrieb Iskren Hadzhinedev &lt;<a
                  moz-do-not-send="true"
                  href="mailto:iskren.hadzhinedev@ikiji.com">iskren.hadzhinedev@ikiji.com</a>&gt;:<br>
                <div class="HOEnZb">
                  <div class="h5"><br>
                    &gt; "local" is a valid regex for
                    "local,international" and it matches<br>
                    &gt; correctly if I use user_data(${sip_from_uri}
                    var toll_allow) instead of<br>
                    &gt; ${toll_allow}. The problem is that
                    ${toll_allow} evaluates to an empty<br>
                    &gt; string in the dialplan as opposed to
                    ${user_data(${sip_from_uri} var<br>
                    &gt; toll_allow)} which returns the correct result.
                    I already have a<br>
                    &gt; debugging extension that uses application
                    "info" and there are no<br>
                    &gt; variables from the directory at all.<br>
                    &gt;<br>
                    &gt; Kind regards,<br>
                    &gt; Iskren<br>
                    &gt;<br>
                    &gt; On 17.3.2014 г. 20:16, mbo wrote:<br>
                    &gt;&gt; You set variable toll_allow to the string
                    „local,international“ but you’re matching the
                    condition only to the string „local“.<br>
                    &gt;&gt;<br>
                    &gt;&gt; you can put something like:<br>
                    &gt;&gt;<br>
                    &gt;&gt;  &lt;extension name="Debug"&gt;<br>
                    &gt;&gt;     &lt;condition&gt;<br>
                    &gt;&gt;         &lt;action application="log"
                    data="INFO toll_allow: ${toll_allow}" /&gt;<br>
                    &gt;&gt;     &lt;/condition&gt;<br>
                    &gt;&gt;  &lt;/extension“&gt;<br>
                    &gt;&gt;<br>
                    &gt;&gt; in your dial plan to see if the variable is
                    set.<br>
                    &gt;&gt;<br>
                    &gt;&gt; Thanks<br>
                    &gt;&gt;<br>
                    &gt;&gt; Markus<br>
                    &gt;&gt;<br>
                    &gt;&gt;<br>
                    &gt;&gt;<br>
                    &gt;&gt;<br>
                    &gt;&gt;<br>
                    &gt;&gt; Am 17.03.2014 um 16:02 schrieb Iskren
                    Hadzhinedev &lt;<a moz-do-not-send="true"
                      href="mailto:iskren.hadzhinedev@ikiji.com">iskren.hadzhinedev@ikiji.com</a>&gt;:<br>
                    &gt;&gt;<br>
                    &gt;&gt;&gt; Greetings!<br>
                    &gt;&gt;&gt; I'm unable to access user variables
                    that are set in the directory from<br>
                    &gt;&gt;&gt; the dialplan.<br>
                    &gt;&gt;&gt; The setup is quite simple, the user is:<br>
                    &gt;&gt;&gt; --<br>
                    &gt;&gt;&gt;                     &lt;user
                    id="611"&gt;<br>
                    &gt;&gt;&gt;                         &lt;params&gt;<br>
                    &gt;&gt;&gt;                             &lt;param
                    name="a1-hash"<br>
                    &gt;&gt;&gt;
                    value="693c2978ddbe62f7129b7e551bcf7d49"/&gt;<br>
                    &gt;&gt;&gt;                             &lt;param
                    name="vm-enabled" value="true"/&gt;<br>
                    &gt;&gt;&gt;                             &lt;param
                    name="vm-a1-hash"<br>
                    &gt;&gt;&gt;
                    value="126003cf36e8e6a69ecdbfd1bba121c8"/&gt;<br>
                    &gt;&gt;&gt;                         &lt;/params&gt;<br>
                    &gt;&gt;&gt;                        
                    &lt;variables&gt;<br>
                    &gt;&gt;&gt;                            
                    &lt;variable name="toll_allow"<br>
                    &gt;&gt;&gt; value="local,international"/&gt;<br>
                    &gt;&gt;&gt;                            
                    &lt;variable name="user_context"<br>
                    &gt;&gt;&gt; value="<a moz-do-not-send="true"
                      href="http://sip.test.com" target="_blank">sip.test.com</a>"/&gt;<br>
                    &gt;&gt;&gt;                            
                    &lt;variable name="effective_caller_id_name"<br>
                    &gt;&gt;&gt; value="Tester"/&gt;<br>
                    &gt;&gt;&gt;                            
                    &lt;variable name="effective_caller_id_number"<br>
                    &gt;&gt;&gt; value="611"/&gt;<br>
                    &gt;&gt;&gt;                        
                    &lt;/variables&gt;<br>
                    &gt;&gt;&gt;                     &lt;/user&gt;<br>
                    &gt;&gt;&gt; --<br>
                    &gt;&gt;&gt; And the extension in the dialplan is:<br>
                    &gt;&gt;&gt; --<br>
                    &gt;&gt;&gt;   &lt;extension name="Outgoing
                    Test"&gt;<br>
                    &gt;&gt;&gt;     &lt;condition field="${toll_allow}"
                    expression="local"/&gt;<br>
                    &gt;&gt;&gt;     &lt;condition
                    field="destination_number"
                    expression="^([0-9]{6})$"&gt;<br>
                    &gt;&gt;&gt;       &lt;action application="bridge"
                    data="sofia/gateway/testgw/$1"/&gt;<br>
                    &gt;&gt;&gt;     &lt;/condition&gt;<br>
                    &gt;&gt;&gt;   &lt;/extension&gt;<br>
                    &gt;&gt;&gt; --<br>
                    &gt;&gt;&gt;<br>
                    &gt;&gt;&gt; The toll_allow always gets evaluated to
                    an empty string, and when I<br>
                    &gt;&gt;&gt; actually run the info application I
                    don't see any of the variables that<br>
                    &gt;&gt;&gt; are set. If I replace the ${toll_allow}
                    with ${user_data(${sip_from_uri}<br>
                    &gt;&gt;&gt; var toll_allow}, everything is working,
                    although the examples in the<br>
                    &gt;&gt;&gt; wiki are showing that you can use those
                    variables just fine without<br>
                    &gt;&gt;&gt; invoking user_data.<br>
                    &gt;&gt;&gt; What am I doing wrong?<br>
                    &gt;&gt;&gt; Thanks!<br>
                    &gt;&gt;&gt; ----<br>
                    &gt;&gt;&gt; Kind regards,<br>
                    &gt;&gt;&gt; Iskren<br>
                    &gt;&gt;&gt;<br>
                    &gt;&gt;&gt;
_________________________________________________________________________<br>
                    &gt;&gt;&gt; Professional FreeSWITCH Consulting
                    Services:<br>
                    &gt;&gt;&gt; <a moz-do-not-send="true"
                      href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                    &gt;&gt;&gt; <a moz-do-not-send="true"
                      href="http://www.freeswitchsolutions.com"
                      target="_blank">http://www.freeswitchsolutions.com</a><br>
                    &gt;&gt;&gt;<br>
                    &gt;&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel
                    Communication Server<br>
                    &gt;&gt;&gt; <a moz-do-not-send="true"
                      href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                    &gt;&gt;&gt;<br>
                    &gt;&gt;&gt; Official FreeSWITCH Sites<br>
                    &gt;&gt;&gt; <a moz-do-not-send="true"
                      href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                    &gt;&gt;&gt; <a moz-do-not-send="true"
                      href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                    &gt;&gt;&gt; <a moz-do-not-send="true"
                      href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                    &gt;&gt;&gt;<br>
                    &gt;&gt;&gt; FreeSWITCH-users mailing list<br>
                    &gt;&gt;&gt; <a moz-do-not-send="true"
                      href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                    &gt;&gt;&gt; <a moz-do-not-send="true"
                      href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                      target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                    &gt;&gt;&gt; UNSUBSCRIBE:<a moz-do-not-send="true"
                      href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                      target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                    &gt;&gt;&gt; <a moz-do-not-send="true"
                      href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                    &gt;&gt;<br>
                    &gt;&gt;
_________________________________________________________________________<br>
                    &gt;&gt; Professional FreeSWITCH Consulting
                    Services:<br>
                    &gt;&gt; <a moz-do-not-send="true"
                      href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                    &gt;&gt; <a moz-do-not-send="true"
                      href="http://www.freeswitchsolutions.com"
                      target="_blank">http://www.freeswitchsolutions.com</a><br>
                    &gt;&gt;<br>
                    &gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel
                    Communication Server<br>
                    &gt;&gt; <a moz-do-not-send="true"
                      href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                    &gt;&gt;<br>
                    &gt;&gt; Official FreeSWITCH Sites<br>
                    &gt;&gt; <a moz-do-not-send="true"
                      href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                    &gt;&gt; <a moz-do-not-send="true"
                      href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                    &gt;&gt; <a moz-do-not-send="true"
                      href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                    &gt;&gt;<br>
                    &gt;&gt; FreeSWITCH-users mailing list<br>
                    &gt;&gt; <a moz-do-not-send="true"
                      href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                    &gt;&gt; <a moz-do-not-send="true"
                      href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                      target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                    &gt;&gt; UNSUBSCRIBE:<a moz-do-not-send="true"
                      href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                      target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                    &gt;&gt; <a moz-do-not-send="true"
                      href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                    &gt;<br>
                    &gt;<br>
                    &gt;
_________________________________________________________________________<br>
                    &gt; Professional FreeSWITCH Consulting Services:<br>
                    &gt; <a moz-do-not-send="true"
                      href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                    &gt; <a moz-do-not-send="true"
                      href="http://www.freeswitchsolutions.com"
                      target="_blank">http://www.freeswitchsolutions.com</a><br>
                    &gt;<br>
                    &gt; FreeSWITCH-powered IP PBX: The CudaTel
                    Communication Server<br>
                    &gt; <a moz-do-not-send="true"
                      href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                    &gt;<br>
                    &gt; Official FreeSWITCH Sites<br>
                    &gt; <a moz-do-not-send="true"
                      href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                    &gt; <a moz-do-not-send="true"
                      href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                    &gt; <a moz-do-not-send="true"
                      href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                    &gt;<br>
                    &gt; FreeSWITCH-users mailing list<br>
                    &gt; <a moz-do-not-send="true"
                      href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                    &gt; <a moz-do-not-send="true"
                      href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                      target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                    &gt; UNSUBSCRIBE:<a moz-do-not-send="true"
                      href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                      target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                    &gt; <a moz-do-not-send="true"
                      href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                    <br>
                    <br>
_________________________________________________________________________<br>
                    Professional FreeSWITCH Consulting Services:<br>
                    <a moz-do-not-send="true"
                      href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://www.freeswitchsolutions.com"
                      target="_blank">http://www.freeswitchsolutions.com</a><br>
                    <br>
                    FreeSWITCH-powered IP PBX: The CudaTel Communication
                    Server<br>
                    <a moz-do-not-send="true"
                      href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                    <br>
                    Official FreeSWITCH Sites<br>
                    <a moz-do-not-send="true"
                      href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                    <br>
                    FreeSWITCH-users mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                      target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                    UNSUBSCRIBE:<a moz-do-not-send="true"
                      href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                      target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                    <a moz-do-not-send="true"
                      href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                  </div>
                </div>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>