← Back to team overview

wikipbx-dev team mailing list archive

Re: get_fs_connections() returning nothing

 

Hi,

Do you actually have event socket configured in wikipbx?

from wikipbx.wikipbxweb.models import *
print EventSocketConfig.objects.all()

You should have a list with a single object printed. That object should have same IP/port that your freeswitch server listens on for mod_event_socket connections. If everything is fine, try connecting to freeswitch with something like:

import ESL
socket = EventSocketConfig.objects.get()
conn = ESL.ESLconnection(
            str(socket.listen_ip), str(socket.listen_port),
            str(socket.password))
print conn.sendRecv("api show channels").getBody()

Stas.



Follow ups

References