res_pjsip_messaging: potential for field values in from/to headers to be missing

Added in ability to specify display name format ("name" <sip:name@ipaddr:port>)
for a given URI and made sure it was fully propagated to the outgoing message.
Also made it so outoing messages in res_pjsip always send as "sip:".

(closes issue ASTERISK-22924)
Reported by: Anthony Messina
Review: https://reviewboard.asterisk.org/r/3094/


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@405266 f38db490-d61c-443f-a65b-d21fe96a405b
Fix chan_dahdi copile issue in dev-mode.

Error "unused variable i in dahdi_create_channel_range" when compiling
in dev-mode. Small restructure to dahdi_create_channel_range to move 
the for(x) loop and int i,x to a block within the IFDEF.


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