<div dir="ltr"><div class="gmail_default" style="">Hi Vlad,<span style="font-size:12.8000001907349px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.2000007629395px"><br>1) try remove bakets from log, write it like </span><font color="#000000" face="sans-serif"><span style="font-size:12.8000001907349px;line-height:19.2000007629395px"><action application="log" data="ERR TestMessage ${user_context}"/>. I tested now, it works.</span></font><br><font color="#000000" face="sans-serif"><span style="font-size:12.8000001907349px;line-height:19.2000007629395px">2) Examples of my directory:</span></font><br><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"><user id="someid"></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <params></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <param name="password" value="xxx"/></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> </params></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <variables></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <variable name="toll_allow" value="domestic,international,local" /></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <variable name="accountcode" value="xxx" /></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <variable name="user_context" value="ARTUR" /></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <variable name="effective_caller_id_name" value="xxx" /></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <variable name="effective_caller_id_number" value="xxx" /></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}" /></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}" /></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> <variable name="sip-force-expires" value="180" /></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:sans-serif;font-size:small;line-height:19.2000007629395px"> </variables></div><div class="gmail_default" style=""><font color="#000000" face="sans-serif"><span style="line-height:19.2000007629395px"> </user></span></font><br><font color="#000000" face="sans-serif"><span style="line-height:19.2000007629395px">then in dialplan </span></font><br><font color="#000000" face="sans-serif"><span style="line-height:19.2000007629395px"><context name="ARTUR"><br>... extentions....<br></span></font></context></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-08-26 19:05 GMT+05:00 Vladislav Ivanov <span dir="ltr"><<a href="mailto:deforceczt@gmail.com" target="_blank">deforceczt@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Good Day,<br><br>I have been trying to set up the sip phone at my home, and i'm having some issues with channel variables. <br>>From what I have read: <a href="https://wiki.freeswitch.org/wiki/Routing_with_directory_parameters" target="_blank">https://wiki.freeswitch.org/wiki/Routing_with_directory_parameters</a> I should <font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">force per-call authentication in your sofia.xml.conf for <variables> to be passed through to the dialplan. But I were unable to find this option in sofia/sofia_default files.</span></font><br><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"><a href="https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables</a> - Although here there is nothing about "per-call authentication". And I'm not sure how to proceed.</span></font><br><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">I have this directory xml:</span></font><br><br><div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"><include></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <user id="123123"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <params></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <param name="password" value="123123"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </params></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variables></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="accountcode" value="123123"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="user_context" value="test_context"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="effective_caller_id_name" value="Test Phone"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="effective_caller_id_number" value="123123"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </variables></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </user></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"></include></span></font></div><div><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">Directory variables should be passed as ${variable} as they are channel variables?</span></font><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">I have Dialplan as follows:</span></font><br><br><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"><extension name="registrar_test"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <condition field="destination_number" expression="^(.*)$"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <action application="log" data="ERR TestMessage [${user_context}]"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <action application="respond" data="503 Route Successfull"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </condition></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"></extension></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"><extension name="all_reject"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <condition field="destination_number" expression="^(.*)$"></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> <action application="respond" data="503 No Route"/></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"> </condition></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"></extension></span></font></div><div><br><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">When I dial the call I get </span></font><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px">TestMessage</span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px"> [] instead of </span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px">test_context.<br>Also, wrapping </span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px">registrar_test extension with </span><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px"><context name="</span></font><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8px;line-height:19.2px">test_context</span><font color="#000000" face="sans-serif"><span style="font-size:12.8px;line-height:19.2px">"></context> doesn't help, my call will go to "all_reject" extension.<br><br>What do I miss?<br><br>Best Regards,<br>Vlad</span></font></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><br>Arthur</div></div></div></div>
</div>