Variables in a user directory config will not a channel variable
Hi, I’m set the valiable „effective_caller_id_numer“ in the user config file. The user is working fine, but the variables are not set to the channel variables. <user id="170"> <params> <param name="password" value="xxx" /> </params> <variables> <variable name="effective_caller_id_number" value="+4989840798170" /> <variable name="any_key" value="any_value" /> </variables> </user> The user 170 is calling another user. In the dialplan, I’m trying this <action application="log" data="ERR effective_caller_id_number=${effective_caller_id_number}"/> The documentation for the user directory says https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory#XMLU... “Any variables defined in the domain or user will be defined as channel variables when there is a call to user or when there is an inbound calls from that user.” Needs the freeswitch the mod_directory for this? I think not. What do I wrong? Thanks a lot!
You need to use "set" <action application="set" data="effective_caller_id_name=FreeSwitch"/> On Mon, Sep 12, 2016 at 3:46 AM, Alexander Haugg <Alexander.Haugg@c4b.de> wrote:
Hi,
I’m set the valiable „effective_caller_id_numer“ in the user config file. The user is working fine, but the variables are not set to the channel variables.
<user id="170">
<params>
<param name="password" value="xxx" />
</params>
<variables>
<variable name="effective_caller_id_number" value="+4989840798170" />
<variable name="any_key" value="any_value" />
</variables>
</user>
The user 170 is calling another user. In the dialplan, I’m trying this
<action application="log" data="ERR effective_caller_id_number=${ effective_caller_id_number}"/>
The documentation for the user directory says
https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory# XMLUserDirectory-Variables
“Any variables defined in the domain or user will be defined as channel variables when there is a call to user or when there is an inbound calls from that user.”
Needs the freeswitch the mod_directory for this? I think not.
What do I wrong?
Thanks a lot!
_________________________________________________________________________ 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
-- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT <http://zello.com>: push2don P: 469-214-5044
This is to set in dialplan, but what in user profile? I have same problem. I had to explicit set variable in dialplan, but I would like to set it in user profile. On Mon, Sep 12, 2016, 15:20 Don Hawkins <hawkins@hawkinsegroup.com> wrote:
You need to use "set"
<action application="set" data="effective_caller_id_name=FreeSwitch"/>
On Mon, Sep 12, 2016 at 3:46 AM, Alexander Haugg <Alexander.Haugg@c4b.de> wrote:
Hi,
I’m set the valiable „effective_caller_id_numer“ in the user config file. The user is working fine, but the variables are not set to the channel variables.
<user id="170">
<params>
<param name="password" value="xxx" />
</params>
<variables>
<variable name="effective_caller_id_number" value="+4989840798170" />
<variable name="any_key" value="any_value" />
</variables>
</user>
The user 170 is calling another user. In the dialplan, I’m trying this
<action application="log" data="ERR effective_caller_id_number=${effective_caller_id_number}"/>
The documentation for the user directory says
https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory#XMLU...
“Any variables defined in the domain or user will be defined as channel variables when there is a call to user or when there is an inbound calls from that user.”
Needs the freeswitch the mod_directory for this? I think not.
What do I wrong?
Thanks a lot!
_________________________________________________________________________ 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
-- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT <http://zello.com>: push2don P: 469-214-5044 _________________________________________________________________________ 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
-- Gregor Nanger *CTO* t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia • www.infomedia.si
No, you don’t understand the problem. The variable “effective_caller_id_number” is set in the user directory config (see the xml), but if I try to write the value of the variable out to the CLI (in the dial plan via “<action application="log" data="ERR effective_caller_id_number=${effective_caller_id_number}"/>”), I can see, the variable is empty. Here again the description part from the freeswitch wiki: https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory#XMLU... “Any variables defined in the domain or user will be defined as channel variables when there is a call to user or when there is an inbound calls from that user.” Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Don Hawkins Gesendet: Montag, 12. September 2016 15:19 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Betreff: Re: [Freeswitch-users] Variables in a user directory config will not a channel variable You need to use "set" <action application="set" data="effective_caller_id_name=FreeSwitch"/> On Mon, Sep 12, 2016 at 3:46 AM, Alexander Haugg <Alexander.Haugg@c4b.de<mailto:Alexander.Haugg@c4b.de>> wrote: Hi, I’m set the valiable „effective_caller_id_numer“ in the user config file. The user is working fine, but the variables are not set to the channel variables. <user id="170"> <params> <param name="password" value="xxx" /> </params> <variables> <variable name="effective_caller_id_number" value="+4989840798170<tel:%2B4989840798170>" /> <variable name="any_key" value="any_value" /> </variables> </user> The user 170 is calling another user. In the dialplan, I’m trying this <action application="log" data="ERR effective_caller_id_number=${effective_caller_id_number}"/> The documentation for the user directory says https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory#XMLU... “Any variables defined in the domain or user will be defined as channel variables when there is a call to user or when there is an inbound calls from that user.” Needs the freeswitch the mod_directory for this? I think not. What do I wrong? Thanks a lot! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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 -- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT<http://zello.com>: push2don P: 469-214-5044
is it specific to this variable or is it any variable you set in the directory? are you sure it uses the auth of freeswitch or is there a proxy betwwen the user and freeswitch that handles the auth? you can try the info application or uuid_dump to see if there is anything obvious On Tue, Sep 13, 2016 at 5:38 AM, Alexander Haugg <Alexander.Haugg@c4b.de> wrote:
No, you don’t understand the problem.
The variable “effective_caller_id_number” is set in the user directory config (see the xml), but if I try to write the value of the variable out to the CLI (in the dial plan via “<action application="log" data="ERR effective_caller_id_number=${effective_caller_id_number}"/>”), I can see, the variable is empty.
Here again the description part from the freeswitch wiki:
https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory# XMLUserDirectory-Variables
“Any variables defined in the domain or user will be defined as channel variables when there is a call to user or when there is an inbound calls from that user.”
*Von:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *Im Auftrag von *Don Hawkins *Gesendet:* Montag, 12. September 2016 15:19 *An:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Betreff:* Re: [Freeswitch-users] Variables in a user directory config will not a channel variable
You need to use "set"
<action application="set" data="effective_caller_id_name=FreeSwitch"/>
On Mon, Sep 12, 2016 at 3:46 AM, Alexander Haugg <Alexander.Haugg@c4b.de> wrote:
Hi,
I’m set the valiable „effective_caller_id_numer“ in the user config file. The user is working fine, but the variables are not set to the channel variables.
<user id="170">
<params>
<param name="password" value="xxx" />
</params>
<variables>
<variable name="effective_caller_id_number" value="+4989840798170" />
<variable name="any_key" value="any_value" />
</variables>
</user>
The user 170 is calling another user. In the dialplan, I’m trying this
<action application="log" data="ERR effective_caller_id_number=${ effective_caller_id_number}"/>
The documentation for the user directory says
https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory# XMLUserDirectory-Variables
“Any variables defined in the domain or user will be defined as channel variables when there is a call to user or when there is an inbound calls from that user.”
Needs the freeswitch the mod_directory for this? I think not.
What do I wrong?
Thanks a lot!
_________________________________________________________________________ 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
--
Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT <http://zello.com>: push2don
P: 469-214-5044
_________________________________________________________________________ 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
Hi, it is any variable that I set in the directory. No, there is no proxy, the connection between client an freeswitch is directly. The uuid_dump command say the same, the variables from the user directory config will not set to the channel, for inbound and outbound the same. Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Abaci B Gesendet: Dienstag, 13. September 2016 17:12 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Betreff: Re: [Freeswitch-users] Variables in a user directory config will not a channel variable is it specific to this variable or is it any variable you set in the directory? are you sure it uses the auth of freeswitch or is there a proxy betwwen the user and freeswitch that handles the auth? you can try the info application or uuid_dump to see if there is anything obvious On Tue, Sep 13, 2016 at 5:38 AM, Alexander Haugg <Alexander.Haugg@c4b.de<mailto:Alexander.Haugg@c4b.de>> wrote: No, you don’t understand the problem. The variable “effective_caller_id_number” is set in the user directory config (see the xml), but if I try to write the value of the variable out to the CLI (in the dial plan via “<action application="log" data="ERR effective_caller_id_number=${effective_caller_id_number}"/>”), I can see, the variable is empty. Here again the description part from the freeswitch wiki: https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory#XMLU... “Any variables defined in the domain or user will be defined as channel variables when there is a call to user or when there is an inbound calls from that user.” Von: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>] Im Auftrag von Don Hawkins Gesendet: Montag, 12. September 2016 15:19 An: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org<mailto:freeswitch-users@lists.freeswitch.org>> Betreff: Re: [Freeswitch-users] Variables in a user directory config will not a channel variable You need to use "set" <action application="set" data="effective_caller_id_name=FreeSwitch"/> On Mon, Sep 12, 2016 at 3:46 AM, Alexander Haugg <Alexander.Haugg@c4b.de<mailto:Alexander.Haugg@c4b.de>> wrote: Hi, I’m set the valiable „effective_caller_id_numer“ in the user config file. The user is working fine, but the variables are not set to the channel variables. <user id="170"> <params> <param name="password" value="xxx" /> </params> <variables> <variable name="effective_caller_id_number" value="+4989840798170<tel:%2B4989840798170>" /> <variable name="any_key" value="any_value" /> </variables> </user> The user 170 is calling another user. In the dialplan, I’m trying this <action application="log" data="ERR effective_caller_id_number=${effective_caller_id_number}"/> The documentation for the user directory says https://freeswitch.org/confluence/display/FREESWITCH/XML+User+Directory#XMLU... “Any variables defined in the domain or user will be defined as channel variables when there is a call to user or when there is an inbound calls from that user.” Needs the freeswitch the mod_directory for this? I think not. What do I wrong? Thanks a lot! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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 -- Sincerely, Don Hawkins CEO Hawkins Enterprise Group LLC http://hawkinsegroup.com Zello PTT<http://zello.com>: push2don P: 469-214-5044<tel:469-214-5044> _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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
participants (4)
-
Abaci B
-
Alexander Haugg
-
Don Hawkins
-
Gregor Nanger