Search the Asterisk Blog

ARI Create Channel With Variables

By Joshua C. Colp

In a blog post long ago we talked about the addition of the create and dial ARI functionality for allowing channels to exist within ARI applications before they have been answered. This has seen use by various people and it came to light that it presented a slight difference in API definition in comparison to the originate functionality. It didn’t let you set variables on the channel when creating it! This resulted in people having to use the normal ARI functionality to set specific variables on the channel, instead of doing it in one step on creation.

It’s with pleasure that I can say as of Asterisk 16.11.1 and 17.5.1 we’ve rectified this difference! Just like when doing a normal channel originate you can now specify the variables to be set on the channel as part of the create process. This eliminates the additional steps for setting variables, saving time spent doing HTTP requests.

I’d also like to take this time to ask – what have you been creating with ARI? Let us know on the Asterisk community forums!

No Comments Yet

Get the conversation started!

Add to the Discussion

Your email address will not be published. Required fields are marked *

About the Author

Joshua C. Colp

Joshua Colp is a Senior Software Developer at Digium and a long time Asterisk developer. He originally started in the community submitting simple patches and grew into improving and creating new core components of Asterisk itself. He is a self-taught programmer who believes in finding the balance between doing things the way they should be done and doing what is right for the people using the software. In his spare time he enjoys smashing fax machines.

See All of Joshua C.'s Articles