05-07-2017 10:25 AM
Hi
we are trying to add phone device from axl 11.5 and we have business scenario to add soft and hard phones from API. AddPhone API is throwing exception with out any error message. I have attached requests for soft and hard phones as well as error message. It would be really appreciate if someone can help me to fix issue?
try
{
_axlapiService.addPhone(addPhoneReq);
}
catch (Exception exception)
{
throw exception
}
Response:
<detail><axlError><axlcode>-1</axlcode><axlmessage></axlmessage><request>addPhone</request></axlError></detail>
Request is adding so that it will be easy for user to read. sorry i am making big json file here.
{
"phone":{
"name":"SEPEE23AE71680A",
"description":"EXPBLV-8160007",
"product":"Cisco 7841",
"class":"Phone",
"protocol":"SIP",
"protocolSide":"User",
"callingSearchSpaceName":{
"uuid":null,
"Value":"VENDOR_Agent_PG1"
},
"devicePoolName":{
"uuid":null,
"Value":"Default"
},
"commonDeviceConfigName":null,
"commonPhoneConfigName":{
"uuid":null,
"Value":"Standard Common Phone Profile"
},
"networkLocation":"Use System Default",
"locationName":{
"uuid":null,
"Value":"16_EXP_BLV"
},
"mediaResourceListName":null,
"networkHoldMohAudioSourceId":null,
"userHoldMohAudioSourceId":null,
"automatedAlternateRoutingCssName":null,
"aarNeighborhoodName":null,
"loadInformation":{
"special":null,
"Value":null
},
"vendorConfig":{
"Any":[
{
"settingsAccess":"0"
},
{
"disableSpeaker":"true"
},
{
"voiceVlanAccess":"1"
}
]
},
"versionStamp":null,
"traceFlag":null,
"mlppDomainId":null,
"mlppIndicationStatus":"Off",
"preemption":"Default",
"useTrustedRelayPoint":"Default",
"retryVideoCallAsAudio":"true",
"securityProfileName":{
"uuid":null,
"Value":"Cisco 7841 - Standard SIP Non-Secure Profile"
},
"sipProfileName":{
"uuid":null,
"Value":"Production SIP Profile"
},
"cgpnTransformationCssName":null,
"useDevicePoolCgpnTransformCss":"true",
"geoLocationName":null,
"geoLocationFilterName":null,
"sendGeoLocation":null,
"lines":{
"Items":[
{
"index":"1",
"label":"",
"display":"",
"dirn":{
"pattern":"8160007",
"routePartitionName":{
"uuid":"{C52250A1-A31F-922F-BBFE-0EE0FACD74B6}",
"Value":"AGENT_PT"
},
"uuid":"{43898C32-F993-AFA2-52D3-FD1BD250BF1C}"
},
"ringSetting":"Use System Default",
"consecutiveRingSetting":"Use System Default",
"ringSettingIdlePickupAlert":"Use System Default",
"ringSettingActivePickupAlert":"Use System Default",
"displayAscii":"",
"e164Mask":"",
"mwlPolicy":"Use System Policy",
"maxNumCalls":"3",
"busyTrigger":"1",
"callInfoDisplay":{
"callerName":"true",
"callerNumber":"false",
"redirectedNumber":"false",
"dialedNumber":"true"
},
"recordingProfileName":null,
"monitoringCssName":null,
"recordingFlag":"Call Recording Disabled",
"audibleMwi":"Default",
"speedDial":"",
"partitionUsage":"General",
"associatedEndusers":null,
"missedCallLogging":"true",
"recordingMediaSource":"Gateway Preferred",
"ctiid":null
}
]
},
"phoneTemplateName":{
"uuid":"{A49C7FEB-6D5D-19F0-8372-35A910C3BEB4}",
"Value":"Standard 7841 SIP 1L 3SD"
},
"speeddials":[
],
"busyLampFields":[
],
"primaryPhoneName":null,
"ringSettingIdleBlfAudibleAlert":"Default",
"ringSettingBusyBlfAudibleAlert":"Default",
"blfDirectedCallParks":[
],
"addOnModules":[
],
"userLocale":null,
"networkLocale":null,
"idleTimeout":null,
"authenticationUrl":null,
"directoryUrl":null,
"idleUrl":null,
"informationUrl":null,
"messagesUrl":null,
"proxyServerUrl":null,
"servicesUrl":null,
"services":[
],
"softkeyTemplateName":null,
"defaultProfileName":null,
"enableExtensionMobility":"False",
"singleButtonBarge":"Default",
"joinAcrossLines":"Default",
"builtInBridgeStatus":"Default",
"callInfoPrivacyStatus":"Default",
"hlogStatus":null,
"ownerUserName":null,
"ignorePresentationIndicators":"false",
"packetCaptureMode":"None",
"packetCaptureDuration":"0",
"subscribeCallingSearchSpaceName":null,
"rerouteCallingSearchSpaceName":null,
"allowCtiControlFlag":null,
"presenceGroupName":{
"uuid":null,
"Value":"Standard Presence group"
},
"unattendedPort":"false",
"requireDtmfReception":"false",
"rfc2833Disabled":"false",
"certificateOperation":"No Pending Operation",
"authenticationMode":"By Null String",
"keySize":"1024",
"keyOrder":"RSA Only",
"ecKeySize":"384",
"authenticationString":null,
"upgradeFinishTime":null,
"deviceMobilityMode":"Default",
"remoteDevice":"false",
"dndOption":"Ringer Off",
"dndRingSetting":null,
"dndStatus":null,
"isActive":"true",
"isDualMode":null,
"mobilityUserIdName":null,
"phoneSuite":"Default",
"phoneServiceDisplay":"Default",
"isProtected":"false",
"mtpRequired":null,
"mtpPreferedCodec":"711ulaw",
"dialRulesName":null,
"sshUserId":null,
"sshPwd":null,
"digestUser":null,
"outboundCallRollover":"No Rollover",
"hotlineDevice":"false",
"secureInformationUrl":null,
"secureDirectoryUrl":null,
"secureMessageUrl":null,
"secureServicesUrl":null,
"secureAuthenticationUrl":null,
"secureIdleUrl":null,
"alwaysUsePrimeLine":"Default",
"alwaysUsePrimeLineForVoiceMessage":"Default",
"featureControlPolicy":null,
"deviceTrustMode":"Not Trusted",
"earlyOfferSupportForVoiceCall":"false",
"requireThirdPartyRegistration":null,
"blockIncomingCallsWhenRoaming":null,
"homeNetworkId":null,
"AllowPresentationSharingUsingBfcp":"false",
"confidentialAccess":null,
"requireOffPremiseLocation":"false",
"allowiXApplicableMedia":"false",
"cgpnIngressDN":null,
"useDevicePoolCgpnIngressDN":"true",
"msisdn":null,
"enableCallRoutingToRdWhenNoneIsActive":"false",
"wifiHotspotProfile":null,
"wirelessLanProfileGroup":null,
"elinGroup":null,
"ctiid":null
},
"sequenceSpecified":false
}
Note: I have followed Cook Book documentation also Administrative XML (AXL) Developer Cookbook
Regards
Purna
05-08-2017 04:00 PM
Is your application sending JSON to the AXL service? Note, it supports only XML...
If you are sending XML, can you provide the full XML request?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide