<div dir="ltr">This line is the same on the other machines, too?<div><br></div><div><span style="color:rgb(80,0,80);font-size:12.8000001907349px"> </span><span style="color:rgb(80,0,80);font-size:12.8000001907349px">-8" standalone="no"?></span><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">-Avi Marcus<br></div></div></div>
<br><div class="gmail_quote">On Wed, Sep 2, 2015 at 3:10 PM, acheraime . <span dir="ltr"><<a href="mailto:acheraime@gmail.com" target="_blank">acheraime@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Michael,<div><br></div><div>I did exactly what you suggest about the condition . Now 2/3 calls failed with an Invalid application. I realize that when freeswitch is parsing the extension. For some reason freeswitch receive some empty application statement this is why it throw the invalid application exception. See below</div><div><br></div><div><div>Dialplan: sofia/external/<a href="http://863xxxxxxx@10.50.12.227:5065" target="_blank">863xxxxxxx@10.50.12.227:5065</a> Action export(call_direction=inbound)</div><div><span style="background-color:rgb(255,0,0)">Dialplan: sofia/external/<a href="http://863xxxxxxx@10.50.12.227:5065" target="_blank">863xxxxxxx@10.50.12.227:5065</a> Action ()</span></div><div>2015-09-02 07:55:52.644475 [DEBUG] switch_core_state_machine.c:216 (sofia/external/<a href="http://863xxxxxxx@10.50.12.227:5065" target="_blank">863xxxxxxx@10.50.12.227:5065</a>) State Change CS_ROUTING -> CS_EXECUTE</div><div>2015-09-02 07:55:52.644475 [DEBUG] switch_core_session.c:1397 Send signal sofia/external/<a href="http://863xxxxxxx@10.50.12.227:5065" target="_blank">863xxxxxxx@10.50.12.227:5065</a> [BREAK]</div><div>2015-09-02 07:55:52.644475 [DEBUG] switch_core_state_machine.c:528 (sofia/external/<a href="http://863xxxxxxx@10.50.12.227:5065" target="_blank">863xxxxxxx@10.50.12.227:5065</a>) State ROUTING going to sleep</div><div>2015-09-02 07:55:52.644475 [DEBUG] switch_core_state_machine.c:472 (sofia/external/<a href="http://863xxxxxxx@10.50.12.227:5065" target="_blank">863xxxxxxx@10.50.12.227:5065</a>) Running State Change CS_EXECUTE</div><div>2015-09-02 07:55:52.644475 [DEBUG] switch_core_state_machine.c:535 (sofia/external/<a href="http://863xxxxxxx@10.50.12.227:5065" target="_blank">863xxxxxxx@10.50.12.227:5065</a>) State EXECUTE</div><div>2015-09-02 07:55:52.644475 [DEBUG] mod_sofia.c:178 sofia/external/<a href="http://863xxxxxxx@10.50.12.227:5065" target="_blank">863xxxxxxx@10.50.12.227:5065</a> SOFIA EXECUTE</div><div>2015-09-02 07:55:52.644475 [DEBUG] switch_core_state_machine.c:258 sofia/external/<a href="http://863xxxxxxx@10.50.12.227:5065" target="_blank">863xxxxxxx@10.50.12.227:5065</a> Standard EXECUTE</div><div><span style="background-color:rgb(255,0,0)">2015-09-02 07:55:52.644475 [ERR] switch_core_session.c:2710 Invalid Application</span></div></div><div><span style="background-color:rgb(255,0,0)"><br></span></div><div>Matched dial plan</div><div><br></div><div><span class=""><div> <?xml version="1.0" encoding="UTF-8" standalone="no"?></div><div> <document type="freeswitch/xml"></div><div> <section name="dialplan" description="Dotcs automatically generated dialplan"></div><div> <context name="public"></div></span><div> <extension name="tribuneroute"></div><div> <condition></div><span class=""><div> <action application="export" data="call_direction=inbound"/></div></span><div> <action application="transfer" data="6508 XML default"/></div><span class=""><div> </condition></div><div> </extension></div><div> </context></div><div> </section></div><div> </document></div><div><br></div></span></div><div>The same codes are running fine on two other boxes.</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div>Adolphe</div><div><div class="h5"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 12:50 AM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">yes, I suggest you get rid of the transfer and try without the condition<div><div><span></span><br><br>On Tuesday, September 1, 2015, acheraime . <<a href="mailto:acheraime@gmail.com" target="_blank">acheraime@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Michael,<div></div><div><br></div><div>I agree with you on the redundant condition statement. About the transfer I take that path because I already handle calls to registered users or any voice application like auto attendant from other dial plans. For sake of simplicity I transfer call from DIDs to them instead of redefining the same logics.</div><div>Any suggestions?</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div>Adolphe</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 11:17 PM, Michael Jerris <span dir="ltr"><<a>mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">when generating dynamic dial plan, it makes no sense to generate a condition, you would think your logic already handled the conditions. You can use a blank condition tag instead... also, why have it transfer right back into dial plan causing extra parsing, instead just give it the actions that would otherwise happen inside the extension its being transferred to.<div><div><span></span><br><br>On Tuesday, September 1, 2015, acheraime . <<a>acheraime@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I'm experiencing a strange issue with freeswitch 1.4.21 running on CentOS 6.5.</div><div>I have a trunk that terminates a few DIDs for 150 sip users. I'm using mod_python to dynamically generate all my dialplans.</div><div>Everything have been working fine for three weeks (When I made this deployment) since Saturday, freeswitch start dropping calls. 95% of inbound calls are dropped with </div><div>a "No route" message or an "invalid application" error.</div><div>What's seems weird is the extension is generated. Below is a snippet of a log<br></div><div><br></div><div> </div><div><div>2015-09-01 21:35:07.967396 [INFO] mod_dialplan_xml.c:635 Processing WIRELESS CALLER <603XXXXXXX>->813XXXXX in context public</div><div>2015-09-01 21:35:07.968396 [NOTICE] mod_python.c:212 Invoking py module: fscore.handler</div><div>2015-09-01 21:35:07.970394 [DEBUG] mod_python.c:283 Call python script</div><div>2015-09-01 21:35:07.970394 [INFO] switch_cpp.cpp:1328 This a dialplan request</div><div>2015-09-01 21:35:07.975403 [INFO] switch_cpp.cpp:1328 Call from outside network</div><div>2015-09-01 21:35:07.976400 [NOTICE] switch_cpp.cpp:1328</div><div> <?xml version="1.0" encoding="UTF-8" standalone="no"?></div><div> <document type="freeswitch/xml"></div><div> <section name="dialplan" description="Dotcs automatically generated dialplan"></div><div> <context name="public"></div><div> <extension name="338_dotcs_route"></div><div> <condition field="destination_number" expression="^(813XXXXXXX)$"></div><div> <action application="log" data="notice INBOUND CALL FOR DID ${destination_number}"/></div><div> <action application="export" data="call_direction=inbound"/></div><div> <action application="transfer" data="1049 XML default"/></div><div> </condition></div><div> </extension></div><div> </context></div><div> </section></div><div> </document></div></div><div><br></div><div><div>2015-09-01 21:35:07.976400 [DEBUG] mod_python.c:286 Finished calling python script</div><div>Dialplan: sofia/external/<a href="http://603XXXXXXX@10.50.12.227:5065" target="_blank">603XXXXXXX@10.50.12.227:5065</a> parsing [public->338_dotcs_route] continue=false</div><div><b>Dialplan: sofia/external/<a href="http://603XXXXXXX@10.50.12.227:5065" target="_blank">603XXXXXXX@10.50.12.227:5065</a> Regex (PASS) ] destination_number(813XXXXXXX) =~ /^(813XXXXXXX)$/ break=on-false</b></div><div><span style="background-color:rgb(255,0,0)">2015-09-01 21:35:07.976400 [INFO] switch_core_state_machine.c:241 No Route, Aborting</span></div><div><span style="background-color:rgb(255,0,0)"><br></span></div><div><br></div><div>What do you guys think might be wrong?</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div><br></div>-- <br><div><b>Adolphe CHER-AIME<br><br></b></div>
</div></div>
</blockquote>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>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>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><div><br></div>
</div></div>
</blockquote>
</div></div><br>_________________________________________________________________________<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.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" target="_blank">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></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></div></div>