1. Roy Bungert
  2. PowerBuilder
  3. Thursday, 13 June 2024 08:29 AM UTC

Hello

If I enter "callto:0123456" as an URL in my browser, I can make a phone call via my IP-based phone system. 

How can I manage this with Powerbuilder? I tried HyperlinkToUrl() and I tried SendRequest() with the HTTPClient without success. Any ideas?

Greetings


Roy

 

Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 13 June 2024 10:11 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi.

Have you tried using shellexecute?

// Local External function declaration...

Function long ShellExecute(longptr hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, long nShowCmd ) Library "Shell32.dll" Alias For "ShellExecuteW"

// Code to call the function...

string ls_null

setnull(ls_null)
shellexecute(handle(this), "open", "callto:9999999999", ls_null, ls_null, 0)

Andreas.

Comment
  1. Roy Bungert
  2. Thursday, 13 June 2024 13:45 PM UTC
Thanks a lot. This approach works perfect.



For answering the other questions: Yes, the VOIP app is 'somewhere' connected to this "callto:" call. But it's not a browser plugin.



Roy
  1. Helpful 2
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 13 June 2024 11:52 AM UTC
  2. PowerBuilder
  3. # 1

Do you have some kind of an extension or plugin in your browser to make that work?

 

Comment
  1. David Peace (Powersoft)
  2. Thursday, 13 June 2024 12:43 PM UTC
When I posted that URL my browser asked for an app to associate with it. That's why I think he can call the app directly rather than call through a browser.
  1. Helpful 1
  1. Andreas Mykonios
  2. Thursday, 13 June 2024 13:10 PM UTC
That's what I also get when I call this with shellexecute...

Andreas.
  1. Helpful
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Thursday, 13 June 2024 11:11 AM UTC
  2. PowerBuilder
  3. # 2

Hi

The callto:0123456 in the browser is associated with the VOIP App, I wonder if your VIOP App has a command line or api that you can call to achieve this?

Regards

David

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.