Cannot create a user with a Phone System other than PhoneSystem

Version 1
    This document was generated from CDN thread

    Created by: Shadan Saniepour Esfahani on 25-10-2010 05:14:32 PM
    Greetings experts
    I have created a phone system on my Unity Connection for my customer and would like to use that when I create a user. But my created users, using CUPI interface, always get the system default Phone System (i.e., PhoneSystem), no matter what I put for the PhoneSystemURI.
     
    I am using the following request to create a user with Phone System
     
    POST  [url=https://<server>/vmrest/users]https://<server>/vmrest/users
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
       <User>
           <Alias>jdoe</Alias>
           <DtmfAccessId>12345</DtmfAccessId>
           <FirstName>John</FirstName>
           <LastName>Doe</LastName>
           <DisplayName>John Doe</DisplayName>
            <PhoneSystemURI>/vmrest/phonesystems/3486d6b3-1b98-4538-98a7-ea89a4758d74</PhoneSystemURI> 
    <CosObjectId>8e84d204-59de-4bd5-8c59-ca72cd01b825</CosObjectId>
    <SkipPasswordForKnownDevice>true</SkipPasswordForKnownDevice>
    <IsSetForVmEnrollment>false</IsSetForVmEnrollment>
    <IsVmEnrolled>false</IsVmEnrolled>
    <RouteNDRToSender>false</RouteNDRToSender>
        </User>
     
    The URI of the system default phone system (i.e, PhoneSystem) is:
    /vmrest/phonesystems/5c4e3385-52f1-4ed9-9bd4-43234f6b129b
    And the URI for the phone system I have created (i.e., TEST UC Pilot cluster) is:
    /vmrest/phonesystems/3486d6b3-1b98-4538-98a7-ea89a4758d74

    But no matter which URI I put for the <PhoneSystemURI> in my POST request, I always see the first URI in my created user
    Please advise! Any help is greatly appreciated!!
    Thanks and best regards
    Shadan

    Subject: RE: Cannot create a user with a Phone System other than PhoneSystem
    Replied by: PATRICK NOWICKI on 26-10-2010 04:20:10 PM
    Hi Shadan,
    I think that you need to use the tag <MediaSwitchObjectId> with the obj id of the phone system, instead of the URI. I just tested this on my system and it worked for me.
     
    Hope that helps!
    -Patrick

    Subject: RE: Cannot create a user with a Phone System other than PhoneSystem
    Replied by: Shadan Saniepour Esfahani on 26-10-2010 05:12:11 PM
    Thanks so much Patrick!!! It worked!!!
    Best regards
    Shadan