Problem description:
I need to trigger TCL script on Cisco AS5350 gateway when VoIP call hits SIP dial-peer.
Note that this is not IVR TCL script to provide dial-tone or Auto Attendant but script to trigger configuration change.
The gateway supports also EEM v1.0 – if that might be used to achieve the desired behavior.
I made simple TCL script which is loaded into both flash: and nvram: memory but still when the script is invoked (a call hits inbound SIP VoIP DialPeer ) nothing happens and in the log I get following Error :
Jan 17 18:21:39: %CALL_CONTROL-6-APP_NOT_FOUND: Application ascending in dial-peer 1000 not found
Here is output for the state of the script and the script itself – the script is Loaded but not Registered and this is most probably the reason for failure:
#show call application voice ascending
Script Name : ascending
URL : nvram:[login to view URL]
Type : Service
State: Loaded
Life : Configured
Exec Instances: 0
Script Code Begin:
--------------------------------
TCL Script version 2.2 or above
ios_config "interface Dchannel3/0" "isdn bchan-number-order ascending"
--------------------------------
And here is the config of the dial-peer which triggers it:
dial-peer voice 1000 voip
translation-profile incoming chg_to7001#
service ascending
voice-class codec 1
session protocol sipv2
incoming called-number 7000#.