Comment Inline.
# 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)
You may want to try:
message_file = messages_path + callee + "/" + callee +
str(ivr.getTime()) + ".wav", 60)
ivr.record(message_file)
fp = open(message_file, "rb")
ivr.record(messages_path + callee + "/" +
callee +
str(ivr.getTime())
+ ".wav", 60)
Regards
Harry