Solved Bring up URL based on the queue the caller is calling on

Status
Not open for further replies.

MrGlenn

Customer
Joined
Mar 29, 2021
Messages
17
Reaction score
5
Hi all!

i have a question today we have alot of queues in our 3cx Enterprise,

i would on some queues be able to bring up a URL to show specifik instructions for that queue.

We are using the windows app on our stations i have messed a bit with parameters to send i can get the queue name out when i do some test to a txt file but it is not working if the queue name have a spce in it then it just show the letters before the space.

exampel:
XXXXX
XXXXXXXX:ABC

But it should have been
XXXXX
XXXXXXXX:ABC - TEST

If i remove the space in the queue name it shows like ABC-TEST.


Does any of you have an idea or cant point me in the right direction, is it possbile to do with call flow designer mabey?
*no i cant remove the spaces in the queue name :)
 
Hi @MrGlenn,

I am assuming you're using the launch application of the Windows app, what application are you launching and where are you passing the parameters?

Can you send a screen shot showing us the issue with the name display of the queue?
 
Hi @VasilisV_3CX

Yes that is correct im using a batch file for the test,
where i use the command echo %1 > testar.txt
The result outputed to the text file testar.txt looks like this.

Firstname
Lastname:WSG

The queue name should have been WSG - 1234 , as seen in the picture
if i can get the complete queue name to be outputed correct i can then just make a script when the name ecquels what i want then bring up the url, so that is not the big issue for me the issue is letting the windows app output the entire queue name.
 

Attachments

  • queue.png
    queue.png
    2.2 KB · Views: 17
The problem you are having here is clearly a scripting puzzle.

Because the Queue Name is 2 words (separated by a space), when the Windows app passes onto your script, it understands the second word as a new argument.

So, if you did something like this:
echo Caller ID: %1 > C:\output.txt
echo Caller Name: %2 %3 >> C:\output.txt

You would get he Caller ID + the the first 2 words of the Queue as the Caller Name.

The output the above is this:

2021-04-13.png
 
Thanks for the info,
here is the resulte when i do the same as you, dont know if it depends on the length of the name saved in the phone book? Since my result is the same that the queue name is just 3 charecters long

1618314438867.png
 
Hi @MrGlenn,

As I mentioned above, every space is perceived as an argument. The script above has 3 arguments. This sort of question can be best answered on stackexchange for additional scripting help.
 
@VasilisV_3CX Thanks for pointing me in the right direction!

Here is my code if it will help some one out there.

set queue=%3 %4 %5 %6 %7 %8
echo %queue% | find "queue name" > nul
if %errorlevel%==0 (
start https://theurlyouwanttoshow
)
 
Hi @MrGlenn,

Thanks for sharing your solution. Glad you managed to solve this issue.
 
  • Like
Reactions: MrGlenn
Status
Not open for further replies.

Forum statistics

Threads
112,025
Messages
590,368
Members
164,978
Latest member
FringeIT-Eric