Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

For Microsoft SIP Processing Language (MSPL) script applications, load the application manifest manually using the Microsoft Management Console. See the section "Adding Script-Only Applications" in the Microsoft Office Communications Server 2007 Administration Guide for more information.

Script-only applications cannot be loaded directly through WMI.

For SIP managed code applications, load the application manifest using the ApplicationManifest class, and compile the manifest by calling the ApplicationManifest.Compile method, as illustrated in the following code:

ResourceManager myResourceManager = new ResourceManager(MyApplicationType);
string appManifestXml = myResourceManager.GetString("appManifest");

ApplicationManifest myAppManifest = ApplicationManifest.CreateFromString(appManifestXml);
try {
  myAppManifest.Compile();
}
catch (CompilerErrorException cee) {
  Console.WriteLine("Failed to compile.");
  foreach (string message in cee.ErrorMessages) {
      Console.WriteLine(message);
  }
  return;
}
Dim myResourceManager As New ResourceManager(MyApplicationType)
Dim appManifestXml As String = myResourceManager.GetString("appManifest")

Dim myAppManifest As ApplicationManifest = ApplicationManifest.CreateFromString(appManifestXml)
Try
    myAppManifest.Compile()
Catch cee As CompilerErrorException
    Console.WriteLine("Failed to compile.")
Dim message As String
    For Each message In cee.ErrorMessages
          Console.WriteLine(message)
    Next
    Return
End Try

The compiled application manifest is presented to the server agent, which uses the application attributes along with the rules defined in the MSPL message filter to dispatch only those SIP messages that the application is designed to process. All other message are proxied, or dropped (if so specified).

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.