Page 1 of 2
TEL: protocol (3CX voip)
Posted: Thu Apr 29, 2021 1:40 am
by skiman
Hi,
I would like to use the 'TEL:<phone number>' protocol of windows to call numbers with my 3cx app. I can't find any info about how to do this.
Is someone already using this?
Re: TEL: protocol (3CX voip)
Posted: Thu Apr 29, 2021 4:01 am
by rdonnay
Re: TEL: protocol (3CX voip)
Posted: Fri Apr 30, 2021 12:06 am
by skiman
Hi Roger,
Thanks for the link. This is what I already configured on my PC. When i open a website with a phonenumber, I can dial it immediately.
I can't find how to use this from xbase++.
My 3CX phone app is the default program for the TEL protocol. I tried with the following as I expected this would open it.
Code: Select all
function telprotocol(cTelefoon) // {|| telprotocol("050353100") }
*******************************
DllCall( "Shell32.dll" , DLL_STDCALL, ;
"ShellExecuteA", 0, Chr(0), "tel:"+cTelefoon, Chr(0), Chr(0), 3)
return .T.
But nothing happens when this is executed.
Re: TEL: protocol (3CX voip)
Posted: Fri Apr 30, 2021 12:22 am
by skiman
Hi,
This should be a solution. It is not using the TEL protocol.
C:\ProgramData\3CXPhone for Windows\PhoneApp>CallTriggerCmd.exe -call 050353100
Re: TEL: protocol (3CX voip)
Posted: Fri Apr 30, 2021 1:15 am
by Auge_Ohr
hi,
skiman wrote: ↑Fri Apr 30, 2021 12:06 am
Code: Select all
function telprotocol(cTelefoon) // {|| telprotocol("050353100") }
*******************************
DllCall( "Shell32.dll" , DLL_STDCALL, ;
"ShellExecuteA", 0, Chr(0), "tel:"+cTelefoon, Chr(0), Chr(0), 3)
return .T.
as i can say EXE and Parameter is need
https://docs.microsoft.com/en-us/window ... llexecutea
Code: Select all
lSuccess := @SHELL32:ShellExecuteA( APPDESKTOP() :GetHWND(), ;
"open", ;
cPath + cFile, ;
cParameter, ;
CURDIR(), ;
SW_HIDE ) // SW_SHOWNORMAL
Re: TEL: protocol (3CX voip)
Posted: Fri Apr 30, 2021 1:18 am
by reganc
When I do:
start tel:07666545432
It does appear to open the default app assigned to the Tel protocol...
Re: TEL: protocol (3CX voip)
Posted: Fri Apr 30, 2021 5:02 am
by Wolfgang Ciriack
Then DC_SpawnUrl("tel:07666545432") should do the same ?
Re: TEL: protocol (3CX voip)
Posted: Fri Apr 30, 2021 6:51 am
by skiman
Hi,
@Regan, are you doing that at the command prompt? This isn't working on my PC.
Re: TEL: protocol (3CX voip)
Posted: Fri Apr 30, 2021 7:09 am
by skiman
Auge_Ohr wrote: ↑Fri Apr 30, 2021 1:15 am
as i can say EXE and Parameter is need
Hi Jimmy,
I never specify the EXE when opening documents known by Windows.
Example:
DllCall('Shell32.dll', 32,'ShellExecuteA', 0, Chr(0), 'c:\test\test.pdf', Chr(0), Chr(0), 3) opens the PDF with the default program.
Re: TEL: protocol (3CX voip)
Posted: Fri Apr 30, 2021 7:14 am
by skiman
Wolfgang Ciriack wrote: ↑Fri Apr 30, 2021 5:02 am
Then DC_SpawnUrl("tel:07666545432") should do the same ?
No, this isn't working on my system.