Hi, I set up a variable called "account-id" in the user directory xml file.
From the info app, I can't find the variable for variable_account-id. Also, in my C module, I tried to obtain the value with switch_channel_get_variable(channel,"account-id") and it is not returning null.
Does anyone know how I can access the user variable from within my mod? Thanks, JB
Hi, switch_channel_get_variable() is the right way. Its possible that the user isn't recognized, pastebin some debug logs. (console loglevel debug) PS: you can hop on #freeswitch-dev and we can chat Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene@avgs.ca On 20-Aug-09, at 8:50 AM, Juan Backson wrote:
Hi,
I set up a variable called "account-id" in the user directory xml file.
From the info app, I can't find the variable for variable_account- id. Also, in my C module, I tried to obtain the value with switch_channel_get_variable(channel,"account-id") and it is not returning null.
Does anyone know how I can access the user variable from within my mod?
Thanks, JB _______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
You can try also application/function user_data http://wiki.freeswitch.org/wiki/Mod_commands#user_data Also here ( http://wiki.freeswitch.org/wiki/XML_User_Directory_Guide#Alphanumeric_to_num... ) you can see it in use with application bridge. Works perfectly with set/export applications. Anatoliy On Thu, Aug 20, 2009 at 3:50 PM, Juan Backson<juanbackson@gmail.com> wrote:
Hi,
I set up a variable called "account-id" in the user directory xml file.
From the info app, I can't find the variable for variable_account-id. Also, in my C module, I tried to obtain the value with switch_channel_get_variable(channel,"account-id") and it is not returning null.
Does anyone know how I can access the user variable from within my mod?
Thanks, JB _______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anatoliy Kounitskiy ------------------------- E-mail: anatoliy@kounitskiy.com Mobile: +359898913540
participants (3)
-
Anatoliy Kounitskiy
-
Juan Backson
-
Mathieu Rene