Question On ARI ExternalMedia

Home » Asterisk Users » Question On ARI ExternalMedia
Asterisk Users 1 Comment

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

One thought on - Question On ARI ExternalMedia

  • 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
    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