cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1060
Views
6
Helpful
5
Replies

Updating the Recording Option and Profile on Line using AXL (12.5)

robert.svidron
Level 1
Level 1

How do i update the recording option (Automatic Call Recording Enabled) and Recording Profile (QM_Call_Recording) on the line?

The XML im passing is:

   <soapenv:Header/>
   <soapenv:Body>
      <ns:updateLine sequence="?">
         <pattern>{directoryNumber}</pattern>
         <recordingProfileName>QM_Call_Recording</recordingProfileName>
         <recordingFlag>Automatic Call Recording Enabled</recordingFlag>
      </ns:updateLine>
   </soapenv:Body>
</soapenv:Envelope>
 
This does not work for the UpdateLine function. Any help for updating these two would be appreciated.
1 Accepted Solution

Accepted Solutions

Yes, but that is a "line appearance" setting, not a DN/line setting. Here is a snippet where I updated it using updatePhone as @npetrele suggested.

                single_line = dphone['return']['phone']['lines']['line'][0]
                update_line_appearances = dphone['return']['phone']['lines']
                update_line_appearances.line[0].displayAscii = ipcc_line.displayAscii
                update_line_appearances.line[0].e164Mask = ipcc_line.e164Mask
                update_line_appearances.line[0].maxNumCalls = max_calls
                update_line_appearances.line[0].busyTrigger = busy_trigger
                update_line_appearances.line[0].recordingProfileName = recording_profile
                update_line_appearances.line[0].display = ipcc_line.display
                update_line_appearances.line[0].monitoringCssName = monitor_css
                update_line_appearances.line[0].recordingFlag = ipcc_line.recordingFlag
                update_line_appearances.line[0].recordingMediaSource = ipcc_line.recordingMediaSource

                if ReadOnly == False:
                    # update destination phone line appearances
                    pupd = destination_axl.updatePhone(name=csf_dev,lines=update_line_appearances)
                    if Debug:
                        print('pupd',pupd)

View solution in original post

5 Replies 5

npetrele
Cisco Employee
Cisco Employee

That's not an option in updateLine. I think you want updatePhone. 

robert.svidron
Level 1
Level 1

I'm looking specifically to set this on the line

robertsvidron_0-1675483699354.png

 

Yes, but that is a "line appearance" setting, not a DN/line setting. Here is a snippet where I updated it using updatePhone as @npetrele suggested.

                single_line = dphone['return']['phone']['lines']['line'][0]
                update_line_appearances = dphone['return']['phone']['lines']
                update_line_appearances.line[0].displayAscii = ipcc_line.displayAscii
                update_line_appearances.line[0].e164Mask = ipcc_line.e164Mask
                update_line_appearances.line[0].maxNumCalls = max_calls
                update_line_appearances.line[0].busyTrigger = busy_trigger
                update_line_appearances.line[0].recordingProfileName = recording_profile
                update_line_appearances.line[0].display = ipcc_line.display
                update_line_appearances.line[0].monitoringCssName = monitor_css
                update_line_appearances.line[0].recordingFlag = ipcc_line.recordingFlag
                update_line_appearances.line[0].recordingMediaSource = ipcc_line.recordingMediaSource

                if ReadOnly == False:
                    # update destination phone line appearances
                    pupd = destination_axl.updatePhone(name=csf_dev,lines=update_line_appearances)
                    if Debug:
                        print('pupd',pupd)

Do you have documentation on this? I do not see update line appearance as part of the Cisco AXL 12.5 schema documentation. 

I attempted to use update phone with the line update in the SOAP XML below but did not work:

 

data = f"""
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:updatePhone sequence="?">
         <!--You have a CHOICE of the next 2 items at this level-->
         <name>SEP{NUMBER}</name>
         <lines>
            <line>
               <index>1</index>
               <recordingFlag>Automatic Call Recording Enabled</recordingFlag>
               <monitoringCSSName>DEFAULT_CSS</monitoringCSSName>
               <recordingProfileName>QM_Call_Recording</recordingProfileName>
            </line>
         </lines>
         <callingSearchSpaceName>DEFAULT_CSS</callingSearchSpaceName>
         <commonDeviceConfigName>Standard UCCX Agent with Music on Hold</commonDeviceConfigName>
        <mediaResourceListName>DEFAULT</mediaResourceListName>
        <phoneTemplateName>Standard Client Services Framework</phoneTemplateName>
        <primaryPhoneName>SEP{NUMBER}</primaryPhoneName>
        <ownerUserName>{NUMBER}</ownerUserName>
      </ns:updatePhone>
   </soapenv:Body>
</soapenv:Envelope>
 
 

It is definitely in there. https://developer.cisco.com/docs/axl-schema-reference/ 

Look for "updatePhone".

Edit: I am using the Python Zeep libraries, not direct XML.