how to guide tcl script use the SIP Trunk group to make call out

Version 1
    This document was generated from CDN thread

    Created by: haloha haloha on 22-05-2012 11:09:47 AM
    hi all
     
    i am new to tcl and i have 2 sip trunks to 2 VOIP service providers
     
    dial-peer voice 9999 voip
     destination-pattern 99.T
     progress_ind setup enable 3
     progress_ind progress enable 8
     voice-class codec 1
     session protocol sipv2
     session target ipv4:xxx.xxx.xxx.xxx
     dtmf-relay rtp-nte h245-signal h245-alphanumeric
    !
    dial-peer voice 880 voip
     service tac
     destination-pattern 88.T
     voice-class codec 1
     session protocol sipv2
     session target ipv4:yyy.yyy.yyy.yyy
     incoming called-number 123456
     dtmf-relay rtp-nte h245-signal h245-alphanumeric
     
    i did test the tcl script make call successfull with basic Radius Accept-Access
    and the content of Accept-Access:
    h323-return-code=0
    h323-credit-amount=1000
    h323-credit-time=100
     
     
    how do i instruct tcl script to use the dial-peer 9999 and 880 via Radius
    or
    what is VSA of Radius Accept-Access to archive my goal
     
     
    thank you
     

    Subject: RE: how to guide tcl script use the SIP Trunk group to make call out
    Replied by: Yaw-Ming Chen on 22-05-2012 12:57:26 PM
    I am not familiar with Radius so may not fully understand you question.
    In you script if you like to have particular dial-peer to handle the call then in leg setup command you can us

    -d <dialpeerHandle>—Specifies the dial-peer handle to use for the setup.

    Thanks

    Subject: RE: how to guide tcl script use the SIP Trunk group to make call out
    Replied by: Anusha Kannappan on 23-05-2012 05:38:48 AM
    Hi Haloha,

    Actually {infotag get con_all} Returns or maps to a list of all the connection IDs in the script. It is specific to the call legs.

    Thanks,
    Anusha

    Subject: RE: how to guide tcl script use the SIP Trunk group to make call out
    Replied by: haloha haloha on 23-05-2012 05:12:04 AM
    hi Yaw

    thank you for you suggestion, i will test it, because i am unable to get my lab right now

    so i have to get all connection of trunk group like command below:
    set dialpeer [string trim [infotag get con_all]]


    does it right

    thank you

    Subject: RE: how to guide tcl script use the SIP Trunk group to make call out
    Replied by: haloha haloha on 23-05-2012 05:12:04 AM
    hi Yaw

    thank you for you suggestion, i will test it, because i am unable to get my lab right now

    so i have to get all connection of trunk group like command below:
    set dialpeer [string trim [infotag get con_all]]


    does it right

    thank you