[Freeswitch-dev] Unable to access directory variable from channel

Anatoliy Kounitskiy anatoliy at kounitskiy.com
Thu Aug 27 13:18:43 PDT 2009


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_numeric_user_mapping
) 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 at 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 at 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 at kounitskiy.com
Mobile: +359898913540



More information about the FreeSWITCH-dev mailing list