Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic open specific URL based on queue name when answer (Read 3683 times)
E
Junior Member
**
Offline


Phoner is great!

Posts: 50
Joined: 20. Jul 2020
open specific URL based on queue name when answer
19. Dec 2022 at 22:14
Print Post  
hello, hope you are doing good, i want to open for example google website when i receive queue calls from queue name Google and i want to open Facebook website when i receive a call from queue name Facebook from the script, i am using freepbx. Can you show me how i can do that, Thanks
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: open specific URL based on queue name when answer
Reply #1 - 20. Dec 2022 at 13:53
Print Post  
I don't know what you mean with "queue". If you want to open special URLs for incoming calls with special numbers - you can do it by configure an external application in PhonerLite. For incoming calls a special application/script can be called. The number will be passed as 1st parameter. So you can do with this number what you want - e.g. calling a special URL.
  
Back to top
WWW  
IP Logged
 
E
Junior Member
**
Offline


Phoner is great!

Posts: 50
Joined: 20. Jul 2020
Re: open specific URL based on queue name when answer
Reply #2 - 20. Dec 2022 at 18:41
Print Post  
see attached picture, so based on that queue name or queue number i want to open specific url. The queue name and number i define in freepbx . Also can you please write a simple script so if i receive a call from queue number 477 to open googel url. Thanks
  

QUEUENAME.jpg ( 148 KB | 46 Downloads )
QUEUENAME.jpg
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: open specific URL based on queue name when answer
Reply #3 - 21. Dec 2022 at 07:57
Print Post  
That information is the "name" and passed as second parameter to the external application.
  
Back to top
WWW  
IP Logged
 
E
Junior Member
**
Offline


Phoner is great!

Posts: 50
Joined: 20. Jul 2020
Re: open specific URL based on queue name when answer
Reply #4 - 21. Dec 2022 at 10:24
Print Post  
Can you please write a simple script if name is DEMO1 open google and if name is DEMO2 open facebook. Thanks
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: open specific URL based on queue name when answer
Reply #5 - 23. Dec 2022 at 10:07
Print Post  
Write a batch file (e.g. "incoming_call.bat") with the following content:
Code
Select All
@echo off
if %2 == "DEMO1" start https://google.com
if %2 == "DEMO2" start https://facebook.com
 


Then set the name of this batch file at "Options/external applications" in "incoming call" edit field.
  
Back to top
WWW  
IP Logged
 
E
Junior Member
**
Offline


Phoner is great!

Posts: 50
Joined: 20. Jul 2020
Re: open specific URL based on queue name when answer
Reply #6 - 26. Dec 2022 at 11:45
Print Post  
i tried but it does not open web page
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: open specific URL based on queue name when answer
Reply #7 - 28. Dec 2022 at 10:56
Print Post  
Just open a command line window (terminal) and enter the directory where you have saved that "incoming_call.bat". Type there "incoming call 1234 DEMO1". Does your Browser open with the Google page? If so, the batch file is OK. Maybe you didn't select the proper file within PhonerLite.
  
Back to top
WWW  
IP Logged
 
E
Junior Member
**
Offline


Phoner is great!

Posts: 50
Joined: 20. Jul 2020
Re: open specific URL based on queue name when answer
Reply #8 - 29. Dec 2022 at 15:24
Print Post  
this is the message that i get:
start was unexpected at this time.
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: open specific URL based on queue name when answer
Reply #9 - 30. Dec 2022 at 07:43
Print Post  
"start" is a common command for a batch file. If that is not available in your environment, I can't help. PhonerLite is just a hobby project - not more. Maybe you should use a professional softphone with a company behind offering professional support.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint