On Fri, 28 May 2004, gaillac harry wrote:
hello,
I'm sorry but i don't understand "script should be indented".
What I meant was: put a tab before every line, otherwise the part of the
script is also executed if the if condition is true.
Stefan
for example I create a mailbox 1000 I dial it
according to ivr.py script
"if caller==callee" is true "else" a wav file is recorded because of
caller is not owner of 1000 mailbox and we wish it will be mailed .
Is this good to get the recorded message accordind to
ivr.record(messages_path + callee + "/" + callee + str(ivr.getTime())???
fp = open(wav_path + callee + ".wav", 'rb')
# if user is not user of mailbox
# user can left message
else :
print "play invitation"
ivr.play(wav_path + "ivr_invitation.wav")
print "record message"
if os.path.isdir(messages_path + callee) != True:
os.mkdir(messages_path + callee)
ivr.record(messages_path + callee + "/" + callee + str(ivr.getTime())
+ ".wav", 60)
Regards
Harry
Le jeu 27/05/2004 à 19:36, Stefan Sayer a écrit :
Hello Harry,
i didnt test it either, but there are at least two things to be corrected:
msg['To'] = 'callee'
should be
msg['To'] = callee
and the whole block starting from # Create the container (outer) email
message. and ending at the end of the script should be indented otherwise a
mail will be sent if caller == callee
Stefan
Am Donnerstag, 27. Mai 2004 14:58 schrieb gaillac harry:
> Hi,
>
> here is my python script in order to send emails.
>
> For example i call my mailbox to listen messages if I'm offline i wish
> to received a voicemail.
> I don't know how to get the new wav recorded messages (path) from the
> the mailbox.
>
> I'm not a devolopper so I need help.
>
> I don't test it because of I have to update Mysql !!
>
> I do hope somebody could help me (and ser users) about this feature.
>
> Regards
>
> Harry