chan_misdn: Fix compile error after CDR merge.

git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@392053 f38db490-d61c-443f-a65b-d21fe96a405b
chan_vpb: Fix compile error and __ast_channel_alloc() prototype const inconsistency.

git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@392073 f38db490-d61c-443f-a65b-d21fe96a405b
Fix build warnings related to printf/scanf of tv_usec.

The type of tv_usec is suseconds_t. On Linux, this is usually a long int, but
the specification is actually pretty lax on what it might actually be. And,
sadly, there's no printf/scanf width specifier for suseconds_t. So it could
bit an int or a long, but there's not a great way to tell which it is.

This patch fixes scanf by reading into a long temporary variable that's then
stored into the tv_usec. It fixes printf by casting the tv_usec to a long
first.

This patch also adds some missing width specifiers for some debug statements,
which would cause ".000001" to be displayed at ".1".


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@392076 f38db490-d61c-443f-a65b-d21fe96a405b