there is a syntax error here. peaplo are having issues with that example on stackoverflow
the correct param is exten not extension.