Displaying 2 results from an estimated 2 matches for "id123".
Did you mean:
d123
2023 Jul 02
1
Get channel variables via ARI/AMI
...n_CHANNEL
I am trying to use the CHANNEL function listed above from the AMI. Since it is not an AMI “action”, but rather a dialplan “function”, I’m trying to figure out how to call this from the AMI. Using a telnet session to the AMI I’ve tried variations of:
action: command
actionid: id123
command: channel(PJSIP/240000-1a)
but they don’t work. Is the basic concept correct that I can using the “command” action to run a statement that would work in the dialplan? If not, how would I call “channel” from the AMI ?
Thanks
Brian
-------------- next part --------------...
2023 Jun 26
2
Get channel variables via ARI/AMI
I think that’s getting me close. I’m trying to get (or recreate) the FROM and TO lines of the header, from a system running PJSIP. I think if I use CHANNEL to get local_uri and local_tag I can recreate a FROM line like:
FROM=<URI>;tag=TAG
And if I use CHANNEL to get remote_uri and remote_tag I can recreate a FROM line like:
TO=<URI>;tag=TAG
Would it be correct to assume