That domain name variable won&#39;t be set there yet. You&#39;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">&lt;<a href="mailto:tomasz@kopacki.eu">tomasz@kopacki.eu</a>&gt;</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 &#39;public&#39; context<br>
<br>
&lt;variables&gt;<br>
        &lt;variable name=&quot;toll_allow&quot; value=&quot;domestic,international,local&quot; /&gt;<br>
        &lt;variable name=&quot;accountcode&quot; value=&quot;1001&quot; /&gt;<br>
        &lt;variable name=&quot;callgroup&quot; value=&quot;default&quot; /&gt;<br>
        &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;...&quot; /&gt;<br>
        &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;...&quot; /&gt;<br>
        &lt;variable name=&quot;effective_caller_id_numer&quot; value=&quot;...&quot; /&gt;<br>
        &lt;variable name=&quot;outbound_caller_id_numer&quot; value=&quot;...&quot; /&gt;<br>
        ...<br>
        &lt;variable name=&quot;user_context&quot; value=&quot;${domain_name}&quot; /&gt;<br>
&lt;/variables&gt;<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 &lt;<a href="mailto:tomasz@kopacki.eu">tomasz@kopacki.eu</a>&lt;mailto:<a href="mailto:tomasz@kopacki.eu">tomasz@kopacki.eu</a>&gt;&gt; wrote:<br>
Hi,<br>
I&#39;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&#39;ve tried &#39;user_context=${domain_name}&#39; 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>&lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<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>