Bans on unsolicited calls, or do-not-call lists, can be effective for the former, as it moves the behavior from being legal to being illegal, while for the latter, they are already breaking laws, and technical measures or enforcement are more important.
Because I'm on the DNC list in the US, I don't get many/any legal telemarketing calls.
The political stuff is really annoying because very little of it is directly from the campaigns themselves. It's all push polls and PACs and whatnot.