I am wondering if TCL script can destroy connection of two legs and play greeting to both leg simultaneously.
Is it possible that this sequence would work correctly?
connection destroy
media play leg_incoming in_greatings.au
media play leg_incoming out_greatings.au
connection create $incoming $outgoing
I am not developer, so any help is appreciated.
Krzysztof
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yes
1. connection destroy all
2. Upon receiving ev_destroy_done event
media play leg_incoming in_greatings.au
media play leg_outgoing out_greatings.au
3. Will have 2 ev_media_done events
When receives last ev_media_done
connection create $incoming $outgoing
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.