res_pjsip,compat: INFINITY and NAN undefined

On some systems the values for INFINITY and NAN are not defined thus causing
a build error on those systems.  Added definitions for those if they had
not previously been defined.

(closes issue ASTERISK-23056)
Reported by: capouch
Patches:
     inf-nan-patch.txt uploaded by capouch (license 6564)


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