# HG changeset patch # User Sandro Knauß # Date 1288904421 -3600 # Node ID 642098115855fd609ae4aac5d767faf7ef9002f2 # Parent fb161058bcabe01febae414e87901c23709e2f48 fax tut noch nicht, weil attachments nicht richtig weitergegeben werden diff -r fb161058bcab -r 642098115855 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())