[asterisk-users] Get channel variables via ARI/AMI

Joshua C. Colp jcolp at sangoma.com
Sun Jul 2 15:11:39 CDT 2023


On Sun, Jul 2, 2023 at 4:39 PM TTT <lists at telium.io> wrote:

> >> You use the AMI action Getvar[1] which allows channel variables and
> dialplan functions.
>
> >> [1]
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+ManagerAction_Getvar
>
>
>
>
> I actually tried that, and although I get “success” I never get useful
> data.  For example:
>
>
>
> action: Getvar
>
> actionid: act1
>
> channel: PJSIP/Twilio-NA-W-2-In-00000025
>
> Variable: channel(pjsip,call-id)
>
>
>
> Response: Success
>
> ActionID: act1
>
> Variable: channel(pjsip,call-id)
>
> Value:
>

CHANNEL(pjsip,call-id)

Dialplan function names are case sensitive.

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230702/941f0320/attachment.html>


More information about the asterisk-users mailing list