Distant End Confirm Call

Version 1
    This document was generated from CDN thread

    Created by: JAMES DEPHILLIP II on 25-10-2010 04:38:09 PM
    Is it possible to have the incoming caller placed on hold until the remote party accepts the call by pressing a 1?

    Subject: RE: Distant End Confirm Call
    Replied by: Yaw-Ming Chen on 25-10-2010 04:46:50 PM
    Remote party means ? calling or called ?
     
    But anyway yes, we can place incoming on hold.
     
     

    Subject: RE: Distant End Confirm Call
    Replied by: JAMES DEPHILLIP II on 25-10-2010 05:26:10 PM
    Called party.  When a user from the PSTN calls in they get a message to wait until the person they are calling confirms the call.  Then the person that they are calling gets a message saying to confirm by pressing 1.

    Subject: RE: Distant End Confirm Call
    Replied by: Yaw-Ming Chen on 25-10-2010 05:36:08 PM
    There are couple of ways to do that.
     
    One is as soon as you get ls_000 you do "connection destroy con_all" this will break the coneection of two legs but still holding to leg seperately.
    Now you play media to calling and collect digit from called. after confirm use "connection create" to re-connect two legs.
     
    or use "-l" option, it won't connect two legs until "connection create" is issued. Please refer to Cisco BACD script.
     
    Thanks !

    Subject: RE: Distant End Confirm Call
    Replied by: JAMES DEPHILLIP II on 25-10-2010 05:50:06 PM
    When you say use the -l option what are you referring to?

    Subject: RE: Distant End Confirm Call
    Replied by: Yaw-Ming Chen on 25-10-2010 05:58:22 PM
    Please look at the BACD script see how it uses leg setup command with "-l" option
     
    http://www.cisco.com/cgi-bin/tablebuild.pl/tclware
     
    You won't see it in programming guide but it works like what I described.
     
    Thanks !

    Subject: RE: Distant End Confirm Call
    Replied by: Yaw-Ming Chen on 25-10-2010 07:04:35 PM
    Do you mean without "-l" you saw  the calling number ?
     
    Please check it before setup to see if we get it first. If we do get it use callInfo(originationNum) to get it out


    proc act_Setup { } {
    leg setupack leg_incoming
    set dnis [infotag get leg_dnis]
    puts $dnis

    set ani [infotag get leg_ani]

    puts "ANI is : $ani"
     
    set callInfo(originationNum) $ani
     
    leg proceeding leg_incoming
    leg setup $dnis callInfo -l leg_incoming
    }

    Subject: RE: Distant End Confirm Call
    Replied by: JAMES DEPHILLIP II on 25-10-2010 06:38:35 PM
    So I did the -l option but it doesn't show any call information (From Unknown Number).  How can I remedy this?  Can I use display information on the outgoing leg?
     

    proc act_Setup { } {
    leg setupack leg_incoming
    set dnis [infotag get leg_dnis]
    puts $dnis
    leg proceeding leg_incoming
    leg setup $dnis callInfo -l leg_incoming
    }  
     
    proc act_Split { } {
    media play leg_outgoing flash:en_media_record.au
    media play leg_incoming flash:en_media_record.au
    }
     
    proc act_Cleanup { } {
    call close

     
    #---------------------------------- 
    #   State Machine 
    #---------------------------------- 
     set TopFSM(any_state,ev_disconnected) "act_Cleanup same_state"
     set TopFSM(CALL_INIT,ev_setup_indication) "act_Setup PLACECALL"
     set TopFSM(PLACECALL,ev_setup_done) "act_Split MEDIA"
     set TopFSM(CALLACTIVE,ev_disconnected)   "act_Cleanup,CALLDISCONNECTED" 
     set TopFSM(CALLDISCONNECTED,ev_disconnect_done) "act_Cleanup,same_state"
     
     fsm define TopFSM CALL_INIT