<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Nothing wrong with using python to generate the file, but I am saying it is likely the bug is in the python code (ie in your code, not freewitch)<br class=""><div><div class="">On Aug 12, 2016, at 4:12 PM, acheraime . &lt;<a href="mailto:acheraime@gmail.com" class="">acheraime@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Yes I do. The context variable is populated in the user directory.&nbsp;<div class="">Is there anything wrong with that? As I told you it is random. Sometimes the call instead of the Local_xxxxx context lands to the public.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks.</div><div class="">Adolphe</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Aug 12, 2016 at 6:50 PM, Dave Horton <span dir="ltr" class="">&lt;<a href="mailto:daveh@beachdognet.com" target="_blank" class="">daveh@beachdognet.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Looks like you are using python to dynamically generate your subscriber directory files?&nbsp; I suspect the bug is in the python script which is populating a context variable into the generated file.<div class=""><div class="h5"><br class=""><div class=""><div class="">On Aug 12, 2016, at 3:36 PM, acheraime . &lt;<a href="mailto:acheraime@gmail.com" target="_blank" class="">acheraime@gmail.com</a>&gt; wrote:</div><br class=""><div class=""><div dir="ltr" class="">This is a call from an internal registered user to another one.<div class=""><br class=""></div><div class=""><div class="">2016-08-12 18:24:47.965022 [DEBUG] switch_core_state_machine.c:<wbr class="">473 (sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj) Running State Change CS_NEW</div><div class="">2016-08-12 18:24:47.965022 [DEBUG] sofia.c:9099 sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj receiving invite from <a href="http://10.10.250.3:5060/" target="_blank" class="">10.10.250.3:5060</a> version: 1.7.0 git bd371f4 2015-08-24 13:36:23Z 64bit</div><div class="">2016-08-12 18:24:47.965022 [DEBUG] sofia.c:9266 IP 10.10.250.3 Rejected by acl "domains". Falling back to Digest auth.</div><div class="">2016-08-12 18:24:47.965022 [DEBUG] switch_core_state_machine.c:<wbr class="">492 (sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj) State NEW</div><div class="">2016-08-12 18:24:47.965022 [DEBUG] sofia.c:2147 detaching session 6614a55f-bbf1-4b9e-8a25-<wbr class="">d5e31e576bb4</div><div class="">2016-08-12 18:24:48.025008 [DEBUG] sofia.c:2255 Re-attaching to session 6614a55f-bbf1-4b9e-8a25-<wbr class="">d5e31e576bb4</div><div class="">2016-08-12 18:24:48.045005 [DEBUG] sofia.c:9099 sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj receiving invite from <a href="http://10.10.250.3:5060/" target="_blank" class="">10.10.250.3:5060</a> version: 1.7.0 git bd371f4 2015-08-24 13:36:23Z 64bit</div><div class="">2016-08-12 18:24:48.045005 [DEBUG] sofia.c:9266 IP 10.10.250.3 Rejected by acl "domains". Falling back to Digest auth.</div><div class="">2016-08-12 18:24:48.045005 [NOTICE] mod_python.c:212 Invoking py module: switch_connector.handler</div><div class="">2016-08-12 18:24:49.124969 [DEBUG] mod_python.c:283 Call python script</div></div><div class="">.........</div><div class=""><br class=""></div><div class=""><div class="">2016-08-12 18:24:49.304970 [DEBUG] mod_sofia.c:141 sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj SOFIA ROUTING</div><div class="">2016-08-12 18:24:49.304970 [DEBUG] switch_core_state_machine.c:<wbr class="">166 sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj Standard ROUTING</div><div class=""><font color="#cc0000" style="background-color:rgb(0,0,0)" class="">2016-08-12 18:24:49.304970 [INFO] mod_dialplan_xml.c:637 Processing 401942957943 &lt;401942957943&gt;-&gt;2320 in context public</font></div></div><div class=""><br class=""></div><div class="">From there the extension will not be found and the call will be dropped. The next call I try will be successful.&nbsp;</div><div class=""><br class=""></div><div class="">Below is a successful one.</div><div class="">------------------------------<wbr class="">------------------------------<wbr class="">------------------------------<wbr class="">-------------------------</div><div class=""><div class="">2016-08-12 18:31:34.205008 [NOTICE] switch_channel.c:1089 New Channel sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj [d3eeae13-a4e6-4cf1-b311-<wbr class="">4cff5bff4523]</div><div class="">2016-08-12 18:31:34.205008 [DEBUG] switch_core_state_machine.c:<wbr class="">473 (sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj) Running State Change CS_NEW</div><div class="">2016-08-12 18:31:34.205008 [DEBUG] sofia.c:9099 sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj receiving invite from <a href="http://10.10.250.3:5060/" target="_blank" class="">10.10.250.3:5060</a> version: 1.7.0 git bd371f4 2015-08-24 13:36:23Z 64bit</div><div class="">2016-08-12 18:31:34.205008 [DEBUG] sofia.c:9266 IP 10.10.250.3 Rejected by acl "domains". Falling back to Digest auth.</div><div class="">2016-08-12 18:31:34.205008 [DEBUG] switch_core_state_machine.c:<wbr class="">492 (sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj) State NEW</div><div class="">2016-08-12 18:31:34.205008 [DEBUG] sofia.c:2147 detaching session d3eeae13-a4e6-4cf1-b311-<wbr class="">4cff5bff4523</div><div class="">2016-08-12 18:31:34.804982 [DEBUG] sofia.c:2255 Re-attaching to session d3eeae13-a4e6-4cf1-b311-<wbr class="">4cff5bff4523</div><div class="">2016-08-12 18:31:34.804982 [DEBUG] sofia.c:9099 sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj receiving invite from <a href="http://10.10.250.3:5060/" target="_blank" class="">10.10.250.3:5060</a> version: 1.7.0 git bd371f4 2015-08-24 13:36:23Z 64bit</div><div class="">2016-08-12 18:31:34.804982 [DEBUG] sofia.c:9266 IP 10.10.250.3 Rejected by acl "domains". Falling back to Digest auth.</div><div class="">2016-08-12 18:31:34.824970 [NOTICE] mod_python.c:212 Invoking py module: switch_connector.handler</div></div><div class="">....</div><div class=""><div class="">2016-08-12 18:31:34.944971 [DEBUG] switch_core_state_machine.c:<wbr class="">473 (sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj) Running State Change CS_ROUTING</div><div class="">2016-08-12 18:31:34.944971 [DEBUG] switch_channel.c:2239 (sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj) Callstate Change DOWN -&gt; RINGING</div><div class="">2016-08-12 18:31:34.944971 [DEBUG] switch_core_state_machine.c:<wbr class="">532 (sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj) State ROUTING</div><div class="">2016-08-12 18:31:34.944971 [DEBUG] mod_sofia.c:141 sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj SOFIA ROUTING</div><div class="">2016-08-12 18:31:34.944971 [DEBUG] switch_core_state_machine.c:<wbr class="">166 sofia/internal/401942957943@<wbr class="">sip.cvraptzg6qbq5lmj Standard ROUTING</div><div class=""><span style="background-color:rgb(0,255,0)" class="">2016-08-12 18:31:34.944971 [INFO] mod_dialplan_xml.c:637 Processing 401942957943 &lt;401942957943&gt;-&gt;2320 in context Local_d7082761-3178-4cab-955a-<wbr class="">bddaee110767</span></div><div class="">2016-08-12 18:31:34.944971 [NOTICE] mod_python.c:212 Invoking py module: switch_connector.handler</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Aug 12, 2016 at 3:15 PM, Dave Horton <span dir="ltr" class="">&lt;<a href="mailto:daveh@beachdognet.com" target="_blank" class="">daveh@beachdognet.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">can you post some debug logs?&nbsp; I imagine that would make it clear<br class=""><div class=""><div class=""><div class=""><div class="">On Aug 12, 2016, at 12:09 PM, acheraime . &lt;<a href="mailto:acheraime@gmail.com" target="_blank" class="">acheraime@gmail.com</a>&gt; wrote:</div><br class=""></div></div><div class=""><div class=""><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">I'm experiencing an issue where for some reason, internal authenticated calls land to the public context. This is very random and the next attempt always go to the right context.</div><div class="">Any idea of what might be the root cause?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks and Happy Friday!</div><div class=""><br class=""></div><div class=""><div class=""><br class=""></div>-- <br class=""><div data-smartmail="gmail_signature" class=""><div dir="ltr" class=""><div class=""><b class="">Adolphe CHER-AIME<br class=""><br class=""></b></div></div></div>
</div></div></div></div>
______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class=""><a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.freeswitchsolutions<wbr class="">.com</a><br class=""><br class="">Official FreeSWITCH Sites<br class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class=""><a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.o<wbr class="">rg</a><br class=""><a href="http://www.cluecon.com/" target="_blank" class="">http://www.cluecon.com</a><br class=""><br class="">FreeSWITCH-users mailing list<br class=""><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswi<wbr class="">tch.org</a><br class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/ma<wbr class="">ilman/listinfo/freeswitch-user<wbr class="">s</a><br class="">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">http://lists.frees<wbr class="">witch.org/mailman/options/<wbr class="">freeswitch-users</a><br class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a></div></div><br class=""></div><br class="">______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions<wbr class="">.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.o<wbr class="">rg</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswi<wbr class="">tch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/ma<wbr class="">ilman/listinfo/freeswitch-user<wbr class="">s</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.frees<wbr class="">witch.org/mailman/options/<wbr class="">freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div data-smartmail="gmail_signature" class=""><div dir="ltr" class=""><div class=""><b class="">Adolphe CHER-AIME<br class=""><br class=""></b></div></div></div>
</div>
______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" target="_blank" class="">consulting@freeswitch.org</a><br class=""><a href="http://www.freeswitchsolutions.com/" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a><br class=""><br class="">Official FreeSWITCH Sites<br class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a><br class=""><a href="http://confluence.freeswitch.org/" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a><br class=""><a href="http://www.cluecon.com/" target="_blank" class="">http://www.cluecon.com</a><br class=""><br class="">FreeSWITCH-users mailing list<br class=""><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.<wbr class="">freeswitch.org</a><br class=""><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a><br class="">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a><br class=""><a href="http://www.freeswitch.org/" target="_blank" class="">http://www.freeswitch.org</a></div></div><br class=""></div></div></div><br class="">______________________________<wbr class="">______________________________<wbr class="">_____________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.<wbr class="">freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.<wbr class="">org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.<wbr class="">freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/<wbr class="">mailman/listinfo/freeswitch-<wbr class="">users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.<wbr class="">freeswitch.org/mailman/<wbr class="">options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><b class="">Adolphe CHER-AIME<br class=""><br class=""></b></div></div></div>
</div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></div><br class=""></body></html>