cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
498
Views
0
Helpful
3
Replies

IPCC Script - why would this be done?

joannemarie
Level 1
Level 1

I am reviewing a script developed by somebody not with our company anymore. Can anybody explain why the below would be done? This is logic handling sending a caller to voicemail.

1 - set some session information (understand this!)

2 - set a _contact = ******** (this is defined as a contact variable - value null - I am not sure how this gets set to ******* - when i go into the expression editor i cannot modify it)

3 - if (_contact != null) then

true -

set enterprise call info (_contact)

false - do nothing

4 - Call redirect(triggering contact--to VM Number)

What would the purpose of step 2 and step 3 be?

3 Replies 3

joluc_denmark
Level 1
Level 1

Maybe to check if the Contact is still active?

Do you mean Set Enterprise Server Data in step 3,True ?

It is strange. When it gets to step 2, that contact variable has never been used before and has a null value. And I'm wondering how the set statement works? As I am unable to initialize a contact variable using the expression editor, unless I have my syntax incorrect.

In step 3, the true branch of the if statement is doing a 'set Enterprise Call Info' on the contact referenced in step 2.