| author | Sandro Knauß <knauss@netzguerilla.net> |
| Thu, 04 Nov 2010 22:00:21 +0100 | |
| changeset 59 | 642098115855 |
| parent 58 | fb161058bcab |
| child 60 | 5ca3aa8d75e1 |
--- 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())