[cisco-voip] tcl 2.0

Teodor Georgiev tgeorgiev at is-bg.net
Wed Jan 18 08:49:19 EST 2006


On Friday 13 January 2006 00:01, Andriy A. Yerofyeyev wrote:
> All -
>
> If somebody feels comfortable with tcl 2.0 or VoiceXML - your advices
> will be very appreciated.
>
> Some simple question:
> Could our script do the following:
>
> 1. Redirect sip call to PSTN number (111)111-1111
> 2. In case failure (busy , etc) make another call to (222)222-2222
>
> ?


1. You want to redirect any incoming call a number of 111-111-1111 or ?
Specify pls.

2. Yes, it is possible. Using the infotag "get evt_last_disconnect_cause" to 
get the disconnect cause of the call and then compare it with a set of 
possible disconnect causes (user busy - 017, no route to destination - 003, 
and etc)

Something like:

set cause  [infotag get evt_last disconnect_cause]

if { $cause == "di_017" }  { 

go for another call

}

The "catch" the event via the FSM state machine and that is.






More information about the cisco-voip mailing list