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

Joshua C. Colp jcolp at sangoma.com
Mon Jul 3 10:32:29 CDT 2023


On Mon, Jul 3, 2023 at 12:28 PM TTT <lists at telium.io> wrote:

> The uppercase command made a difference.  I now get a call-id as show
> below.  However, does the call-id look valid?  The @0.0.0.0 seems strange.
>
>
>
> action: Getvar
>
> actionid: act1
>
> channel: PJSIP/Twilio-NA-W-3-In-00000028
>
> Variable: CHANNEL(pjsip,call-id)
>
>
>
>
>
> Response: Success
>
> ActionID: act1
>
> Variable: CHANNEL(pjsip,call-id)
>
> Value: 4decf884e3ae74595906283a74f7154e at 0.0.0.0
>

Call-ID within a SIP dialog is completely opaque. It is what it is.


>
>
>
>
> As well, can I request many pieces of data at once?  The syntax on this
> page (
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Function_CHANNEL)
> seems to suggest you pass a single parameter, “item”, yet passing just
> call-id did not work.  I had to pass “pjsip,call-id”.  Is the first
> parameter a category and the second the detailed item?  What if I want to
> retrieve multiple items (or all “pjsip” items)?
>

You can not request multiple at once. Some things require an initial
specifier such as pjsip, some things don't.

--
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/20230703/51082245/attachment.html>


More information about the asterisk-users mailing list