For your notes, you will also have to make this consideration for your match-text parameter in PARSELINE events to handle the trailing LF in outbound messages, as well as any colons in either event. The convenient solution is the single character questionmark wildcard.

As in here.
Code:
On *:PARSELINE:out:CAP REQ ?invite-notify?: parseline -ot
;first '?' represents a colon, second '?' represents an $LF


Well. At least I won lunch.
Good philosophy, see good in bad, I like!