cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
136
Views
5
Helpful
2
Replies
Highlighted
Beginner

use axl to add multiple phones

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>
Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: use axl to add multiple phones

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
Cisco Employee

Re: use axl to add multiple phones

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

Beginner

Re: use axl to add multiple phones

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?

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards
This widget could not be displayed.