One of the samples in the SDK is the content notification sample. This is a very basic sample and a good starting point for learning MSPL script and how to install them in your environment.
For a detailed walkthrough watch the video below:
You will find the samples in:
c:\Program Files\Microsoft Lync Server 2010\SDK\Samples\ContentModification
The .am (Application Manifest) file is filtering all SIP traffic where this script is installed and its looking for SIP methods INVITE (http://www.voip-info.org/wiki/view/SIP+method+invite) and Message (http://www.voip-info.org/wiki/view/SIP+method+message). If this method filter is triggered it then looks for the work echo in the message body.
When it finds on of these SIP messages it will append the string “(echo). to the existing message body.![]()
If the sample is installed correctly you will see the following response in your Lync Client.