<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 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 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 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 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 href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>><br>
>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
>><br>
>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
>> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div></div>