Hi,
I ve set up CTI generic for incomming calls with asterisk.
everything is working as expected. An incoming call is shown and i can create a ticket.
Now I ve set up asterisk for outgoing calls.
I ve done the same setup as for incoming and i changed of course the direction to out.
If I try it manual with curl, I got no error.
root@pbx:~# curl -X POST --data "event=newCall&to=01732339918&from=491711234567890&direction=out&callId=156787613" http://192.168.200.247:81/api/v1/cti/vysxnMCk-Ix65oImylAj4xEC3Ig
{}
root@pbx:~# curl -X POST --data "event=answerd&to=01732339918&from=491711234567890&direction=out&callId=156787613" http://192.168.200.247:81/api/v1/cti/vysxnMCk-Ix65oImylAj4xEC3Ig
{"error":"Unknown event \"neanswerdo=01732339918\""}
root@pbx:~# curl -X P^CT --data "event=neanswerdo=01732339918&from=491711234567890&direction=out&callId=156787613" http://192.168.200.247:81/api/v1/cti/vysxnMCk-Ix65oImylAj4xEC3Ig
root@pbx:~# curl -X POST --data "event=answer&to=01732339918&from=491711234567890&direction=out&callId=156787613" http://192.168.200.247:81/api/v1/cti/vysxnMCk-Ix65oImylAj4xEC3Ig
{}
root@pbx:~# curl -X POST --data "event=hangup&to=01732339918&from=491711234567890&direction=out&callId=156787613" http://192.168.200.247:81/api/v1/cti/vysxnMCk-Ix65oImylAj4xEC3Ig
but, I expected to see somesthing in call protokol, something like there is a new call an create a ticket as it is for incoming.
am I wrong?
and when i am wrong for what is outgoing used?
thank you