param CLI can be mapped to IVR either in the global application mode, or as group params or under the specific dial-peer.
config t
application
service aa flash: app-b-acd-aa.tcl
param aa-pilot 7001
Having the param under the specific dial-peer provides the flexibility by having same application to work with various dial-peers in various ways.
For Example the same AA script can be used with the different pilot numbers for different incoming called numbers.
config t
application
service aa flash: app-b-acd-aa.tcl
!
dial-peer voice 1 voip
service aa
paramspace aa aa-pilot 7001
incoming called-number 7001
!
dial-peer voice 2 voip
service aa
paramspace aa aa-pilot 7002
incoming called-number 7002
!
dial-peer voice 3 voip
service aa
paramspace aa aa-pilot 7003
incoming called-number 7003
Hope this helps someone.