Hi,
I think I had contacted you earlier also for the similar work posting. Your budget is actually too low for 40 cameras. We can do it for at least $100. You must have a lot of RAM on the server, at least 16GB if Wowza is also on the same server. Otherwise, buffering/choking will happen.
let me know if interested.
Sincerely,
Inderjeet