<?xml version="1.0"?>
<webappconfig>
    <config>
        <!-- The webappId is a string of at least 16 characters and is passed to the Gateway to identify
            this application instance. The Gateway also needs to contain this ID in its list of configured 
            application IDs -->
        <webappId>CLIENTSDKSAMPLE-A8C1D</webappId>

    	<!-- The gwUrl is the URL that we connect to the Gateway on to manage sessions for the client. 
     	    This needs to have the correct hostname or IP address specified. To make a secure connection
    	    change the scheme to be https and update the port as well. Alternatively, if the app is deployed
            on the same server as the gateway, the host and/or port can be omitted (http:/gateway) and the
            address/port will be derived.
        -->
    	<gwUrl>https:/gateway</gwUrl>
    	
    	<!-- The externalgwUrl is the external URL that we connect to the Gateway on to manage sessions for the client. 
     	    This needs to have the correct hostname or IP address specified. To make a secure connection
    	    change the scheme to be https and update the port as well. Alternatively, if the app is deployed
            on the same server as the gateway, the host and/or port can be omitted (http:/gateway) and the
            address/port will be derived.
        -->
    	<!--<externalGwUrl>https:/gateway</externalGwUrl>-->
    	
    	
    	<!-- This is the JSON configuration that is passed to the Client SDK libraries for their 
    	    stun server configuration. The following example is a single stun server 
    	<stunServers>[{"url": "stun:stun.l.google.com:19302"}]</stunServers>
    	-->
    	
    	<!-- No Stun Servers would be configured as follows which is the default example. -->
    	<stunServers></stunServers>
    	
    	
    	<!-- a list of Stun Servers would be configured as follows
    	<stunServers>[{"url": "stun:stun.l.google.com:19302"},{"url": "stun:otherstunserver:1234"}]</stunServers>
    	-->   	
    </config>

    <!-- Voice & Video Only -->
    <user>
        <name>voicevideo</name>
        <password>123</password>
        <inboundCallingEnabled>true</inboundCallingEnabled>
        <outboundDestinationPattern>all</outboundDestinationPattern>
        <sipUser>1001</sipUser>
        <sipDisplayName>User1</sipDisplayName>
        <sipDomain>REM_SERVER_ADDRESS</sipDomain>
        <authUser>1001</authUser>
        <authRealm>REM_SERVER_ADDRESS</authRealm>
        <authPass>123456</authPass>
        <uuiData>48656c6c6f</uuiData>
    </user>

    <!-- IM&P Only -->
    <user>
        <name>impresence</name>
        <password>123</password>
        <sipPresenceUser>user1</sipPresenceUser>
        <sipPresenceDomain>REM_SERVER_ADDRESS</sipPresenceDomain>
    </user>

    <!-- AED Only -->
    <user>
        <name>aed</name>
        <password>123</password>
        <aedMaxMessageAndUpload>1024</aedMaxMessageAndUpload>
        <aedMaxData>65536</aedMaxData>
        <aedSessionIdRegex>.*</aedSessionIdRegex>
    </user>
    <user>
        <name>aed2</name>
        <password>123</password>
        <aedMaxMessageAndUpload>1024</aedMaxMessageAndUpload>
        <aedMaxData>65536</aedMaxData>
        <aedSessionIdRegex>.*</aedSessionIdRegex>
    </user>

    <!-- IM&P, Voice & Video and AED -->
    <user>
        <name>all</name>
        <password>123</password>
        <inboundCallingEnabled>true</inboundCallingEnabled>
        <outboundDestinationPattern>all</outboundDestinationPattern>
        <sipUser>1002</sipUser>
        <sipDisplayName>User2</sipDisplayName>
        <sipDomain>REM_SERVER_ADDRESS</sipDomain>
        <authUser>1002</authUser>
        <authRealm>REM_SERVER_ADDRESS</authRealm>
        <authPass>123456</authPass>
        <sipPresenceUser>user2</sipPresenceUser>
        <sipPresenceDomain>REM_SERVER_ADDRESS</sipPresenceDomain>
        <aedMaxMessageAndUpload>1024</aedMaxMessageAndUpload>
        <aedMaxData>65536</aedMaxData>
        <aedSessionIdRegex>.*</aedSessionIdRegex>
    </user>
  
    </user>
</webappconfig>
