04-30-2015 04:42 AM
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
Solved! Go to Solution.
05-05-2015 05:07 AM
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
04-30-2015 05:03 AM
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
04-30-2015 05:17 AM
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
04-30-2015 05:42 AM
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
04-30-2015 05:44 AM
Thanks Raghavendra,
yeah, seems better. will try Handoff.
04-30-2015 06:14 AM
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
04-30-2015 06:36 AM
No You can't use both same time.
Thanks,
Raghavendra
04-30-2015 06:38 AM
Any other way to update the destination number without using leg setup ?
04-30-2015 09:56 PM
you can try as below but this will handoff to default app.
handoff appl leg_incoming default "DESTINATION=$dest"
call close
Thanks,
Raghavendra
05-01-2015 05:38 AM
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
05-04-2015 03:13 AM
why don't use http code in survivability script instead of doing handoff? why you want another script any specific reasons ?
Thanks,
Raghavendra
05-05-2015 05:07 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide