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
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@lists.freeswitch.org [freeswitch-users-bounces@lists.freeswitch.org] w imieniu Steven Ayre [steveayre@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@kopacki.eu<mailto:tomasz@kopacki.eu>> wrote:FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org>
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
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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org