[Freeswitch-users] ODP: domain_name variable
Steven Ayre
steveayre at gmail.com
Mon Jul 11 14:10:21 MSD 2011
That domain name variable won't be set there yet. You'll have to hardcode it
into the directory entry (or use mod_xml_curl where your program can
automatically put the same domain as that of the request).
-Steve
2011/7/11 Tomasz Kopacki <tomasz at kopacki.eu>
> Yes, I set this in directory file. It works when i write down the domain
> name, but i want to use var.
> With this config, all calls are going through 'public' context
>
> <variables>
> <variable name="toll_allow" value="domestic,international,local" />
> <variable name="accountcode" value="1001" />
> <variable name="callgroup" value="default" />
> <variable name="outbound_caller_id_name" value="..." />
> <variable name="effective_caller_id_name" value="..." />
> <variable name="effective_caller_id_numer" value="..." />
> <variable name="outbound_caller_id_numer" value="..." />
> ...
> <variable name="user_context" value="${domain_name}" />
> </variables>
>
>
> ________________________________________
> Od: freeswitch-users-bounces at lists.freeswitch.org [
> freeswitch-users-bounces at lists.freeswitch.org] w imieniu Steven Ayre [
> steveayre at gmail.com]
> Wysłano: 11 lipca 2011 11:07
> Do: FreeSWITCH Users Help
> Temat: Re: [Freeswitch-users] domain_name variable
>
> Where are you setting the user_context? In the user directory?
> Are you sure the calls are being authenticated properly?
>
> -Steve
>
>
> On 11 July 2011 09:30, Tomasz Kopacki <tomasz at kopacki.eu<mailto:
> tomasz at kopacki.eu>> wrote:
> Hi,
> I've got a problem with device variable - user_context.
> In my scenario, context name equals domain name, so i want to use variable
> to set user_context.
> I've tried 'user_context=${domain_name}' but it doesnt work, every call
> goes to public context.
> How to do this properly ?
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<mailto:
> FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110711/c0d088c6/attachment-0001.html
More information about the FreeSWITCH-users
mailing list