ffer INVITE contains both video and audio capabilities in the SDP. Otherwise, the Early Offer INVITE has only an audio SDP. This configuration example uses CUCM 6.1 and CUBE IOS 12.4(20)T Software. 230 SIP Trunking Example 10-11 CUBE with Tcl Scripting voice service voip allow-connections sip to sip header-passing voice class codec 1 (1) codec preference 1 g711ulaw bytes 160 codec preference 2 g729r8 bytes 20 voice class codec 2 (2) codec preference 1 g711ulaw bytes 160 video codec h264 voice translation-rule 1 rule 1 voice translation-profile video translate called 1 application (3) service redirige tftp://192.x.x.x/video.tcl param prefix 3 dial-peer voice 1 voip (4) service redirige session protocol sipv2 incoming called-number codec g711ulaw dial-peer voice 2 voip (5) destination- pattern 6 voice-class codec 1 voice-class sip early-offer forced session protocol sipv2 session target ipv4:192.x.x.x dial-peer voice 3 voip (6) description video translation-profile outgoing video destination-pattern 36 voice-class codec 2 voice-class sip early-offer forced session protocol sipv2 session target ipv4:192.x.x.x Chapter 10: Deployment Scenarios 231 Notes: Defines the codecs included in the SDP of an audio only call. 2. Defines the codec included in the SDP of a video call. 3. Defines the Tcl script and its parameters to the system. Defines an incoming dial-peer that matches all calls from CUCM. The Tcl script is attached to this dial-peer and examines the CONTACT header of the INVITE received before the call is routed to match outgoing dial-peers. If the call is audio only, it does nothing and sends the call on to match an outgoing dial-peer. If video is specified in the CONTACT header, the Tcl script modifies the dialed number by prepending a "3" to the string, forcing the call to match a different outgoing dial- peer. This section defines the dial-peer that sends out outgoing audio-only calls (with codecs from voice-class 1). Calls unaltered by the Tcl script match this outgoing dial-peer. This section defines the di