Re: Question on ARI externalMedia

Dan Cropp <[email protected]>
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <DM6PR13MB31168B91E32AF8A6BBFB487BA3C59@DM6PR13MB3116.namprd13.prod.outlook.com>
Please disregard, I figured out what I was doing wrong.

Dan


From: Dan Cropp
Sent: Friday, January 20, 2023 11:05 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion <[email protected]>
Subject: Question on ARI externalMedia

A couple years ago, I know I had ARI externalMedia working.  Trying to figure out what I'm doing wrong today.


https://wiki.asterisk.org/wiki/display/AST/External+Media+and+ARI

My ari.conf

[general]
enabled = yes
pretty = no
allowed_origins = *

[MyApp]
type = user
read_only = no
password_format = plain
password = Password

I send this curl -v -u MyApp:Password -X POST "http://localhost:8088/ari/channels/externalMedia?channelId=1234abcd5678&app=MyApp&external_host=192.168.33.32%3A1053&format=slin16"

I can make other ARI commands work, so it must be something specific to my externalMedia command and the parameters.

The output is the following...

{"id":"1234abcd5678","name":"UnicastRTP/192.168.33.32:1053-0x7fcffc020300","state":"Down","protocol_id":"","caller":{"name":"","number":""},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"default","exten":"s","priority":1,"app_name":"AppDial2","app_data":"(Outgoing Line)"},"creationtime":"2023-01-20T10:59:24.569-0600","language":"en","channelvars":{"UNICASTRTP_LOCAL_PORT":"19194","UNICASTRTP_LOCAL_ADDRESS":"192.168.33.31"}}

Dan

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.