AnsweredAssumed Answered

Creating Trigger fails

Question asked by joergwesely on Sep 30, 2015
Latest reply on Oct 5, 2015 by joergwesely

Hi,

 

I'm trying to create a trigger for a UCCX application using the REST API on UCCX 10.6.1.10000-39.

This fails with HTTP Response 400 and this response:

 

<?xml version="1.0" encoding="UTF-8"?><apiErrors>

  <apiError>

    <errorData/>

    <errorMessage>

Exception Description: The object [null], of class [null], could not be converted to [class java.lang.String].

Internal Exception: java.lang.NullPointerException</errorMessage>

    <errorType>InvalidInput</errorType>

  </apiError>

</apiErrors>

 

I verified that the XML I'm sending contains exactly the same tags as the response received when issuing a GET request for an existing Trigger. This is also the same as documented in the UCCX Developer guide.

This is what I send:

 

<?xml version="1.0" encoding="UTF-8"?><trigger>

  <self rel="self" type="trigger" href="https://deberccx01.inserve.local/adminapi/trigger/5008002"/>

  <directoryNumber>5008002</directoryNumber>

  <locale>de_DE</locale>

  <application name="Netcloud_Sync">

    <refURL>https://deberccx01.inserve.local/adminapi/application/Netcloud_Sync</refURL>

  </application>

  <deviceName>TRG5008002</deviceName>

  <description>Netcloud Sync Trigger</description>

  <callControlGroup name="2">

    <refURL>https://deberccx01.inserve.local/adminapi/callControlGroup/2</refURL>

  </callControlGroup>

  <triggerEnabled>true</triggerEnabled>

  <maxNumOfSessions>10</maxNumOfSessions>

  <idleTimeout>5000</idleTimeout>

  <overrideMediaTermination>

    <dialogGroup name="0">

      <refURL>https://deberccx01.inserve.local/adminapi/dialogGroup/0</refURL>

    </dialogGroup>

  </overrideMediaTermination>

  <alertingNameAscii>Netcloud Sync</alertingNameAscii>

  <devicePool>DP-BER-UCCX</devicePool>

  <location>Hub_None</location>

  <partition>PT-DN-OWNNET</partition>

  <voiceMailProfile>None</voiceMailProfile>

  <callingSearchSpace>CSS-UCCX</callingSearchSpace>

  <callingSearchSpaceForRedirect>redirecting.party</callingSearchSpaceForRedirect>

  <presenceGroup>Standard Presence Group</presenceGroup>

  <forwardBusy>

    <forwardBusyVoiceMail>false</forwardBusyVoiceMail>

    <forwardBusyDestination/>

    <forwardBusyCallingSearchSpace>None</forwardBusyCallingSearchSpace>

  </forwardBusy>

  <display>Netcloud Sync</display>

  <externalPhoneMaskNumber/>

</trigger>

 

Any Idea what I'm doing wrong?

Outcomes