else : Dialpad.wgetcmd = Dialpad.wgetcmd + Dialpad.phonenumber returnval = 0 # Remove any existing output file... if os.path.isfile(wgetoutput) : os.unlink(wgetoutput) child_stdout, child_stdin, child_stderr = os.popen3(Dialpad.wgetcmd) timestamp=time.asctime(time.localtime()) stderr=child_stderr.read() [/code] Here is the fix Code: else : returnval = 0 # Remove any existing output file... if os.path.isfile(wgetoutput) : os.unlink(wgetoutput) child_stdout, child_stdin, child_stderr = os.popen3(Dialpad.wgetcmd + Dialpad.phonenumber) timestamp=time.asctime(time.localtime()) stderr=child_stderr.read() You see I removed the one line and modified the popen3 command. This should keep the wgetcmd string clean. I have tested this chage and it works.
else : returnval = 0 # Remove any existing output file... if os.path.isfile(wgetoutput) : os.unlink(wgetoutput) child_stdout, child_stdin, child_stderr = os.popen3(Dialpad.wgetcmd + Dialpad.phonenumber) timestamp=time.asctime(time.localtime()) stderr=child_stderr.read()