« Back to CVP - All Versions

Catch parameters on startcall

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
We have a little issue that i need get an variable that is passed through ICM called Flag and another variable that i need to get is callid as session variable. Could I get some help? Highlighted the two parametrs needed. In this case i sould be use subdialoginvoke ? How?

Thanks

Activity.log
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,newcall,
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,ani,1002
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,areacode,NA
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,exchange,NA
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,dnis,24100
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,uui,NA
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,iidigits,NA
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,parameter,Flag=1
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,parameter,callid=B89A01800001000000000097330CA8C0
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,parameter,_dnis=24100
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,start,parameter,_ani=1002
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,CVP Subdialog Start_01,enter,
192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.625,CVP Subdialog Start_01,exit,done

Hi Pedro,

You may have to use CVP_Subdialogstart and in ICM set variable you have to
give like this
Contactenate("CVP_appname",callid,flag)

Thanks,
Phani.

On Thu, May 3, 2012 at 3:21 PM, Cisco Developer Community Forums <
cdicuser@developer.cisco.com> wrote:

> Pedro Rego has created a new message in the forum "CVP - All Versions":
>
> --------------------------------------------------------------
> Hi,
>
> We have a little issue that i need get an variable that is passed through
> ICM called* Flag* and another variable that i need to get is *callid* as
> session variable. Could I get some help? Highlighted the two parametrs
> needed. In this case i sould be use subdialoginvoke ? How?
>
> Thanks
>
> *Activity.log*
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012
> 16:54:01.531,,start,newcall,
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012
> 16:54:01.531,,start,ani,1002
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012
> 16:54:01.531,,start,areacode,NA
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012
> 16:54:01.531,,start,exchange,NA
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012
> 16:54:01.531,,start,dnis,24100
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012
> 16:54:01.531,,start,uui,NA
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012
> 16:54:01.531,,start,iidigits,NA
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,*
> start,parameter,Flag=1
> *192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,,*
> start,parameter,callid=B89A01800001000000000097330CA8C0
> *192.168.12.74.1336074841531.95.filaespecial,05/03/2012
> 16:54:01.531,,start,parameter,_dnis=24100
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012
> 16:54:01.531,,start,parameter,_ani=1002
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.531,CVP
> Subdialog Start_01,enter,
> 192.168.12.74.1336074841531.95.filaespecial,05/03/2012 16:54:01.625,CVP
> Subdialog Start_01,exit,done
> --
> To respond to this post, please click the following link:
>
> <
> http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/5558925
> >
>
> or simply reply to this email.

If you are passing from ICM to studio just use ToExtVxml . For example if ani is passed from ICM into the Studio as ToExtVxml you could retrieve it using {Data.Session.ani}

Since you see the parameters showing up in the Activity Log, then the values are available as Session Data with the names you see in the log (Flag, callid).

So, to access these variables, open a Substitution window. Select the tab "Session" and enter the name of the variable Flag (or callid).

Then press the button AddTag. It'll then show up as {Data.Session.Flag} or {Data.Session.callid} - be careful as it's all case sensitive.

Hi,

We tried to get those variables as suggested by janine, we created a application modifier after the CVP subdialog start and logged the variable Flag. But we couldn't get the variable an it's value and we've got the result bellow:

Activity.log
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,newcall,
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,ani,1026
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,areacode,NA
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,exchange,NA
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,dnis,24100
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,uui,NA
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,iidigits,NA
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,parameter,Flag=1
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,parameter,callid=B16F0400000100000000009B330CA8C0
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,parameter,_dnis=24100
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,,start,parameter,_ani=1026
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.375,CVP Subdialog Start_01,enter,
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.468,CVP Subdialog Start_01,exit,done
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.468,LOG,enter,
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.468,LOG,element,warning,A substitution representing Session data named "Flag" referred to non-existent information. An empty string was substituted instead.
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.468,LOG,custom,***Flag,
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.468,LOG,exit,done
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.468,Verifica Flag,enter,
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.468,Verifica Flag,exit,NovaChamada
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.468,Audio_01,enter,
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.476,Audio_01,interaction,audio_group,initial_audio_group
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.500,Audio_01,exit,done
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.500,2_Option_Menu_01,enter,
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:49.508,2_Option_Menu_01,interaction,audio_group,initial_audio_group
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:50.859,2_Option_Menu_01,exit,
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:50.859,,end,how,hangup
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:50.859,,end,result,normal
192.168.12.74.1336137109375.101.filaespecial,05/04/2012 10:11:50.859,,end,duration,1


Is there any other way to get this variable at studio?

Thanks

RE: Catch parameters on startcall
Answer
5/4/12 3:16 PM as a reply to Rodrigo Jose Goncalves Cortines Laxe.
That's very bizarre. If it shows in the Activity Log, then the variable SHOULD be there under Session data.

1.In the Settings tab of the App Modifier, make sure you don't have Flag listed under 'Session Data to Remove'
2.Also, make sure that you have NOT added Flag to the CVP_Subdialog_Start element where it says Parameter
3.Can you log the {Data.Session.callid}? Or are you also having trouble accessing that?

Janine

Flag could be a reserved word – try “var1” or something.

Regards,
Geoff

Janine,

The problem was that the variable Flag was added to the CVP_Subdialog_Start element at parameter settings. We removed it as you suggested and now i can log the Flag variable and use it as I want. The callid was already being logged.

Thanks!

RE: Catch parameters on startcall
Answer
5/7/12 6:32 PM as a reply to Rodrigo Jose Goncalves Cortines Laxe.
Thank you Janinne and other people.