res_pjsip_logger: Add the ASTERISK_FILE_VERSION macro

Registering yourself with the Asterisk core is the nice thing to do, even
when you're a logging module.


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@404855 f38db490-d61c-443f-a65b-d21fe96a405b
cel_pgsql: module not correctly reloading

Upon reload the module unconditionally "unloaded" the module (freeing memory
and setting pointers to NULL) and then when attempting a "load" if the config
file had not changed then nothing would be reinitialized.

By moving the "unload" to occur conditionally (reload only) after an attempted
configuration load, but before module "loading" alleviates the issue. The module
now loads/unloads/reloads correctly.

(closes issue ASTERISK-22871)
Reported by: Matteo
........

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

Merged revisions 404858 from http://svn.asterisk.org/svn/asterisk/branches/11


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