Updating Transfer Rule for CallHandler

Version 1
    This document was generated from CDN thread

    Created by: Shadan Saniepour Esfahani on 24-02-2010 05:08:15 PM
    Greetings experts
     
    I need to update the transfer rules for callhandlers. I tried doing the following:
     
    PUT  [url=https://<server>/vmrest/handlers/callhandlers/<callhandlerobjectid>/transferoptions/Alternate]https://<server>/vmrest/handlers/callhandlers/<callhandlerobjectid>/transferoptions/Alternate
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <TransferOption>
       <Action>1</Action>
       <Extension>646</Extension>
    </TransferOption>
     
    But even after executing this, the Action does not change to 1 (it stays at 0). I also tried "POST" but same result. Would you kindly advise? Really appreciate your help!
    Best regards
    Shadan

    Subject: RE: Updating Transfer Rule for CallHandler
    Replied by: David Wanagel on 25-02-2010 11:19:56 AM
    There is a piece of code in the transfer option logic that requires that enabled have a value.  Try setting the transfer option enabled field to true (or false),
     
    -Dave

    Subject: RE: Updating Transfer Rule for CallHandler
    Replied by: Shadan Saniepour Esfahani on 26-02-2010 06:47:47 PM
    Thanks for clarifying David!
    Best regards
    Shadan