Administration XML Developer Forums

« Back to Administration XML Questions

CSS for device or Line ?

Combination View Flat View Tree View
Threads [ Previous | Next ]
Dear 
How can I get CSS for device or line by AXLAPISERVICE ?
 
GetPhoneReq phonename1 = new GetPhoneReq();
phonename1.Item = "SEPxxxxxxxxxxxx";
phonename1.ItemElementName = ItemChoiceType30.phoneName;
GetPhoneRes oGetPhoneRes = service.getPhone(phonename1);
XIPPhoneLines lines = oGetPhoneRes.@return.device.lines;
 
???
someone help me 
thank you 

Hello Alawi,

A css id will be available on a get line response, located on the node "shareLineAppearanceCSS", as shown below:

<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" />
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<axl:getLineResponse sequence="1234" xmlns:axl="http://www.cisco.com/AXL/API/6.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<return>
<directoryNumber uuid="{EBAC879C-88B7-7524-DE2B-7718519FA1D8}">
<pattern>2111</pattern>
<description>Ramal do Breno (Extension Mobility)</description>
<usage>Device</usage>
<routePartition uuid="{1795E016-5BCD-E480-2434-4D6AFFB9DF0B}" />
<aarDestinationMask />
<aarKeepCallHistory>true</aarKeepCallHistory>
<aarVoiceMailEnabled>false</aarVoiceMailEnabled>
<callForwardAll>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
</callForwardAll>
<callForwardBusy>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
</callForwardBusy>
<callForwardBusyInt>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
</callForwardBusyInt>
<callForwardNoAnswer>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
<duration>-1</duration>
</callForwardNoAnswer>
<callForwardNoAnswerInt>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
</callForwardNoAnswerInt>
<callForwardNoCoverage>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
</callForwardNoCoverage>
<callForwardNoCoverageInt>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
</callForwardNoCoverageInt>
<callForwardOnFailure>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
</callForwardOnFailure>
<callForwardAlternateParty>
<destination />
<duration>-1</duration>
</callForwardAlternateParty>
<callForwardNotRegistered>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
</callForwardNotRegistered>
<callForwardNotRegisteredInt>
<forwardToVoiceMail>false</forwardToVoiceMail>
<destination />
</callForwardNotRegisteredInt>
<autoAnswer>Auto Answer Off</autoAnswer>
<networkHoldMOHAudioSourceId>0</networkHoldMOHAudioSourceId>
<userHoldMOHAudioSourceId>0</userHoldMOHAudioSourceId>
<alertingName>Ramal-Breno-Alerting-EM</alertingName>
<asciiAlertingName>Ramal-Breno-ASCII-EM</asciiAlertingName>
<presenceGroup uuid="{AD243D17-98B4-4118-8FEB-5FF2E1B781AC}" />
<shareLineAppearanceCSS uuid="{B788D489-D34A-3272-F62D-8AA5D4E92927}" />
<patternPrecedence>Default</patternPrecedence>
<releaseCause>No Error</releaseCause>
<cfaCSSPolicy>Use System Default</cfaCSSPolicy>
</directoryNumber>
</return>
</axl:getLineResponse>
</SOAP-ENV:Body>

Alawi,

First thing you need is getPhone:

<!-- REQUEST -->
<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">
<SOAP-ENV:Body>
<axl:getPhone xmlns:axl=\"http://www.cisco.com/AXL/1.0\" xsi:schemaLocation=\"http://www.cisco.com/AXL/API/1.0 axlsoap.xsd\" sequence=\"1234\">
<phoneName>SEP0024C4453342</phoneName>
</axl:getPhone>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

<!-- RESPONSE -->
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<axl:getPhoneResponse sequence="1234" xmlns:axl="http://www.cisco.com/AXL/API/6.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<return>
<device ctiid="161" uuid="{7C3C49F5-E235-461D-B926-96475C24095A}">
<name>SEP0024C4453342</name>
<description>Auto 1047</description>
<product>Cisco 7961</product>
<model>Cisco 7961</model>
<class>Phone</class>
<protocol>SCCP</protocol>
<protocolSide>User</protocolSide>
<devicePoolName>Default</devicePoolName>
<locationName>Hub_None</locationName>
<networkHoldMOHAudioSourceId>0</networkHoldMOHAudioSourceId>
<userHoldMOHAudioSourceId>0</userHoldMOHAudioSourceId>
<loadInformation special="false">SCCP41.9-2-1S</loadInformation>
<vendorConfig>
<disableSpeaker>false</disableSpeaker>
<disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
<forwardingDelay>1</forwardingDelay>
<pcPort>0</pcPort>
<garp>1</garp>
<voiceVlanAccess>0</voiceVlanAccess>
<autoSelectLineEnable>0</autoSelectLineEnable>
<spanToPCPort>1</spanToPCPort>
<loggingDisplay>1</loggingDisplay>
<recordingTone>0</recordingTone>
<recordingToneLocalVolume>100</recordingToneLocalVolume>
<recordingToneRemoteVolume>50</recordingToneRemoteVolume>
<recordingToneDuration/>
<moreKeyReversionTimer>5</moreKeyReversionTimer>
<autoCallSelect>1</autoCallSelect>
<logServer/>
<g722CodecSupport>0</g722CodecSupport>
<headsetWidebandUIControl>0</headsetWidebandUIControl>
<handsetWidebandUIControl>0</handsetWidebandUIControl>
<headsetWidebandEnable>0</headsetWidebandEnable>
<handsetWidebandEnable>0</handsetWidebandEnable>
<lldpAssetId/>
<powerPriority>0</powerPriority>
<displayRefreshRate>0</displayRefreshRate>
<ipv6LogServer/>
<detectCMConnectionFailure>0</detectCMConnectionFailure>
<minimumRingVolume>0</minimumRingVolume>
<sideToneLevel>0</sideToneLevel>
<useEnblocDialing>1</useEnblocDialing>
</vendorConfig>
<versionStamp>{1326301579-43D29224-AA0F-45AB-8795-CCFA6B23360D}</versionStamp>
<traceFlag>false</traceFlag>
<mlppDomainId>-1</mlppDomainId>
<mlppIndicationStatus>Default</mlppIndicationStatus>
<preemption>Default</preemption>
<retryVideoCallAsAudio>false</retryVideoCallAsAudio>
<securityProfileName>Cisco 7961 - Standard SCCP Non-Secure Profile</securityProfileName>
<associatedPC/>
<lines>
<line index="1" uuid="{CE22733A-B90E-46F8-8088-B7F079C8143E}">
<label/>
<asciiLabel/>
<display/>
<dirn uuid="{263CCA3C-5AFE-18E3-7D7E-D5FC43AE983B}"/>
<ringSetting>Ring</ringSetting>
<consecutiveRingSetting>Use System Default</consecutiveRingSetting>
<ringSettingIdlePickupAlert>Use System Default</ringSettingIdlePickupAlert>
<ringSettingActivePickupAlert>Use System Default</ringSettingActivePickupAlert>
<displayASCII/>
<e164Mask/>
<dialPlanWizardId>0</dialPlanWizardId>
<mwlPolicy>Use System Policy</mwlPolicy>
<maxNumCalls>4</maxNumCalls>
<busyTrigger>2</busyTrigger>
<callInfoDisplay>
<callerName>true</callerName>
<callerNumber>false</callerNumber>
<redirectedNumber>false</redirectedNumber>
<dialedNumber>true</dialedNumber>
</callInfoDisplay>
<recordingFlag>Call Recording Disabled</recordingFlag>
<audibleMWI>Default</audibleMWI>
<speedDial/>
<partitionUsage>General</partitionUsage>
</line>
</lines>
<numberOfButtons>6</numberOfButtons>
<phoneTemplate uuid="{0C13BFBE-8CA0-4EB8-8649-D6522B35030E}"/>
<speeddials/>
<busyLampFields/>
<primaryPhoneName/>
<blfDirectedCallParks/>
<addOnModules/>
<services/>
<loginUserId>blucena</loginUserId>
<enableExtensionMobility>true</enableExtensionMobility>
<currentProfileName>DP - Breno - EM</currentProfileName>
<loginTime>1327433341</loginTime>
<loginDuration>0</loginDuration>
<currentConfig>
<userHoldMOHAudioSourceId>1</userHoldMOHAudioSourceId>
<phoneTemplate uuid="{0C13BFBE-8CA0-4EB8-8649-D6522B35030E}"/>
<mlppDomainId>-1</mlppDomainId>
<mlppIndicationStatus>Default</mlppIndicationStatus>
<preemption>Default</preemption>
<ignorePresentationIndicators>false</ignorePresentationIndicators>
<singleButtonBarge>Default</singleButtonBarge>
<joinAcrossLines>Default</joinAcrossLines>
<callInfoPrivacyStatus>Default</callInfoPrivacyStatus>
<dndStatus>false</dndStatus>
</currentConfig>
<singleButtonBarge>Default</singleButtonBarge>
<joinAcrossLines>Default</joinAcrossLines>
<builtInBridgeStatus>Default</builtInBridgeStatus>
<callInfoPrivacyStatus>Default</callInfoPrivacyStatus>
<hlogStatus>On</hlogStatus>
<ownerUserId/>
<ignorePresentationIndicators>false</ignorePresentationIndicators>
<packetCaptureMode>None</packetCaptureMode>
<packetCaptureDuration>0</packetCaptureDuration>
<allowCtiControlFlag>true</allowCtiControlFlag>
<presenceGroupName>Standard Presence group</presenceGroupName>
<unattendedPort>false</unattendedPort>
<certificateOperation>No Pending Operation</certificateOperation>
<certificateStatus>None</certificateStatus>
<upgradeFinishTime/>
<deviceMobilityMode>Default</deviceMobilityMode>
<remoteDevice>false</remoteDevice>
<dndOption>Use Common Phone Profile Setting</dndOption>
<dndStatus>false</dndStatus>
<isActive>true</isActive>
<isDualMode>false</isDualMode>
<phoneSuite>Default</phoneSuite>
</device>
</return>
</axl:getPhoneResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Using the line DIRN you´ll find line details, and then... = ] <shareLineAppearanceCSS uuid="{B788D489-D34A-3272-F62D-8AA5D4E92927}" />

the device CSS:

GetPhoneReq getPhoneReq = new GetPhoneReq();
getPhoneReq.ItemElementName = ItemChoiceType133.name;
getPhoneReq.Item = phoneMac;// "SEP000AB8233BDD";
GetPhoneRes getResponse = axlApiService.getPhone(getPhoneReq);
GetPhoneResReturn phoneResReturn = getResponse.@return;
string css=phoneResReturn.phone.callingSearchSpaceName.Value;


the Line CSS:

lineTags.shareLineAppearanceCssName = new XFkType(); is Line CSS

public ListLineRes FindLines(AXLAPIService axlService, string PartitionName)
{

ListLineReq linereq = new ListLineReq();
ListLineReqSearchCriteria search = new ListLineReqSearchCriteria();
search.pattern = pattern ;//phone number

LLine lineTags = new LLine();
lineTags.aarDestinationMask = "";
lineTags.aarKeepCallHistory = "";
lineTags.aarNeighborhoodName = new XFkType();
lineTags.aarVoiceMailEnabled = "";
lineTags.alertingName = "";
lineTags.asciiAlertingName = "";
lineTags.autoAnswer = "";
lineTags.callPickupGroupName = new XFkType();
lineTags.cfaCssPolicy = "";
lineTags.defaultActivatedDeviceName = new XFkType();
lineTags.description = "";
lineTags.hrDuration = "";
lineTags.hrInterval = "";
lineTags.networkHoldMohAudioSourceId = "";
lineTags.parkMonForwardNoRetrieveCssName = new XFkType();
lineTags.parkMonForwardNoRetrieveDn = "";
lineTags.parkMonForwardNoRetrieveIntCssName = new XFkType();
lineTags.parkMonForwardNoRetrieveIntDn = "";
lineTags.parkMonForwardNoRetrieveIntVmEnabled = "";
lineTags.parkMonForwardNoRetrieveVmEnabled = "";
lineTags.parkMonReversionTimer = "";
lineTags.partyEntranceTone = "";
lineTags.pattern = "";
lineTags.patternPrecedence = "";
lineTags.presenceGroupName = new XFkType();
lineTags.releaseClause = "";
lineTags.routePartitionName = new XFkType();
lineTags.shareLineAppearanceCssName = new XFkType();
lineTags.usage = "";
lineTags.userHoldMohAudioSourceId = "";
lineTags.uuid = "";
lineTags.voiceMailProfileName = new XFkType();
linereq.searchCriteria = search;
linereq.returnedTags = lineTags;
ListLineRes lines = axlService.listLine(linereq);


return lines;
}