# Dial options via ARI

**URL:** <https://community.asterisk.org/t/dial-options-via-ari/75315>\
**Category:** Asterisk APIs\
**Created:** [July 17, 2018, 8:35am UTC](https://community.asterisk.org/t/dial-options-via-ari/75315 "2018-07-17T08:35:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnangohar](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@adnangohar](https://community.asterisk.org/u/adnangohar)\
**Post date:** [July 17, 2018, 8:35am UTC](https://community.asterisk.org/t/dial-options-via-ari/75315/1 "2018-07-17T08:35:23Z")

</div>

Hi,

The Dial() application in Asterisk provides a few additional options that can be passed in e.g. Dial with ‘g’ continuation option,Dial with call length limit etc

Full list can be seen here : [https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Application\_Dial](https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Application_Dial)

My question is how can I pass these via ARI as under the channels dial (POST /channels/{channelId}/dial) ARI endpoint we have channelId, caller and timeout only that can be specified.

 ![image](https://global.discourse-cdn.com/asterisk/original/2X/5/5d43d1c6699768637c220f660dbcb3f47fba9ac4.png)

-Adnan

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [July 17, 2018, 9:12am UTC](https://community.asterisk.org/t/dial-options-via-ari/75315/2 "2018-07-17T09:12:33Z")

</div>

Although I haven’t used ARI myself, my understanding is that it exposes the internal APIs that native applications would use, rather than providing access to those applications. If correct, that would mean you would need to implement any of other options of Dial explicitly in your code.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [July 17, 2018, 9:13am UTC](https://community.asterisk.org/t/dial-options-via-ari/75315/3 "2018-07-17T09:13:29Z")

</div>

That is correct, it doesn’t expose the dial application. Any features you want that aren’t present, you have to implement yourself using the other primitives.

---

<div class="post-metadata">

**Author:** ![adnangohar](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@adnangohar](https://community.asterisk.org/u/adnangohar)\
**Post date:** [July 18, 2018, 7:00am UTC](https://community.asterisk.org/t/dial-options-via-ari/75315/4 "2018-07-18T07:00:52Z")

</div>

Thank you for the response.

@jcolp can you please elaborate a bit on the other primitives that are available. In the ARI documentation I don’t see any endpoint(s) which I can use to achieve this functionality.

-Adnan

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [July 18, 2018, 9:18am UTC](https://community.asterisk.org/t/dial-options-via-ari/75315/5 "2018-07-18T09:18:33Z")

</div>

You’ll need to give an example of what you want to do, but I have nothing else to add outside of the documentation… they are low level primitives that when used together can be used to implement things. Building blocks essentially. You generally won’t find any that do tons of stuff.
