Author Message
VijayaKumar
Joined: Feb 17, 2014
Messages: 8
Offline
hi , Ima using below URL , but i get error

http://x.x.x.x:8080/searchapi?command=search&callid=00001000171433854454

is this format correct to get the inum of the call
NicolasAshofteh
Joined: Sep 15, 2008
Messages: 1
Offline
Hi guys,


As you seem to master the subject, I would ask you a question.
I am trying to create a VB program to use Search & Reply API on an ACR V15.

I created a user with Replay authorization. When I call the URL after creating the Basic HTTP Autorisation, I get an 500 HTTP error on my GetResonse method ?


Could you please help me on this ?

Thanks a lot.


'*****************************************************************
Public Sub SetBasicAuthHeader(ByRef request As WebRequest, ByVal userName As String, ByVal userPassword As String)
Dim authInfo As String = userName & ":" & userPassword
authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo))
request.Headers("Authorization") = "Basic " & authInfo
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim request As WebRequest
Dim webResponse As WebResponse
Try
request = WebRequest.Create("http://10.100.46.61:8080/searchapi?command=search&inum=845960000000976")

SetBasicAuthHeader(request, "searchuser", "Avaya123$")

webResponse = request.GetResponse()

Catch ex As Exception
MsgBox("Error = " & ex.Message)
End Try
End Sub


CSmythe
Joined: Nov 1, 2017
Messages: 4
Offline
Hello team,

I know this is an old thread but I need to know if the same logic applies to the first time a call is made grammatically from a C# Controller?
I am able to connect to the API using a browser( Chrome, IE, ,etc), but my controller keeps returning a NULL object because the API is returning "401 not found".

Kind regards,

Craig
Go to:   
Mobile view