DNIS on out-bound service

Version 1
    This document was generated from CDN thread

    Created by: Martin Lajoie on 07-04-2009 11:47:00 PM
    I would like to create an outbound TCL script that conditionnaly change the caller ID informations. My script is configured as an out-bound service in my dial peer because the call is originating by IP Phones to PSTN. The problem that I can't get DNIS information from the leg, so I can't place the call after changing the information. Any idea?
     
    Thanks,

    Subject: RE: DNIS on out-bound service
    Replied by: VijayPrasad Neelamegam on 08-04-2009 06:27:56 AM
     
     
     

    You can use evt_handoff dnis api to retreive the dnis info from the leg.
     
    Eg:
    set dest [infotag get evt_handoff dnis]
     
    Once you receive ev_handoff event,this API should be executed.The usuage is explained in TCL Programmer Guide.
     
    Hope this Helps
     
    Thanks

    Subject: RE: DNIS on out-bound service
    Replied by: Martin Lajoie on 08-04-2009 12:39:10 PM
    Thanks, it's working now...
     

    Subject: RE: DNIS on out-bound service
    Replied by: Andrey Mushatenko on 09-11-2009 08:22:38 AM
    Thanks, it's working now...
     

     
    Hi. 
     
    I try resolve some problem.
     
    Can you post working example for out-bound tcl script?
     
    Thanks

    Subject: RE: DNIS on out-bound service
    Replied by: VijayPrasad Neelamegam on 11-11-2009 05:14:08 AM
    Hi Andrey,
     
    There is no such big difference for outbound and inbound script.Outbound script's are get invoked by ev_handoff event and,we no need to give leg proceeding and leg setupack.
     
    Hope this helps
     
    Thanks
    Vijay

    Subject: RE: DNIS on out-bound service
    Replied by: YAW-MING CHEN on 11-11-2009 10:50:25 PM
    I think you may not get the DNIS
     
    for incoming you do  "infotag get leg_dnis"
    but for outgoing you should do "infotag get evt_handoff dnis"
     
    Thanks,
     
    Yawming

    Subject: RE: DNIS on out-bound service
    Replied by: Andrey Mushatenko on 11-11-2009 10:04:21 PM
    Hi VijayPrasad, 
     
    I ask about working example, because I do it how you say. But my call is terminated:
    1. No route to destination.
    2. recovery timer expired. 
     
    Do i need in script give "leg setup $dnis callInfo leg_incoming"? 

    Subject: RE: DNIS on out-bound service
    Replied by: Andrey Mushatenko on 12-11-2009 06:35:58 AM
    I write to debug 
    puts "\n DNIS: $dnis \n" 
    And in debug I see normal number. 
     
    Can you post working example listing of tcl script working on out-bound dial-peer? 

    Subject: RE: DNIS on out-bound service
    Replied by: VijayPrasad Neelamegam on 13-11-2009 06:16:30 AM
    Hi Andrey,
     
    Yes you need to give leg setup $dnis callInfo leg_incoming in script to establish the call.Are you getting any error or your call is looped?
     
    kinldy provide me your logs with following debusg enabled
     
    debug voip application tcl
    debug voip application script
    debug voip application state
    debug voip application core
     
    thanks
    Vijay