Cisco Error 401 Unauthorized
Contents |
Connection) > Discussions Please enter a title. You can not post a blank message. Please type your message and try again. 6 Replies Latest reply: Oct 3, 2014 9:42 AM by beenaali8 CUMI API - 401 Unauthorized error (Sporadic) beenaali8 Oct 3, 2014 8:29 AM Tweet Hello,Has anyone come across this issue of sporadic error 401 unauthorized please login to continue 401 unauthorized error?Mailbox delegate account is used to access user mailboxes via CUMI. 90% of
Error 401 Unauthorized Access Denied
the time it authenticates fine & gets to user mailboxes/messages. The 401 unauthorized error occurs occasionally & once it starts happening the error continues
Error 401 Unauthorized League Of Legends
for a while but later resolves on it's own. The server is an active-active cluster. The API requests are sent only to the publisher. UC version is 10.0.1.12900-2. Error Details - HTTP Status 401 - Unauthorized. This request
Error 401 Unauthorized Soapui
requires HTTP authentication. 690Views Tags: none (add) cumiContent tagged with cumi Reply (Login Required) 1. Re: CUMI API - 401 Unauthorized error (Sporadic) lindborg Oct 3, 2014 8:36 AM (in response to beenaali8) are you sending requests always using basic authentication? If so that's likely you're issue - starting in 10.0 the security framework (i.e. under Unity Connection and any other product shipping on VOS) restricts basic authentication request coming in to a couple a second - if http error 401 unauthorized you pumping requests in faster than that the subsequent ones will all fail... this would appear to be random depending on how fast the requests were coming in.You need to update your code to be storing the jsessionId values and doing basic authentication requests to fetch a new one only when they expire.If that's not the case I'm not sure what would be causing that right off hand... Like Show 0 Likes (0) Reply (Login Required) 2. Re: CUMI API - 401 Unauthorized error (Sporadic) beenaali8 Oct 3, 2014 8:42 AM (in response to lindborg) Yes, we're using basic auth. What's the limit on the requests and how many concurrent conn are allowed? Currently we're doing <10 concurrent requests. Like Show 0 Likes (0) Reply (Login Required) 3. Re: CUMI API - 401 Unauthorized error (Sporadic) lindborg Oct 3, 2014 9:00 AM (in response to beenaali8) I'm not real sure what you're meaning of "concurrent requests” is here but it doesn't really matter - if a series of REST API requests comes in at (I think) 3 or more in a second, the later ones will fail by design. To be clear, any application doing REST API work should be doing security properly - that means doing basic authentication, getting your sessionId and checking the headers of responses as you go to know when it's expiring and issuing another basic request th
Connection) > Documents Currently Being Moderated 401 Unauthorized for service account created by cdnadmin on Jan 24, 2014 4:32 PM, last modified by cdnadmin on Jan 24, 2014 4:32 PM Version 1 Tweet Subject: RE: New Message http error 401 unauthorized visual studio from Akanksha Agarwal in Cisco Unity Connection(CUC) - CUMI Replied by: Shivinder http error 401 unauthorized in sap Singh on 10-10-2012 11:21:26 AMAkanksha, thanks for your reply. In order to create a user with voicemailusertemplate, I http error 401 unauthorized python need to give it a phone extension for the voice mailbox. But this is just a service account. What would you suggest?This document was generated from CDN thread Created by: https://communities.cisco.com/thread/47163?start=0&tstart=0 Shivinder Singh on 10-10-2012 10:37:52 AM I was initially using the administrator account to query CUMI to obtain voicemail records per user object id. Once I had it working, I wanted to create a service account and use that instead in my app. I created a user account from Unity Administration with adminstrator template, went to Roles page, removed System Aministrator https://communities.cisco.com/docs/DOC-46964 and added Mailbox Access Delegate Account to the roles list. When I used this account in my app, I got 401 Unauthorized error. I went back and added Audit Administrator role because this was the only other role administrator account had, but still getting same error 401 unauthorized. Any ideas what's going on?Subject: RE: 401 Unauthorized for service account Replied by: Akanksha Agarwal on 10-10-2012 11:09:36 AMShivinder,If you want to access a particular user's voucemail records then you just need his credentials. You need not modify his roles. You can access his voicemail records using the following APIs:For messages in Inbox: /vmrest/mailbox/folders/inbox/messagesFor messages in Deleted Items folder: /vmrest/mailbox/folders/deleted/messagesFor messages in Sent Items folder: /vmrest/mailbox/folders/sent/messagesWhen you want to access a user's mailbox, then you do not need to create a user with administrativr template. You need to create one with voucemailusertemplate. And this is the reason why you are getting a not authorized error.I guess the API yu are using is /vmrest/messages and giving the userobjectid to fetch a user's mailbox details. Please use the above mentioned APIs to GET the messages.Subject:
> Documents Currently Being Moderated C# > 401: Unauthorized created by cdnadmin on Jan 24, 2014 5:31 PM, last modified by cdnadmin on Jan 24, https://communities.cisco.com/docs/DOC-48587 2014 5:31 PM Version 1 Tweet This document was generated http://community.freepbx.org/t/unable-to-get-incoming-calls-through-sip-trunks-getting-error-sip-2-0-401-unauthorized/30880 from CDN thread Created by: Salim Guerid on 07-09-2013 01:32:26 AM Hi All,I am getting the error "The request failed with HTTP status 401: Unauthorized." when posting AXL request inC# on the RisPort. The strange thing is that I have error 401 no problem using within the AXL interface with the same user, password and CUCM. I generated theRISService using the WSDL and updatd the connection as follow:1public RISService(string ccmIp, string user, string password) 2{ 3System.Net.ServicePointManager.CertificatePolicy = newBruteForcePolicy();4this.Url = "https://" + ccmIp + ":8443/realtimeservice/services/RisPort"; error 401 unauthorized 5this.Credentials = new System.Net.NetworkCredential(user, password); 6// this.SoapVersion = System.Web.Services.Protocols.SoapProtocolVersion.Soap11; 7}I have then added: 1protectedoverride System.Net.WebRequest GetWebRequest(Uri uri) 2{ 3System.Net.HttpWebRequest request = base.GetWebRequest(uri) as System.Net.HttpWebRequest; 4request.ProtocolVersion = System.Net.HttpVersion.Version10; 5// request.PreAuthenticate = true;6return request; 7} 89publicclassTrustAllCertificatePolicy : System.Net.ICertificatePolicy 10{ 11public TrustAllCertificatePolicy() { } 12publicbool CheckValidationResult(ServicePoint sp,X509Certificate cert,WebRequest req, int problem) 13{ 14returntrue; 15} 16}The SOAP monitor is never able to check any request when opening thehttps://
which does not register with USername or passwords. The Asterisk system is able to make outgoing calls to the same system. But for an incoming call, it wants the other system to be authenticated. I have got all the settings required for no authentication, but still it seems to be not helping. Anyone who would be able to help me with this ? Trunk Configuration :- host=20.1.1.170type=friendport=5060insecure=invite,portallow=ulawdisallow=allcontext=from-trunk Even after these settings, I get the following message <--- SIP read from UDP:20.1.1.170:5060 --->INVITE sip:2723@20.1.1.58:5060 SIP/2.0Via: SIP/2.0/UDP 20.1.1.170:5060;branch=z9hG4bK3477e7a810237From: ;tag=704850~4ab333c0-314e-1172-16a8-eca8c1530263-31438422To: Date: Thu, 03 Sep 2015 19:24:58 GMTCall-ID: 756d6680-5e819e8a-2f3dd-aa010114@20.1.1.170Supported: timer,resource-priority,replacesMin-SE: 1800User-Agent: Cisco-CUCM10.5Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFYCSeq: 101 INVITEExpires: 180Allow-Events: presenceSupported: X-cisco-srtp-fallback,X-cisco-original-calledCisco-Guid: 1970103936-0000065536-0000002259-2852192532Session-Expires: 1800P-Asserted-Identity: Remote-Party-ID: ;party=calling;screen=yes;privacy=offContact: ;bfcpMax-Forwards: 69Content-Type: application/sdpContent-Length: 198 v=0o=CiscoSystemsCCM-SIP 704850 1 IN IP4 20.1.1.170s=SIP Callc=IN IP4 20.1.1.170t=0 0m=audio 25332 RTP/AVP 0 101a=rtpmap:0 PCMU/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-15<------------->--- (22 headers 9 lines) ---Sending to 20.1.1.170:5060 (NAT)Sending to 20.1.1.170:5060 (NAT)Using INVITE request as basis request - 756d6680-5e819e8a-2f3dd-aa010114@20.1.1.170Found peer '2723' for '2723' from 20.1.1.170:5060 <--- Reliably Transmitting (NAT) to 20.1.1.170:5060 --->SIP/2.0 401 UnauthorizedVia: SIP/2.0/UDP 20.1.1.170:5060;branch=z9hG4bK3477e7a810237;received=20.1.1.170;rport=5060From: ;tag=704850~4ab333c0-314e-1172-16a8-eca8c1530263-31438422To: ;tag=as521e3e81Call-ID: 756d6680-5e819e8a-2f3dd-aa010114@20.1.1.170CSeq: 101 INVITEServer: FPBX-12.0.76(11.19.0)Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGESupported: replaces, timerWWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4be878a6"Content-Length: 0 Any help on this would be great ! Thanks, dicko 2015-09-03 20:34:59 UTC #2 ag