How to call asterisk function in perl AGI script?

1.3k Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

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

$AGI->get_full_variable('${CHANNEL(dahdi_channel)}');