<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"><<a moz-do-not-send="true"
href="mailto:mbodbg@gmx.net" target="_blank">mbodbg@gmx.net</a>></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 <<a
moz-do-not-send="true"
href="mailto:iskren.hadzhinedev@ikiji.com">iskren.hadzhinedev@ikiji.com</a>>:<br>
<div class="HOEnZb">
<div class="h5"><br>
> "local" is a valid regex for
"local,international" and it matches<br>
> correctly if I use user_data(${sip_from_uri}
var toll_allow) instead of<br>
> ${toll_allow}. The problem is that
${toll_allow} evaluates to an empty<br>
> string in the dialplan as opposed to
${user_data(${sip_from_uri} var<br>
> toll_allow)} which returns the correct result.
I already have a<br>
> debugging extension that uses application
"info" and there are no<br>
> variables from the directory at all.<br>
><br>
> Kind regards,<br>
> Iskren<br>
><br>
> On 17.3.2014 г. 20:16, mbo wrote:<br>
>> You set variable toll_allow to the string
„local,international“ but you’re matching the
condition only to the string „local“.<br>
>><br>
>> you can put something like:<br>
>><br>
>> <extension name="Debug"><br>
>> <condition><br>
>> <action application="log"
data="INFO toll_allow: ${toll_allow}" /><br>
>> </condition><br>
>> </extension“><br>
>><br>
>> in your dial plan to see if the variable is
set.<br>
>><br>
>> Thanks<br>
>><br>
>> Markus<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> Am 17.03.2014 um 16:02 schrieb Iskren
Hadzhinedev <<a moz-do-not-send="true"
href="mailto:iskren.hadzhinedev@ikiji.com">iskren.hadzhinedev@ikiji.com</a>>:<br>
>><br>
>>> Greetings!<br>
>>> I'm unable to access user variables
that are set in the directory from<br>
>>> the dialplan.<br>
>>> The setup is quite simple, the user is:<br>
>>> --<br>
>>> <user
id="611"><br>
>>> <params><br>
>>> <param
name="a1-hash"<br>
>>>
value="693c2978ddbe62f7129b7e551bcf7d49"/><br>
>>> <param
name="vm-enabled" value="true"/><br>
>>> <param
name="vm-a1-hash"<br>
>>>
value="126003cf36e8e6a69ecdbfd1bba121c8"/><br>
>>> </params><br>
>>>
<variables><br>
>>>
<variable name="toll_allow"<br>
>>> value="local,international"/><br>
>>>
<variable name="user_context"<br>
>>> value="<a moz-do-not-send="true"
href="http://sip.test.com" target="_blank">sip.test.com</a>"/><br>
>>>
<variable name="effective_caller_id_name"<br>
>>> value="Tester"/><br>
>>>
<variable name="effective_caller_id_number"<br>
>>> value="611"/><br>
>>>
</variables><br>
>>> </user><br>
>>> --<br>
>>> And the extension in the dialplan is:<br>
>>> --<br>
>>> <extension name="Outgoing
Test"><br>
>>> <condition field="${toll_allow}"
expression="local"/><br>
>>> <condition
field="destination_number"
expression="^([0-9]{6})$"><br>
>>> <action application="bridge"
data="sofia/gateway/testgw/$1"/><br>
>>> </condition><br>
>>> </extension><br>
>>> --<br>
>>><br>
>>> The toll_allow always gets evaluated to
an empty string, and when I<br>
>>> actually run the info application I
don't see any of the variables that<br>
>>> are set. If I replace the ${toll_allow}
with ${user_data(${sip_from_uri}<br>
>>> var toll_allow}, everything is working,
although the examples in the<br>
>>> wiki are showing that you can use those
variables just fine without<br>
>>> invoking user_data.<br>
>>> What am I doing wrong?<br>
>>> Thanks!<br>
>>> ----<br>
>>> Kind regards,<br>
>>> Iskren<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>
>><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>
><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>
<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>