locked
Configuration problems with ucma 3.0 and lync 2010 RRS feed

  • Question

  •  

    <?xml version="1.0"?>
    <configuration>
      <configSections>
        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
      </configSections>

      <appSettings>
        <add key="LyncServer" value="yourlyncserver"/>
        <add key="LyncServerPort" value="10607"/>
        <!-- presence -->
        <add key="ApplicationId" value="urn:application:lyncpresence"/>
        <add key="ApplicationName" value="LyncPresence"/>
        <add key="TrustedContactURI" value="sip:lyncpresence@orbitone.com"/>
        <!-- chat -->
        <add key="ChatUserSip" value="sip:lyncbot@yourdomain.com"/>
        <add key="ChatUserName" value="yourlinkbotusername"/>
        <add key="ChatUserPass" value="yourlinkbotpass"/>
        <add key="ChatUserDomain" value="yourdomain"/>
        <add key="ChatTimeoutSeconds" value="60"/>
      </appSettings>

      <system.serviceModel>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
        <behaviors>
          <endpointBehaviors>
            <behavior name="webHttpBehavior">
              <webHttp />
            </behavior>
          </endpointBehaviors>
          <serviceBehaviors>
            <behavior name="">
              <serviceMetadata httpsGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <bindings>
          <webHttpBinding>
            <binding name="webHttpBindingWithJsonP" crossDomainScriptAccessEnabled="true" >
              <security mode="Transport" />
            </binding>
          </webHttpBinding>
        </bindings>
        <services>
          <service name="Lync.Widget.Service.Service">
            <endpoint binding="webHttpBinding"
                      bindingConfiguration="webHttpBindingWithJsonP" contract="Lync.Widget.Service.IService"
                      behaviorConfiguration="webHttpBehavior"/>
          </service>
        </services>
      </system.serviceModel>

      <system.web>
        <compilation debug="true" targetFramework="4.0" />
        <customErrors mode="Off"/>
      </system.web>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>

      <log4net>
        <appender name="FileAppender" type="log4net.Appender.FileAppender">
          <file value="log.txt" />
          <appendToFile value="false" />
          <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
          </layout>
        </appender>
        <appender name="ErrorFileAppender" type="log4net.Appender.FileAppender">
          <file value="errors.txt" />
          <appendToFile value="false" />
          <layout type="log4net.Layout.PatternLayout">
            <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
          </layout>
          <filter type="log4net.Filter.LevelRangeFilter">
            <levelMin value="ERROR" />
          </filter>
        </appender>
        <root>
          <appender-ref ref="FileAppender" />
          <appender-ref ref="ErrorFileAppender" />
        </root>
      </log4net>

    </configuration>

    Pls tell me the steps how to create applicationid,applicationname,trustedcontacturi and  lync port number...how i create this port number...how we identify lync server name...

    Also i dnt know chatusersip.chatusername,chatuserpass,chatuserdomain...is it the user in the lync.?if so how it works...there will be so many users in lync...

    i tried to create these configurations,but while running web service its showing eror,  endpoint is missing....is it because of problem with configuration?

    Pls check the code in codeplex....hope u will help me...

    I downloaded project chatwidget from codeplex,includes chating of website user and lync client.i have a  little confusion in web.config file,Here is the web.config file.
    Tuesday, July 26, 2011 6:09 AM

All replies

  • There is a good step-by-step walkthrough in George Durzi's posts here:

    http://blogs.claritycon.com/georgedurzi/2010/09/15/installing-ucma-3-0-and-creating-a-lync-server-2010-trusted-application-pool/

    http://blogs.claritycon.com/georgedurzi/2010/06/25/creating-a-ucma-3-0-trusted-application-and-endpoint

     

    For those other "chat user" settings, it looks like you need to enter the SIP URI, username, and password of a Lync user that should be used by the application to send and receive messages.

    Let me know if you have specific questions about the steps.


    Michael Greenlee | linkedin: http://www.linkedin.com/in/michaelgreenlee | blog: http://blog.greenl.ee
    Tuesday, July 26, 2011 1:57 PM
  • The instructions are also provided in the UCMA documentation and include the usage of the Topology Builder tool which makes things simpler - http://msdn.microsoft.com/en-us/library/gg448309.aspx
    -- How To Ask a Question: http://support.microsoft.com/kb/555375 -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
    Tuesday, July 26, 2011 3:48 PM
  • Hi,

    In web-config,i given '1' for application name(copied from  applicationid [urn:application:1])

     <!-- presence -->
        <add key="ApplicationId" value="urn:application:1"/>
        <add key="ApplicationName" value="1"/>
        <add key="TrustedContactURI" value="sip:lyncpresence@godu.co.in"/>

    Is it right or wrong?

     

    When i checked link given by u,i noticed that there is a term display name and legacyapplicationname..which one i have to choose for appplication name in web.config?

     

    Wednesday, July 27, 2011 4:43 AM