Generic CTI via http Request


Hi, I haven’t found any information on the call events für the http request.
in my program I can enter the url and the coller ID, but zammad needs some more I guess?

what is the full link supposed to look like?
Something like this maybe:[token....]/?event=answer&callid=00491234567

Expected behavior:

  • Open Zammad

Actual behavior:

  • 404: Requested resource was not found
    No route matches [GET] /api/v1/cti/[token…]

The problem is that you need to POST the information in XML to the api, not GET a specific URL

This is an excerpt of our script that is active on our phone server:
xml.Open "POST", "", False xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" xml.send DataToSend

The DataToSend is put together in another function depending on the event.

For an incoming call the function looks like this:
DataToSend = "event=newCall&from=" & PBXCall.CallingPartyNumber & "&to=" & PBXCall.DialedNumber & "&direction=in&callId=" & PBXCall.CallId & "&user[]="

The resulting string would be like this:

The different events we use are

1 Like

Thanks for the reply.

I’m using Starface UP. Haven’t found a method yet, though.
I asked the Starface Team. When I get a response, I’ll post it, too.

It doesn’t work with Starface Up.
For Starface Cloud someone made a module:

thanks anyway @awedor

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.