fax tut noch nicht, weil attachments nicht richtig weitergegeben werden
authorSandro Knauß <knauss@netzguerilla.net>
Thu, 04 Nov 2010 22:00:21 +0100
changeset 59 642098115855
parent 58 fb161058bcab
child 60 5ca3aa8d75e1
fax tut noch nicht, weil attachments nicht richtig weitergegeben werden
iro/anbieter/sipgate.py
--- a/iro/anbieter/sipgate.py	Thu Nov 04 21:58:59 2010 +0100
+++ b/iro/anbieter/sipgate.py	Thu Nov 04 22:00:21 2010 +0100
@@ -53,7 +53,8 @@
     def sendFAX(self,fax,recipients):
         """send the PDF file $fax  to $recipients"""
         logger.debug('sipgate.sendFAX(%s,%s)'%(fax,  str(recipients)))
-        pdf=open(fax.attachments[0],"rb")
+        logger.debug(fax.getAttachment(0));
+        pdf=open(fax.getAttachment(0),"rb")
         args={
                 "TOS" : "fax",
                 "Content" : base64.encodestring(pdf.read())