2

Is there any possibility to call the asterisk function in perl AGI script like CHANNEL function.

extension.conf

exten => _X.,1,NoOp(${CHANNEL(dahdi_channel)})

above NoOp will print the current call channel no. Same I need in perl AGI script.

RoCkStUnNeRs
  • 301
  • 1
  • 4
  • 9

1 Answers1

4

If you use perl Asterisk::AGI or fastagi version, you can use

$AGI->get_full_variable('${CHANNEL(dahdi_channel)}');
arheops
  • 15,544
  • 1
  • 21
  • 27