<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi guys.</div><div style="font-family:arial,sans-serif;font-size:13px">I know I've already asked this on the freeswitch-dev mailing list but since i still didn't get an answer, i'm sending it again, this time to the freeswitch-users ML too.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">I'm experiencing a weird behavior with the new FS 1.4. Everytime i call a python script in the dialplan after a reboot i always got an error similar to this:</div>
<div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><div>2014-08-18 07:03:26.341145 [ERR] mod_python.c:293 Error calling python script</div><div>2014-08-18 07:03:26.341145 [ERR] mod_python.c:164 Python Error by calling script "stable.disa": <type 'exceptions.AttributeError'></div>
<div>Message: 'PySwigObject' object has no attribute 'sleep'</div><div><br></div><div>This only happens with the first call after a restart. After that everything works fine.</div><div>I never saw this in FS 1.2</div>
<div><br></div></div></div><div style="font-family:arial,sans-serif;font-size:13px">This seem to happen only the first time mod_python is invoked and <u>session</u> object is used, no mater the script.The other python scripts will work after one (anyone) is used.</div>
<div style="font-family:arial,sans-serif;font-size:13px">As said before, after <u>session</u> object is accessed once, after a restart (giving back the error), everything starts working again.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div style="font-family:arial;font-size:small">Any ideas on why?</div><div style="font-family:arial;font-size:small">Thanks.</div><div style="font-family:arial;font-size:small">
<br></div><div style="font-family:arial;font-size:small"><b><u>Note:</u></b> I'm using FS Version 1.4.8 64bit</div></div><div><p><font color="#1f497d" face="'Trebuchet MS', sans-serif">--</font></p><p><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)">Nuno Miguel Reis</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"> | <b>Unified Communication</b></span><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"> Systems</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif"></span><span style="font-size:10pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
</span></p><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br></span><b><span style="font-size:9pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"><a href="http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:rgb(31,73,125)">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)"></span></a></b><p>
<span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>
<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:'Times New Roman'" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Nuno Reis</b> <span dir="ltr"><<a href="mailto:nreis@wavecom.pt">nreis@wavecom.pt</a>></span><br>Date: Mon, Aug 18, 2014 at 7:12 AM<br>
Subject: mod_python always gives an error at first dialplan call<br>To: <a href="mailto:freeswitch-dev@lists.freeswitch.org">freeswitch-dev@lists.freeswitch.org</a><br><br><br><div dir="ltr">Hi guys.<div><br></div><div><br>
</div><div><div><p><font color="#1f497d" face="'Trebuchet MS', sans-serif">--</font></p>
<p><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)">Nuno Miguel Reis</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"> | <b>Unified Communication</b></span><b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"> Systems</span></b><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif"></span><span style="font-size:10pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
</span></p><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br>
T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:'Trebuchet MS',sans-serif;color:rgb(19,55,112)"><br></span><b><span style="font-size:9pt;font-family:'Trebuchet MS',sans-serif;color:rgb(31,73,125)"><a href="http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:rgb(31,73,125)">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:rgb(31,73,125)"></span></a></b><p>
<span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>
<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:'Times New Roman'" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div>
</div></div>
</div><br></div>