cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
863
Views
1
Helpful
5
Replies

TCL with CVP

Hi guys I have running on a gw the services tcls for CVP application... but I want the call to match first a TCL that check working hours... and then if its on a working hour send the call to a voip dial-peer which that has associated on CVP application, and if its not a working hour send the call to other CVP application...

In the first TCL I put:

set dest "*5001"

                  leg proceeding leg_incoming

                  leg setup $dest callInfo leg_incoming

                  fsm setstate PLACECALL

and I had a *5001 voip dial peer that call the CVP app....

It´s work all except that when I hang off the call.. the tcl for CVP  close the call perfectly but the first TCL keep 30 seconds before hanging off..

Do you think is better making a handoff from the first TCL to the second rather than connecting the call to the dial-peer that has the second TCL attached ??

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: TCL with CVP

I think this has something to do with your CVP script. Not saying anything wrong with that script just that if we want to handoff to other script they are a pair have to have proper hand shaking.

See if we can do this approach. Require a dialpeer for CVP app

handoff appl leg_incoming default "DESTINATION=$pilot_of_CVP"

call close

5 REPLIES 5

Re: TCL with CVP

What I want is just  a TCL to check if the call arrives in a working hour or not,,, and then just execute the TCL for CVP....

I also tried without success

handoff appl leg_incoming aa_pre

After that command the whole call control is passed to the second app (understand that from guide)..

After doing that command what happend on the first TCL it will continue executing more commands  or the session for that Tcl will be closed automatically ??

Highlighted
Cisco Employee

Re: TCL with CVP

issue "call close" after handoff

handoff appl leg_incoming $aa_pre -s "some string to pass if needed"

call close

Re: TCL with CVP

Still no luck I cant heard any audio from CVP

debug voip app  script

Jul 21 22:00:24.202: //-1/402184338E19/CCAPI/cc_api_call_setup_ind_common:

   Sub Calling(TON=Unknown, NPI=Unknown, Data=r(, Length=61)

Jul 21 22:00:24.202: //-1/402184338E19/CCAPI/cc_api_call_setup_ind_common:

   Sub Called(TON=Network, NPI=Unknown, Data=7=\t, Length=3)

Jul 21 22:00:24.202: //983//TCL :/tcl_PutsObjCmd:

Dia de la semana: 1

Jul 21 22:00:24.202:

Jul 21 22:00:24.202: //983//TCL :/tcl_PutsObjCmd:

Hora: 22

Jul 21 22:00:24.202:

Jul 21 22:00:24.202: //983//TCL :/tcl_PutsObjCmd:

Fuera de horas

Jul 21 22:00:24.202:

Jul 21 22:00:24.206: //983//TCL :/tcl_PutsObjCmd:

TCL CVP: ******* Procedure ReturnFromHandoff - returning from VXML Server ******** CallID = 40218433105911E48E19EA2059709E41

Jul 21 22:00:24.206: //983//TCL :/tcl_PutsObjCmd:

TCL CVP: ******* destination = , rona = 60, app = , primary = , backup = , port = , prevapp = , survive = , var1 = , var2 = , var3 = , var4 = , var5 =  ******** CallID = 40218433105911E48E19EA2059709E41

Jul 21 22:00:24.206: //983//TCL :/tcl_PutsObjCmd:

TCL CVP: ******* Initiating transfer from ANI = 1135737052 to DNIS =  ******* CallID = 40218433105911E48E19EA2059709E41

Jul 21 22:00:24.206: //983//TCL :/tcl_PutsObjCmd:

TCL CVP: ******* Procedure TransferDone - status of leg setup is ls_004 ******** CallID = 40218433105911E48E19EA2059709E41

Jul 21 22:00:24.206: //983//TCL :/tcl_PutsObjCmd:

TCL CVP: ******* Call setup failed: CVP reason: ls_004  - disconnecting caller ******* CallID = 40218433105911E48E19EA2059709E41

debug voip app error

Jul 21 22:04:06.846: //-1/C4D64A0A8E1F/CCAPI/cc_api_call_setup_ind_common:

   Sub Calling(TON=Unknown, NPI=Unknown, Data=r(, Length=61)

Jul 21 22:04:06.846: //-1/C4D64A0A8E1F/CCAPI/cc_api_call_setup_ind_common:

   Sub Called(TON=Network, NPI=Unknown, Data=7=\t, Length=3)

Jul 21 22:04:06.846: //-1//AFW_:/AFW_Module_ParseHandle: ERROR: Expecting separator char after Module name

Jul 21 22:04:06.850: //-1//AFW_:/AFW_Util_CopyLegServiceCodeToCallInfoContainer: Service Code not available on Leg

Jul 21 22:04:06.850: //-1//AFW_:/AFW_Util_CopyLegRouteCodeToCallInfoContainer: Route Code not available on Leg

Jul 21 22:04:06.850: //-1//AFW_:/AFW_Util_GetTgCicValue: CIC Not  found for tag(56)

Jul 21 22:04:06.850: //-1//AFW_:/AFW_Util_CopyMLPPDataToCallInfoContainer: Voice MLPP not configured

Jul 21 22:04:06.850: //-1//AFW_:/AFW_Util_CopyMLPPDataToCallInfoContainer: Voice MLPP not configured

Jul 21 22:04:06.850: //984//Dest:/DestQ_AddEntry: Not a valid E.164/URL destination -

Jul 21 22:04:06.850: //984//Dest:/AFW_Destination_AddDest: Destination number/URI is invalid

In the debugs I see like if destination is not valid ???  If I tried to make a leg setup $dest callInfo  (insted of handoff app) and $dest is the pilot of CVP  I heard the audio .. the same if I directly apply the CVP script to the incomming dial peer

Cisco Employee

Re: TCL with CVP

I think this has something to do with your CVP script. Not saying anything wrong with that script just that if we want to handoff to other script they are a pair have to have proper hand shaking.

See if we can do this approach. Require a dialpeer for CVP app

handoff appl leg_incoming default "DESTINATION=$pilot_of_CVP"

call close

Re: TCL with CVP

I was trying handoff appl leg_incoming aa_app "DESTINATION=$dest"

forgot to change aa_pp for default app

Now that you remember me to do that works like a charm....

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards