cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1980
Views
0
Helpful
11
Replies

Calling Another TCL script from with in TCL script

AshG
Level 4
Level 4

Hi,

Is it possible to call another TCL application from with in tcl app?

or otherwise is it possible to assign two TCL Application to single dial peer to execute in series. i.e once first application is finished then second executes.

Thanks

Ashish

1 Accepted Solution

Accepted Solutions

Hi Raghavendra,

Yes that's what we are thinking now.

Our app started its life on its own and later we discovered the need of survivability , that's why we were looking in to options but now it seems that we will have to merge our app with survivability.

Thanks
Ashish

View solution in original post

11 Replies 11

Raghavendra G V
Cisco Employee
Cisco Employee

Hi Ashish,

You can use sendmsg command to communicate with other tcl app. For more information please refer TCL IVR programming guide.

Sends a message to another application instance.
Syntax
sendmsg {<app-name> | <handle>} -p <parameter_array>
Arguments
• <app-name>—Creates a new instance using this application name.
• <handle>—The handle of an existing application instance.
• -p <parameter_array>—A Tcl array containing the list of parameters to pass.

Thanks,
Raghavendra

Thanks Raghavendra,

Will try that.

Below is the exact scenario.

Our Custom.tcl will run and update the destination number based on http output.

Then custom.tcl handover the call to survivability.tcl  and comes out of call path.

Possible?

Thanks

Ashish

If you want handoff to another app then you can use handoff command.


Syntax
handoff {appl | callappl} {legID | info-tag} [{legID2 | info-tag2} ...] {app-name | <handle>} [-s
<argstring>]

Thanks,
Raghavendra

Thanks Raghavendra,

yeah, seems better. will try Handoff.

Hi Raghavendra

Just wondering, Can we use handoff in conjunction with leg Setup ?

Currently we use Leg Setup to update the DN, however as soon as leg setup is executed call left the script.

Below is the command we are using.

Set dest "08001234567"
leg setup $dest callinfo leg_incoming

No You can't use both same time.

Thanks,

Raghavendra

Any other way to update the destination number without using leg setup ?

you can try as below but this will handoff to default app.

handoff appl leg_incoming default "DESTINATION=$dest"

call close

Thanks,

Raghavendra

Hi Raghavendra,

Default application will not solve our issue. We need a way to bring survivability.tcl in call path after we have finished our custom.tcl.

Any suggestions?

Thanks

Ashish

why don't use http code in survivability script instead of doing handoff? why you want another script any specific reasons ?

Thanks,

Raghavendra

Hi Raghavendra,

Yes that's what we are thinking now.

Our app started its life on its own and later we discovered the need of survivability , that's why we were looking in to options but now it seems that we will have to merge our app with survivability.

Thanks
Ashish