TEL: protocol (3CX voip)

This forum is for eXpress++ general support.
Message
Author
skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

TEL: protocol (3CX voip)

#1 Post 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?
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: TEL: protocol (3CX voip)

#2 Post by rdonnay »

The eXpress train is coming - and it has more cars.

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: TEL: protocol (3CX voip)

#3 Post 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.
Best regards,

Chris.
www.aboservice.be

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: TEL: protocol (3CX voip)

#4 Post 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
Best regards,

Chris.
www.aboservice.be

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: TEL: protocol (3CX voip)

#5 Post 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
greetings by OHR
Jimmy

reganc
Posts: 259
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: TEL: protocol (3CX voip)

#6 Post by reganc »

When I do:

start tel:07666545432

It does appear to open the default app assigned to the Tel protocol...
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: TEL: protocol (3CX voip)

#7 Post by Wolfgang Ciriack »

Then DC_SpawnUrl("tel:07666545432") should do the same ?
_______________________
Best Regards
Wolfgang

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: TEL: protocol (3CX voip)

#8 Post by skiman »

Hi,

@Regan, are you doing that at the command prompt? This isn't working on my PC.
Best regards,

Chris.
www.aboservice.be

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: TEL: protocol (3CX voip)

#9 Post 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.
Best regards,

Chris.
www.aboservice.be

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: TEL: protocol (3CX voip)

#10 Post 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.
Best regards,

Chris.
www.aboservice.be

Post Reply