Пример #1
0
    def Send(self, headers, data_parts, extra_info, async_cb, async_eb):
        """
        Sends a MMS and returns the Message-Id

        :param headers: MMS headers
        :param data_parts: data parts of the MMS
        :param extra_info: Dict with MMSC url, port, etc.
        """
        mms = dbus_data_to_mms(headers, data_parts)
        d = self.sconn.send_mms(mms, extra_info)
        d.addCallback(lambda mms: mms.headers['Message-Id'])
        return self.add_callbacks(d, async_cb, async_eb)
Пример #2
0
 def send_mms(self, mms, extra_info):
     debug("MAL::send_mms: %s" % mms)
     d = self.wrappee.do_send_mms(dbus_data_to_mms(mms), extra_info)
     return d