reject call attempts when gatekeeper is configured but not registered

(closes issue ASTERISK-21800)
Reported by: Dmitry Melekhov
Patches:
        ASTERISK-21800-1.patch
Tested by: Dmitry Melekhov
........

Merged revisions 390181 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 390223 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/11@390228 f38db490-d61c-443f-a65b-d21fe96a405b
remove unnecessary declarations
(issue ASTERISK-21800)



git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/11@390229 f38db490-d61c-443f-a65b-d21fe96a405b