Recorded merge of revisions 402468 from http://svn.asterisk.org/svn/asterisk/branches/1.8

........
chan_sip: notify dialog info ignores presentation indicator in callerid

The presentation indicator in a callerid (e.g. set by dialplan function
Set(CALLERID(name-pres)= ...)) is not checked when SIP Dialog Info Notifies
are generated during extension monitoring.  Added a check to make sure the
name and/or number presentations on the callee (remote identity) are set to
allow.  If they are restricted then "anonymous" is used instead.

(closes issue AST-1175)
Reported by: Thomas Arimont
Review: https://reviewboard.asterisk.org/r/2976/


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