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).<br><br>-Steve<br>
<br><br><br><div class="gmail_quote">2011/7/11 Tomasz Kopacki <span dir="ltr"><<a href="mailto:tomasz@kopacki.eu">tomasz@kopacki.eu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Yes, I set this in directory file. It works when i write down the domain name, but i want to use var.<br>
With this config, all calls are going through 'public' context<br>
<br>
<variables><br>
<variable name="toll_allow" value="domestic,international,local" /><br>
<variable name="accountcode" value="1001" /><br>
<variable name="callgroup" value="default" /><br>
<variable name="outbound_caller_id_name" value="..." /><br>
<variable name="effective_caller_id_name" value="..." /><br>
<variable name="effective_caller_id_numer" value="..." /><br>
<variable name="outbound_caller_id_numer" value="..." /><br>
...<br>
<variable name="user_context" value="${domain_name}" /><br>
</variables><br>
<br>
<br>
________________________________________<br>
Od: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] w imieniu Steven Ayre [<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>]<br>
Wysłano: 11 lipca 2011 11:07<br>
Do: FreeSWITCH Users Help<br>
Temat: Re: [Freeswitch-users] domain_name variable<br>
<div class="im"><br>
Where are you setting the user_context? In the user directory?<br>
Are you sure the calls are being authenticated properly?<br>
<br>
-Steve<br>
<br>
<br>
</div><div class="im">On 11 July 2011 09:30, Tomasz Kopacki <<a href="mailto:tomasz@kopacki.eu">tomasz@kopacki.eu</a><mailto:<a href="mailto:tomasz@kopacki.eu">tomasz@kopacki.eu</a>>> wrote:<br>
Hi,<br>
I've got a problem with device variable - user_context.<br>
In my scenario, context name equals domain name, so i want to use variable to set user_context.<br>
I've tried 'user_context=${domain_name}' but it doesnt work, every call goes to public context.<br>
How to do this properly ?<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
</div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><br>
<div><div></div><div class="h5"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>