What error do u get exactly ?
U don't need or should pass resip to your do_dnslookup proc, since you use global on it.
U're missing a global on resip in your createlist proc.
Once you got it working, u'll need to use a wait just after calling dnslookup to wait until the resip variable is changed to continue and be able to write it in your file.
|