Top

On incoming call how to call a Mac Application

Comentários

10 comentários

  • Jean-Luc BOUSSEL

    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

    0
    Ações de comentário Permalink
  • Alberto Paglino

    Many thanks for your answer, but the page you suggest ad that I have already visited, has no examples for Apple Mac applications, or Mac terminal command like "curl http://someAddress/somePage". How can I do?

    Many thanks, Alberto.

    0
    Ações de comentário Permalink
  • Jean-Luc BOUSSEL

    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 

    0
    Ações de comentário Permalink
  • Alberto Paglino

    Hi, I tryed with:

     

     "command": {
                        "url": "/Applications/TextEdit.app"
                        "params" : " "
                     }

    But, reading log file, I find:

    error in URL

    I am interested to send a terminal command like /usr/bin/curl "http://someAddress/somePage?MyParam"

    How can I do?

    Many thanks, Alberto.

     

     

    0
    Ações de comentário Permalink
  • Jean-Luc BOUSSEL

    What is the real objective ?
     - open a web page in a browser
     - execute a rest GET call
     - other...

    0
    Ações de comentário Permalink
  • Alberto Paglino

     - execute a rest GET call

    0
    Ações de comentário Permalink
  • Alberto Paglino

    This File works for me:

    {
    "version": "2",
    "extension-points": {
    "on-answering-incoming-pbx-call-actions": [
    {
    "name": " ",
    "command": {
    "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
     
    0
    Ações de comentário Permalink
  • Alberto Paglino

    If I make the same call in the Mac terminal with curl, it works like expected

    0
    Ações de comentário Permalink
  • Alberto Paglino

    curl 'http://192.168.40.3:8080/postRainbow?caller=+393356008109&called=226'

    For example, works correctly

    0
    Ações de comentário Permalink
  • Jean-Luc BOUSSEL

    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. 

    0
    Ações de comentário Permalink

Por favor, entrar para comentar.

Ainda não consegue encontrar o que você precisa?

  • Contate-nos

    Você tem alguma pergunta sobre o Rainbow? Deixe-nos uma mensagem para obter mais informações.

    Contato
  • Pergunte à Comunidade

    Você precisa de ajuda? Faça suas perguntas na Comunidade para obter respostas de outros usuários do Rainbow.

    Enviar mensagem