Solved Open URL in de background

Status
Not open for further replies.

Jim Spaargaren

Gold Partner
Advanced Certified
Joined
Mar 26, 2020
Messages
15
Reaction score
1
Hi,

I'm trying to use the intergration to open a URL with variables. The URL opens correctly, but is there a possibility to open the URL in the background?

1645172099665.png

I tried to use the Windows Client to run a script, but then the variable %CallerNumber% does not work.
 
Hello @Jim Spaargaren
I've just confirmed that "%CallerNumber%" is working as expected. See below
1645172809145.png
 
It is also working for me in de web client, but the link has to be opened in the background. This is why I used a script in the Windows client, but then the %CallerNumber% does not work.
In my case I am not using WebClient. I am using 3CX Desktop App.
 
Im am talking about the old Windows client. If I put %CallerNumber% in the link in the script the parameter does not work.

1645188645663.png
 
Hi @Jim Spaargaren,

Using v18 Update 3 and the Desktop App, you can do this:

1645191431062.png
 
  • Like
Reactions: Evolute IT
Hi @Jim Spaargaren,

I don't have an exact release date for the final, but I doubt it will be too long from now, historically speaking. Keep an eye on our blog for more info!
 
When I configure a script in the new desktop app the following error shows in de main log.

1646641400266.png
1646641298479.png

Error:

[2022-03-07 09:11:08.516] [info] (main-ipc-hook) ipcMain on main [ 'showOpenDialog' ]
[2022-03-07 09:11:15.455] [info] (status-ipc-hook) ipcMain on status [ '1', 'info' ]
[2022-03-07 09:11:15.456] [info] (status-ipc-hook) badge overlay update [ '1', 'info' ]
[2022-03-07 09:11:15.457] [info] (create-main-window) tray icon update - type: info
[2022-03-07 09:11:30.490] [info] (dialer-ipc-hook) ipcMain on dialer [ 'show', false ]
[2022-03-07 09:11:35.409] [info] (main-ipc-hook) ipcMain on main [
'executeExternal',
{
path: 'C:\\Users\\jim\\Desktop\\Telefonie_testkopie.ps1',
args: [ '+31612345678' ]
}
]
[2022-03-07 09:11:35.422] [error] (uncaught-error-hook) {
message: 'Error: spawn UNKNOWN\n' +
' at ChildProcess.spawn (node:internal/child_process:412:11)\n' +
' at spawn (node:child_process:707:9)\n' +
' at execFile (node:child_process:334:17)\n' +
' at t.<computed> (node:electron/js2c/asar_bundle:5:2196)\n' +
' at executeExternal (webpack://3CXDesktopApp/./electron/main.ts_+_82_modules?:6181:45)\n' +
' at IpcMainImpl.eval (webpack://3CXDesktopApp/./electron/main.ts_+_82_modules?:6215:18)\n' +
' at IpcMainImpl.emit (node:events:394:28)\n' +
' at Object.<anonymous> (node:electron/js2c/browser_init:161:9959)\n' +
' at Object.emit (node:events:394:28)',
type: 'generic'

Any idea what the problem is?
 
Hi @Jim Spaargaren,

Does this happen for non-powershell scripts too? Like if you enter in a .bat file etc?
 
Ah thanks, it is working with the batch file. But unfortunately the parameter does not work.

In the script it is:
1646651952952.png
When it opens it does not fill in the number:
1646651916863.png

Any idea?
 
&Extensionnumber=885?
 
That is the end of the link. But it removes %CallerNumber% from the link and does not fill in the number.

EDIT: I see in the print screen it does not have &Extensionnumber=885 in the script, but it does have it:

1646653866343.png
 
  • Like
Reactions: VasilisV_3CX
I see what you're saying. I'll investigate and let you know if I find anything.
 
We found what the problem was. We needed to use %1 instead of %CallerNumber%.
 
Great to hear you found the problem @Jim Spaargaren! Well done! Feel free to open a new thread if you require anything else!
 
Status
Not open for further replies.

Forum statistics

Threads
112,025
Messages
590,367
Members
164,976
Latest member
Roman Mazur