def send_to_fs(self, imsi, sender_id, sender_name, body): conf = vbts_util.get_conf_dict() esl = ESLconnection(conf['fs_esl_ip'], conf['fs_esl_port'], conf['fs_esl_pass']) if esl.connected(): e = esl.api("python VBTS_FacebookSMS_Callback %s|%s|%s|%s" %\ (imsi, sender_id, sender_name, body)) else: web.log.error("Freeswitch is not running")
def do_send(to, from_, body): # do the actual send conf = vbts_util.get_conf_dict() twilio_ic = vbts_twilio.twilio_ic(conf) try: if twilio_ic.send(to, from_, body): return True else: return False except: return False
def __init__(self): self.conf = vbts_util.get_conf_dict() self.fs_ic = vbts_fs.freeswitch_ic(self.conf) self.tariff_type = "incoming_sms"
def __init__(self): self.ic = None self.conf = vbts_util.get_conf_dict() self.worker = self.registration_worker self.fs_ic = vbts_fs.freeswitch_ic(self.conf)
def __init__(self): self.conf = vbts_util.get_conf_dict() self.worker = self.sms_worker