Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QUE TO AGENT and how to make it variable

Status
Not open for further replies.

avaya99

Technical User
Jul 22, 2009
28
NL
Hi Guys
I want to QUE to an agent on the following maner :
Agents have a direct inbound number 7xxxx and If a customer call's that number I want to put the CDN into the agent variable ,

Or perhaps i ask the caller to input the agent nr from the phone.
For testing I do that and i want to be able to ask the caller to input the number.


Here's the part of script. (don't pay to much attention to the var names and it's far from complete)
---------------------------------------------------------
/* ask for the agent number */
ASSIGN "false" TO notypeahead
ASSIGN "5" TO numberofdigits
ASSIGN "#" TO termchar
ASSIGN "4" TO interdigittimeout
ASSIGN 0 TO Menu_Choice
ASSIGN c_play_and_collect_gv TO voicexml
ASSIGN ask_for_number_Txt TO prompttoplay
GIVE IVR WITH VXML TREATMENT voicexml PARAMETERS prompttoplay, vxmlfrom, vxmlto, notypeahead, numberofdigits, termchar, interdigittimeout
RETURNS Menu_Choice

IF Menu_Choice = ????? (must be 5 digits)
THEN execute QTA
ELSE execute QTS
END IF

/* Que To Agent */
Section QTA
assign Menu_Choice to contact_agent_cv (contact_agent_cv = agent variable)-> goes wrong

/* Check if agent is logged in */
IF LOGGED OUT AGENT contact_agent_cv then execute QTS END IF
QUEUE TO AGENT contact_agent_cv WITH PRIORITY Init_Prio
GIVE RINGBACK
Wait 30
/* after 30 seconds wait remove call from Que and QUE to Skillset */
REMOVE FROM AGENT contact_agent_cv

/* Que To Skillset */
Section QTS

QUEUE TO Skillset Init_Skill WITH PRIORITY Init_Prio
WAIT 5
EXECUTE SCRIPT Wait_Loop
------------------
Where it goes wrong :

assign Menu_Choice to contact_agent_cv (contact_agent_cv = agent variable)
Give's variable type mismatch

Can I convert an input from the ivr into an agent variable ?
or is there another way ?

In the end I want to be able to convert the DID tot the agent var
 
menu_choice is probably as type integer? and contact_agent is type agent id?

it's been a while and it's beer 30 on friday, but i believe you'll have to use where and assign statement...i.e. where menu choice = 12345 assign 12345 to contact_agent...etc. This would be a mess to maintain, the clean way to program this is using HDX...which open up a whole other can of worms.
 
I'll hope you enjoyed your beer's
Thanx !

Any other suggestions welcome !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top