How to tell an inbound ISDN leg to redirect to a different PSTN number?

Version 1
    This document was generated from CDN thread

    Created by: David Bullock on 09-08-2013 02:36:21 AM
    My entire scenario is:

      1) I have an inbound ISDN leg;
      2) I have an outbound SIP leg;
      3) from the SIP leg, I receive a SIP REDIRECT to a PSTN number;
      4) instead of establishing a new outbound leg, I want the Telco's switch to hang up on the leg to me, and try to start a leg to the target PSTN number

    Is ISDN signalling capable of this?
    Is TclIVR capable of producing the right ISDN signals? (How?)
    Could it be achieved simply with dial-peers without the need for a TclIVR script? (How?)

    thanks!
    David

    Subject: RE: How to tell an inbound ISDN leg to redirect to a different PSTN number?
    Replied by: Yaw-Ming Chen on 09-08-2013 10:21:30 AM
    Are we talking about TBCT ?
    A few questions to clear:
    3) from the SIP leg, I receive a SIP REDIRECT to a PSTN number; ---> receiving a SIP REFER ?
    4) instead of establishing a new outbound leg, I want the Telco's switch to hang up on the leg to me, and try to
    start a leg to the target PSTN number ---> So after transfer to party(XTO) answering the call, ISDN channel is released, PSTN is connecting two legs, Cisco voice gateway has no leg attached.

    If both answers are yes then it looks like a TBCT to me. Please refer to the follwoing. We can use Tcl IVR API to do that.
    http://www.cisco.com/en/US/docs/ios/voice/ivr/configuration/guide/ivr_tbct.html



    Subject: RE: How to tell an inbound ISDN leg to redirect to a different PSTN number?
    Replied by: David Bullock on 10-08-2013 10:12:01 PM
    Yaw-Ming Chen:
    I receive a SIP REDIRECT to a PSTN number; ---> receiving a SIP REFER ?

    Sorry, this was not very relevant to the question I wanted to ask.  I have an inbound call leg, and at some point in the lifetime of that leg, I want to transfer it to a pre-determined number.

    4) instead of establishing a new outbound leg, I want the Telco's switch to hang up on the leg to me, and try to 
    start a leg to the target PSTN number ---> So after transfer to party(XTO) answering the call, ISDN channel is released, PSTN is connecting two legs, Cisco voice gateway has no leg attached.
    I omitted to mention that what I want most of all is for the XTO party to see the Caller-ID of the XEE party.  Is TBCT still a solution?  It bothers me less whether the two legs to the voice gateway are released afterwards, although that's an obvious advantage.
    PS. Thanks for gently educating me on the lingo and forcing me to be precise :-)

    Subject: RE: How to tell an inbound ISDN leg to redirect to a different PSTN number?
    Replied by: Raghavendra Gutty Veeranagappa on 12-08-2013 04:09:04 AM
    Hi David,

     i think with SIP REDIRECT TCL script not able to transfer, it is possible either by receiving a SIP REFER or by sending DTMF sequence ie., *8.

    Thanks,
    Raghavendra