[Freeswitch-users] mod_python error everytime session is invoked for the first time right after a freeswitch start

Nuno Reis nreis at wavecom.pt
Tue Sep 23 06:44:14 MSD 2014


Hi guys.

I've reported this before and i can tell that it is still happening in the
latest v1.4.

How reproduce:


   1. just create a dialplan that calls a python script
   2. dial that dialplan entry


Example code (works with anything that invokes *session*):

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import
# http://docs.python.org/whatsnew/pep-328.html

def handler(session, args):
        freeswitch.consoleLog("notice", "Testing123...")
        freeswitch.consoleLog("notice", "Dumping current CDR INFO")
        freeswitch.consoleLog("info", str(session.getXMLCDR()))
        freeswitch.consoleLog("notice", "The END!")


mod_pyhton crashes everytime the script is called right after a freeswitch
start (the very first time session is invoked inside a mod_python python
script).
After the first time (error), everything starts to work just fine.
This doesn't happen in e6b8b3e4f2deac73547bc9b9a2cb3e1d3147d101 from
v1.2.stable

Should i open a jira on this?

--

*Nuno Miguel Reis* | *Unified Communication** Systems*
M. +351 913907481 | nreis at wavecom.pt
WAVECOM-Soluções Rádio, S.A.
Cacia Park | Rua do Progresso, Lote 15
3800-639 AVEIRO | Portugal
T. +351 309 700 225 | F. +351 234 919 191
*GPS
<http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88>
| www.wavecom.pt <http://www.wavecom.pt/>** <http://www.wavecom.pt/>*

[image: Description: Description: WavecomSignature]
<http://www.wavecom.pt/pt/wavecom/premios.php>

[image: Publicity] <http://www.wavecom.pt/pt/mail_eventos.php>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140923/d32b5205/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 16423 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140923/d32b5205/attachment-0001.png 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list