<div dir="ltr">I will review the code.<div><br></div><div><br></div><div>Thank you!</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 12, 2016 at 7:44 PM, Dave Horton <span dir="ltr">&lt;<a href="mailto:daveh@beachdognet.com" target="_blank">daveh@beachdognet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">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)<div><div class="h5"><br><div><div>On Aug 12, 2016, at 4:12 PM, acheraime . &lt;<a href="mailto:acheraime@gmail.com" target="_blank">acheraime@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr">Yes I do. The context variable is populated in the user directory. <div>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><br></div><div><br></div><div>Thanks.</div><div>Adolphe</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 12, 2016 at 6:50 PM, Dave Horton <span dir="ltr">&lt;<a href="mailto:daveh@beachdognet.com" target="_blank">daveh@beachdognet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Looks like you are using python to dynamically generate your subscriber directory files?  I suspect the bug is in the python script which is populating a context variable into the generated file.<div><div><br><div><div>On Aug 12, 2016, at 3:36 PM, acheraime . &lt;<a href="mailto:acheraime@gmail.com" target="_blank">acheraime@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr">This is a call from an internal registered user to another one.<div><br></div><div><div>2016-08-12 18:24:47.965022 [DEBUG] switch_core_state_machine.c:47<wbr>3 (sofia/internal/401942957943@s<wbr>ip.cvraptzg6qbq5lmj) Running State Change CS_NEW</div><div>2016-08-12 18:24:47.965022 [DEBUG] sofia.c:9099 sofia/internal/401942957943@si<wbr>p.cvraptzg6qbq5lmj receiving invite from <a href="http://10.10.250.3:5060/" target="_blank">10.10.250.3:5060</a> version: 1.7.0 git bd371f4 2015-08-24 13:36:23Z 64bit</div><div>2016-08-12 18:24:47.965022 [DEBUG] sofia.c:9266 IP 10.10.250.3 Rejected by acl &quot;domains&quot;. Falling back to Digest auth.</div><div>2016-08-12 18:24:47.965022 [DEBUG] switch_core_state_machine.c:49<wbr>2 (sofia/internal/401942957943@s<wbr>ip.cvraptzg6qbq5lmj) State NEW</div><div>2016-08-12 18:24:47.965022 [DEBUG] sofia.c:2147 detaching session 6614a55f-bbf1-4b9e-8a25-d5e31e<wbr>576bb4</div><div>2016-08-12 18:24:48.025008 [DEBUG] sofia.c:2255 Re-attaching to session 6614a55f-bbf1-4b9e-8a25-d5e31e<wbr>576bb4</div><div>2016-08-12 18:24:48.045005 [DEBUG] sofia.c:9099 sofia/internal/401942957943@si<wbr>p.cvraptzg6qbq5lmj receiving invite from <a href="http://10.10.250.3:5060/" target="_blank">10.10.250.3:5060</a> version: 1.7.0 git bd371f4 2015-08-24 13:36:23Z 64bit</div><div>2016-08-12 18:24:48.045005 [DEBUG] sofia.c:9266 IP 10.10.250.3 Rejected by acl &quot;domains&quot;. Falling back to Digest auth.</div><div>2016-08-12 18:24:48.045005 [NOTICE] mod_python.c:212 Invoking py module: switch_connector.handler</div><div>2016-08-12 18:24:49.124969 [DEBUG] mod_python.c:283 Call python script</div></div><div>.........</div><div><br></div><div><div>2016-08-12 18:24:49.304970 [DEBUG] mod_sofia.c:141 sofia/internal/401942957943@si<wbr>p.cvraptzg6qbq5lmj SOFIA ROUTING</div><div>2016-08-12 18:24:49.304970 [DEBUG] switch_core_state_machine.c:16<wbr>6 sofia/internal/401942957943@si<wbr>p.cvraptzg6qbq5lmj Standard ROUTING</div><div><font color="#cc0000" style="background-color:rgb(0,0,0)">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><br></div><div>From there the extension will not be found and the call will be dropped. The next call I try will be successful. </div><div><br></div><div>Below is a successful one.</div><div>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-------------------------</div><div><div>2016-08-12 18:31:34.205008 [NOTICE] switch_channel.c:1089 New Channel sofia/internal/401942957943@si<wbr>p.cvraptzg6qbq5lmj [d3eeae13-a4e6-4cf1-b311-4cff5<wbr>bff4523]</div><div>2016-08-12 18:31:34.205008 [DEBUG] switch_core_state_machine.c:47<wbr>3 (sofia/internal/401942957943@s<wbr>ip.cvraptzg6qbq5lmj) Running State Change CS_NEW</div><div>2016-08-12 18:31:34.205008 [DEBUG] sofia.c:9099 sofia/internal/401942957943@si<wbr>p.cvraptzg6qbq5lmj receiving invite from <a href="http://10.10.250.3:5060/" target="_blank">10.10.250.3:5060</a> version: 1.7.0 git bd371f4 2015-08-24 13:36:23Z 64bit</div><div>2016-08-12 18:31:34.205008 [DEBUG] sofia.c:9266 IP 10.10.250.3 Rejected by acl &quot;domains&quot;. Falling back to Digest auth.</div><div>2016-08-12 18:31:34.205008 [DEBUG] switch_core_state_machine.c:49<wbr>2 (sofia/internal/401942957943@s<wbr>ip.cvraptzg6qbq5lmj) State NEW</div><div>2016-08-12 18:31:34.205008 [DEBUG] sofia.c:2147 detaching session d3eeae13-a4e6-4cf1-b311-4cff5b<wbr>ff4523</div><div>2016-08-12 18:31:34.804982 [DEBUG] sofia.c:2255 Re-attaching to session d3eeae13-a4e6-4cf1-b311-4cff5b<wbr>ff4523</div><div>2016-08-12 18:31:34.804982 [DEBUG] sofia.c:9099 sofia/internal/401942957943@si<wbr>p.cvraptzg6qbq5lmj receiving invite from <a href="http://10.10.250.3:5060/" target="_blank">10.10.250.3:5060</a> version: 1.7.0 git bd371f4 2015-08-24 13:36:23Z 64bit</div><div>2016-08-12 18:31:34.804982 [DEBUG] sofia.c:9266 IP 10.10.250.3 Rejected by acl &quot;domains&quot;. Falling back to Digest auth.</div><div>2016-08-12 18:31:34.824970 [NOTICE] mod_python.c:212 Invoking py module: switch_connector.handler</div></div><div>....</div><div><div>2016-08-12 18:31:34.944971 [DEBUG] switch_core_state_machine.c:47<wbr>3 (sofia/internal/401942957943@s<wbr>ip.cvraptzg6qbq5lmj) Running State Change CS_ROUTING</div><div>2016-08-12 18:31:34.944971 [DEBUG] switch_channel.c:2239 (sofia/internal/401942957943@s<wbr>ip.cvraptzg6qbq5lmj) Callstate Change DOWN -&gt; RINGING</div><div>2016-08-12 18:31:34.944971 [DEBUG] switch_core_state_machine.c:53<wbr>2 (sofia/internal/401942957943@s<wbr>ip.cvraptzg6qbq5lmj) State ROUTING</div><div>2016-08-12 18:31:34.944971 [DEBUG] mod_sofia.c:141 sofia/internal/401942957943@si<wbr>p.cvraptzg6qbq5lmj SOFIA ROUTING</div><div>2016-08-12 18:31:34.944971 [DEBUG] switch_core_state_machine.c:16<wbr>6 sofia/internal/401942957943@si<wbr>p.cvraptzg6qbq5lmj Standard ROUTING</div><div><span style="background-color:rgb(0,255,0)">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>bddaee110767</span></div><div>2016-08-12 18:31:34.944971 [NOTICE] mod_python.c:212 Invoking py module: switch_connector.handler</div></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 12, 2016 at 3:15 PM, Dave Horton <span dir="ltr">&lt;<a href="mailto:daveh@beachdognet.com" target="_blank">daveh@beachdognet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">can you post some debug logs?  I imagine that would make it clear<br><div><div><div><div>On Aug 12, 2016, at 12:09 PM, acheraime . &lt;<a href="mailto:acheraime@gmail.com" target="_blank">acheraime@gmail.com</a>&gt; wrote:</div><br></div></div><div><div><div><div dir="ltr">Hi,<div><br></div><div>I&#39;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>Any idea of what might be the root cause?</div><div><br></div><div><br></div><div>Thanks and Happy Friday!</div><div><br></div><div><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><b>Adolphe CHER-AIME<br><br></b></div></div></div>
</div></div></div></div>
______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org/" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></div></div><br></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-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 data-smartmail="gmail_signature"><div dir="ltr"><div><b>Adolphe CHER-AIME<br><br></b></div></div></div>
</div>
______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org/" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></div></div><br></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>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 data-smartmail="gmail_signature"><div dir="ltr"><div><b>Adolphe CHER-AIME<br><br></b></div></div></div>
</div>
______________________________<wbr>______________________________<wbr>_____________<br>Professional FreeSWITCH Consulting Services: <br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></div></div><br></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<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.<wbr>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.<wbr>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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>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" data-smartmail="gmail_signature"><div dir="ltr"><div><b>Adolphe CHER-AIME<br><br></b></div></div></div>
</div>