3CX Logo

3CX Phone System v12.5 Beta Leverages WebRTC

October 21, 2014 - 04:07pm

3CX takes a huge leap forward with the release of 3CX Phone System v12.5 Beta, bringing with it the 3CX WebRTC Gateway. The WebRTC Gateway revolutionizes the way you collaborate & communicate with customers and colleagues, as WebRTC phone calls

3CX's web meeting platform, 3CX WebMeeting, is offered at a discounted price of 30% until the end of December 2014

Calling all 3CX Partners: Create Your Own Profile Page on 3CX.com

October 15, 2014 - 01:03pm

At 3CX we strive to give our partners the best possible opportunities to increase their revenue and boost their business. We will therefore shortly be providing 3CX Partners with their very own dedicated profile page on our website. Bringing Business

3CX PBX • View topic - Conditional function
3CX PBX • View topic - Conditional function

Conditional function

Dedicated forum for the visual 'drag and drop' voice application designer that allows easy creation of advanced voice applications without programming knowledge

Moderator: 3CX staff

Conditional function

Postby uk26 » Thu Nov 17, 2011 9:31 pm

Trying to build a VAD App to do the below

Caller calls in and then is asked to enter a password, if the correct password is entered then the caller is transferred, if the password is incorrect, it will ask the caller to enter the password again.

am at at the conditional component

If i use a conditional VAD Expression such as equal and enter the desired password it builds ok and gets applied to 3cx, however when testing it out it does not take note of the password and just transfers the call anyway.

What am i doing wrong?
uk26
New User
 
Posts: 12
Joined: Wed Mar 25, 2009 8:19 pm

Re: Conditional function

Postby VAD_Support » Thu Nov 17, 2011 10:33 pm

Can you post a ZIP with your project?
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 631
Joined: Thu Aug 06, 2009 5:29 pm

Re: Conditional function

Postby uk26 » Thu Nov 17, 2011 11:26 pm

uk26
New User
 
Posts: 12
Joined: Wed Mar 25, 2009 8:19 pm

Re: Conditional function

Postby VAD_Support » Thu Nov 17, 2011 11:37 pm

Well, the application that you have created does exactly what you described. If the PIN is invalid, you play the Invaliedpin.wav file, but then you transfer the call. You're not requesting to enter the PIN again. You should use a Loop component to do that.

Also, the user input component is configured to get exactly 4 digits. You will have to validate it against a 4 digits PIN, otherwise it will never match.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 631
Joined: Thu Aug 06, 2009 5:29 pm

Re: Conditional function

Postby uk26 » Thu Nov 17, 2011 11:40 pm

so i got the basics right.

ok so how would i get it to check to make sure the pin matches?

only want the call to be transffered if the pin is correct.
uk26
New User
 
Posts: 12
Joined: Wed Mar 25, 2009 8:19 pm

Re: Conditional function

Postby VAD_Support » Thu Nov 17, 2011 11:47 pm

Then you need to move the Transfer component into the Conditional component branch that is executed when the PIN matches.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 631
Joined: Thu Aug 06, 2009 5:29 pm

Re: Conditional function

Postby uk26 » Thu Nov 17, 2011 11:51 pm

ok done that, but still does the call transfer.

Image
uk26
New User
 
Posts: 12
Joined: Wed Mar 25, 2009 8:19 pm

Re: Conditional function

Postby VAD_Support » Fri Nov 18, 2011 12:34 am

Of course, that expression will always evaluate to true. 500 is always equal to 500...
You need to compare the input buffer against the right PIN value. Use the expression editor to change the first 500 with the right variable (Support_Line.Buffer).
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 631
Joined: Thu Aug 06, 2009 5:29 pm

Re: Conditional function

Postby uk26 » Fri Nov 18, 2011 12:49 am

ok that works :)

now i have it, if caller enters 5000 the call now gets transferred but if they enter 5561 for example they get the message invalid pin, which is good, but now disconnects the call.

so i need to put a loop on the Invalid_Pin.
uk26
New User
 
Posts: 12
Joined: Wed Mar 25, 2009 8:19 pm

Re: Conditional function

Postby uk26 » Fri Nov 18, 2011 1:11 am

sorry to be a pain, but how do i get the loop to play the first prompt again
uk26
New User
 
Posts: 12
Joined: Wed Mar 25, 2009 8:19 pm

Re: Conditional function

Postby VAD_Support » Fri Nov 18, 2011 1:53 pm

Just put the User Input component into the Loop component. And configure the Condition to continue looping for example counting how many times the user has tried to enter the PIN. You would have to define a variable for that counter, and increment it on each loop.
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 631
Joined: Thu Aug 06, 2009 5:29 pm


Return to 3CX Voice Application Designer (VAD)


Who is online

Users browsing this forum: No registered users and 0 guests