Solved Enable Open Contact URL

Status
Not open for further replies.

Nicolas Borowy

Titanium Partner
Advanced Certified
Joined
Aug 17, 2017
Messages
32
Reaction score
6
Hi,

I want to open this website when a call is ringing with the integration function :

https://tel.search.ch/?was=%CallerNumber%

The webpage opens and the number displays well. On the other hand, how can I block the display of the internal numbers? I just want to show the number with, at least, 7 digits...

Thanks
 
  • Like
Reactions: Jdeez
Hello @Nicolas Borowy,

You can do this by writing a small batch file and configuring 3CX windows client to open the batch file when ringing, To do this just go to 3CX windows client->Settings->Advanced Settings->Behavior, enable the "Launch application on incoming Call" option and set the path to the executable(The batch file that you will create). In the "Parameters to send" field write %CallerNumber%

Now you need to create the above batch file with the code below:

echo off
if %1 LSS 1000 goto END
start https://tel.search.ch/?was=%1
:END

The logic in the above code is to compare the caller id(%1 variable) to the "biggest possible number" of your internal extensions. For example, if you have 3 digit extensions(999 being the biggest one) you need to check if caller id is less that 1000 (as in above example). If you have 4 digit extensions, then caller id should be less that 10000 and so on. If the caller id is less than configured number(meaning the caller is an internal extension) then code goes to end and nothing happens. Otherwise the code will start the webpage with caller id appended to it

A better solution would be to get the caller id length and if is above 7 then open the url, but you'll need to write a batch file that would be a bit more complex than the above one.
 
  • Like
Reactions: Jdeez
Hi mariosM,
Great, the batch is working well. We just adapted it like this :

@echo off
if %1 GTR 100 goto END
start firefox.exe https://tel.search.ch/?was=%1
:END

Thank you for your help.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,880
Messages
589,533
Members
164,733
Latest member
HLISolutions