Is the port or channel an inbound call is received on available to TCL IVR?

Version 1
    This document was generated from CDN thread

    Created by: Keith Haugen on 11-07-2012 03:58:23 PM
    I have an e1 setup that uses PRI (such that only one voice port, with 30 channels, is configured).  I know that the gateway is aware of what port/channel the call comes in on, but I can not find a way to retrieve that information in the TCL IVR application that  handles inbound calls.  Is there any way to get that information in my TCL script?

    Subject: RE: Is the port or channel an inbound call is received on available to TCL
    Replied by: Keith Haugen on 11-07-2012 04:19:39 PM
    Yes, that is what I am referring to.  If you think of anything, let me know.  Thanks!

    Subject: RE: Is the port or channel an inbound call is received on available to TCL
    Replied by: Yaw-Ming Chen on 11-07-2012 04:15:44 PM
    If you are talking about information of "port/channel ", I cannot think of a way to get them so far.

    Subject: RE: Is the port or channel an inbound call is received on available to TCL
    Replied by: Yaw-Ming Chen on 11-07-2012 05:02:10 PM
    I don't know what will you use this info for ? real time of not real time application.
    What I am trying to say is that when call is active there is IOS command to retrieve this info and I think this can be automated.
    Don't know if you are familiar with Cisco EEM ? What we can do is that when Tcl is triggered you can use Tcl log command to send INFO syslog and syslog can trigger EEM or EEM tcl script to perform necessary IOS CLI and output the info you need to whatever destination you prefer.