On incoming call how to call a Mac Application
I am using Mac version of Rainbow app and I want to call our crm on event:
on-answering-incoming-pbx-call-actions
How can I call a Mac application?
Many Thanks, Alberto.
-
Hello Alberto
You can consult :
https://support.openrainbow.com/hc/en-us/articles/8475256862098-Launch-external-applications-on-an-incoming-phone-call-v2
This will depends on how you're CRM can be automated.
but you can pass some parametrs to it as for example the caller number.
Best Regards -
Current version of Rainbow desktop supports to lauch the execution of an application or the opening of a web page with the default browser. In future version we'll support Rest API calls. If you want to do it with curl , the curl syntaxe must be used.
"on-incoming-pbx-call-actions": [ {
"name": "browse",
"command": {
"url": "http://someAddress/somePage"
}
} ]
will open a browser with page "http://someAddress/somePage""command": {
"url": "http://someAddress/somePage"
"params" : "MyParam"
}will open a browser with page "http://someAddress/somePage?MyParam"
"command": {
"url": "/Applications/MyCRM.app"
"params" : "-MyParam"
}
will execute MyCRM.app -MyParam
Depending on your app MyCRM, this will open a new instance ot an existing one -
This File works for me:
{"version": "2","extension-points": {"on-answering-incoming-pbx-call-actions": [{"name": " ","command": {"url": "http://192.168.40.3:8080/postRainbow","params": "caller=${caller.phoneNumber}&called=${localUser.internalNumber}"},"RaiseChangeCall": true}]}}But the problem is that I don't want to open a web browser page. Just send the data to the web server -
curl 'http://192.168.40.3:8080/postRainbow?caller=+393356008109&called=226'
For example, works correctly
-
Hello Alberto
Be aware that wer'e currently working exactly on your use case, enabling some REST api calls triggered on Rainbow events and customized by end user without needing to use curl. This will come in future release.
For now, we've done it exactly like you try to do it with curl but only on Windows and it works.
By investigating on MAC, following your question, we discovered a bug which prevents to do it using curl on MAC with the current version. The only workaround we found with this version is to write a shell script which will execute the curl command. This has a side effect a a quick open/close windows when executing the script.
We apologize for this inconvenience and will correct this point.
Por favor, entrar para comentar.
Comentários
10 comentários