cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1225
Views
5
Helpful
2
Replies

use axl to add multiple phones

james25091
Level 1
Level 1

I am trying to use the following request to add a phone which works for the first phone but not for the second.  Any ideas on what I am doing wrong?

 

   <soapenv:Header/>
   <soapenv:Body>
      <ns:addPhone sequence="1">
         <phone ctiid="?">
            <name>SEPE8B7480316D7</name>
            <description>John Smith - Office</description>
            <product>Cisco 6961</product>
            <class>Phone</class>
            <protocol>SCCP</protocol>
            <protocolSide>User</protocolSide>
            <callingSearchSpaceName uuid="?">Generated_CSS_I_E</callingSearchSpaceName>
            <devicePoolName uuid="?">Default</devicePoolName>
            <lines>
               <line ctiid="?">
                  <index>1</index>
                  <label>?</label>
                  <display>?</display>
                  <dirn uuid="FB67F928-11EF-9500-58EA-DFC6BA9BC042">
                  </dirn>
                  <ringSetting>Ring</ringSetting>
                  <consecutiveRingSetting>Use System Default</consecutiveRingSetting>
                  <e164Mask></e164Mask>
                  <mwlPolicy>Use System Policy</mwlPolicy>
               </line>
            </lines>
            <phoneTemplateName uuid="?">Standard 6961 SCCP</phoneTemplateName>
            <speeddials>
               <speeddial>
                  <dirn>919995559999</dirn>
                  <label>My Broker</label>
                  <index>1</index>
               </speeddial>
            </speeddials>
            <services>
               <service>
                  <telecasterServiceName uuid="?">Demo</telecasterServiceName>
                  <name>Demo</name>
               </service>
            </services>
            <softkeyTemplateName uuid="?">Standard User</softkeyTemplateName>
            <enableExtensionMobility>false</enableExtensionMobility>
         </phone>
      </ns:addPhone>
<ns:addPhone sequence="2">
         <phone ctiid="?">
            <name>SEPE8B7480316D7</name>
            <description>John Smith - Office</description>
            <product>Cisco 6961</product>
            <class>Phone</class>
            <protocol>SCCP</protocol>
            <protocolSide>User</protocolSide>
            <callingSearchSpaceName uuid="?">Generated_CSS_I_E</callingSearchSpaceName>
            <devicePoolName uuid="?">Default</devicePoolName>
            <lines>
               <line ctiid="?">
                  <index>1</index>
                  <label>?</label>
                  <display>?</display>
                  <dirn uuid="FB67F928-11EF-9500-58EA-DFC6BA9BC042">
                  </dirn>
                  <ringSetting>Ring</ringSetting>
                  <consecutiveRingSetting>Use System Default</consecutiveRingSetting>
                  <e164Mask></e164Mask>
                  <mwlPolicy>Use System Policy</mwlPolicy>
               </line>
            </lines>
            <phoneTemplateName uuid="?">Standard 6961 SCCP</phoneTemplateName>
            <speeddials>
               <speeddial>
                  <dirn>919995559999</dirn>
                  <label>My Broker</label>
                  <index>1</index>
               </speeddial>
            </speeddials>
            <services>
               <service>
                  <telecasterServiceName uuid="?">Demo</telecasterServiceName>
                  <name>Demo</name>
               </service>
            </services>
            <softkeyTemplateName uuid="?">Standard User</softkeyTemplateName>
            <enableExtensionMobility>false</enableExtensionMobility>
         </phone>
      </ns:addPhone>
   </soapenv:Body>
</soapenv:Envelope>
1 Accepted Solution

Accepted Solutions

dstaudt
Cisco Employee
Cisco Employee
Only one phone can be added per <addPhone> request.
The "sequence" attribute is available so applications can match request/response messages: application includes a sequence value unique for each request (e.g. an incrementing number), and AXL returns the sequence value back in the response, so that the app can match them up (especially in the case where multiple requests may be in flight simultaneously.)

View solution in original post

2 Replies 2

dstaudt
Cisco Employee
Cisco Employee
Only one phone can be added per <addPhone> request.
The "sequence" attribute is available so applications can match request/response messages: application includes a sequence value unique for each request (e.g. an incrementing number), and AXL returns the sequence value back in the response, so that the app can match them up (especially in the case where multiple requests may be in flight simultaneously.)

thedd
Level 1
Level 1

Split it in two seperate AXl Requests.

Make a loop to work on after another.

This should help.

 

Otherwies what's your reutrned Error Message?