<div dir="ltr">Excellent! Now we are getting somewhere.<div><br></div><div>I think sometimes I have a tough time getting my point across (aka Boyd Crowder) </div><div><br></div><div>On that note, does anyone have any examples/samples of using the AMI/API/ARI to do such tasks?</div>
<div><br></div><div>Using the AMI to write to the config files - I think that is what I need.</div><div><br></div><div>Would you be able to cite some examples of how to do that? Then, I'll be able to see what I am up against.</div>
<div><br></div><div>Glen</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 February 2014 14:38, Ben Merrills <span dir="ltr"><<a href="mailto:b.merrills@mersontech.co.uk" target="_blank">b.merrills@mersontech.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">> On Feb 6, 2014 7:14 PM, "Ben Merrills" <<a href="mailto:b.merrills@mersontech.co.uk">b.merrills@mersontech.co.uk</a>> wrote:<br>
><br>
> I suspect this is now more a question for the asterisk-users mailing list. This isn't an app-dev related question really.<br>
><br>
> > Well, yes - it does some.<br>
> ><br>
> > For what I am trying to do, what would you recommend? What available tools are out there? <br>
> ><br>
> > Thanks<br>
> ><br>
> > Glen<br>
> ><br>
> > On 6 February 2014 12:07, Ben Merrills <<a href="mailto:b.merrills@mersontech.co.uk">b.merrills@mersontech.co.uk</a>> wrote:<br>
> >Well, that's a start, I think!<br>
> >The ARI is a Little vague, as I'm wondering if you could perhaps cite a few real world examples. That way, I can get a feel for what I can do.<br>
> >Thanks!<br>
> ARI is more for creating applications, traditionally written in c, that exist as modules within asterisk. For example, app_queue. However, because ARI is REST and WebSockets based, it's not dependant on language or location (can be hosted on a different machine).<br>
><br>
> A use of ARI might be to write a replacement for app_queue, or confbridge or voicemail itself.<br>
><br>
> If you wanted to interact with app_queue, you might use AGI/AMI, but you wouldn't use ARI.<br>
><br>
> I hope that helps a little.<br>
><br>
> >Sent from my Android - if my spelling, diction or grammar is poor, please don't think that I am an idiot!<br>
> On Feb 6, 2014 11:52 AM, "Paul Belanger" <<a href="mailto:paul.belanger@polybeacon.com">paul.belanger@polybeacon.com</a>> wrote:<br>
> On Thu, Feb 6, 2014 at 10:26 AM, Glen Millard <<a href="mailto:glenmillard@gmail.com">glenmillard@gmail.com</a>> wrote:<br>
> > Hello Folks;<br>
> ><br>
> > Let's see if I can word this correctly. I wanted to use the Asterisk ARI to<br>
> > be able to do certain things from a web interface.<br>
> ><br>
> > We were hoping to do the following with it:<br>
> ><br>
> > 1. Have clients set up voicemail on the Asterisk server<br>
> > 2. Be able to record their own greeting<br>
> > 3. Configure voicemail --> email (email voicemail messages to them)<br>
> > 4. Control the number of rings - or at least the time that it takes for<br>
> > voicemail to pickup<br>
> ><br>
> > I see some of the API calls in the Swagger UI - however, I think I may just<br>
> > not be familiar with they naming / nomenclature in Asterisk .<br>
> ><br>
> > So, with the above list, and I am not looking for hand-holding, just some<br>
> > guidance.<br>
> ><br>
> > Is there a way to do these things with the use of the API or the RealTime<br>
> > Database config? If so, just some ideas on how to get started. If not, is<br>
> > there a 3rd party application/resource that someone knows of where I can do<br>
> > this by utilizing some sort of toolkit or API?<br>
> ><br>
> > Thanks so much - I really appreciate the help!<br>
> ><br>
> You can't really provision Asterisk using ARI. ARI is more a<br>
> replacement interface allowing you to create a voicemail application.<br>
> So, as it stands to day, no existing applications in asterisk<br>
> (app_queue, app_voicemail) are exposed.<br>
><br>
> Eventually somebody will write a voicemail replacement, that is<br>
> outside of asterisk (using ARI) and they will likely expose some API<br>
> to allow 3rd party applications to provision them.<br>
><br>
> Hopefully that helps.<br>
><br>
> --<br>
> Paul Belanger | PolyBeacon, Inc.<br>
> Jabber: <a href="mailto:paul.belanger@polybeacon.com">paul.belanger@polybeacon.com</a> | IRC: pabelanger (Freenode)<br>
> Github: <a href="https://github.com/pabelanger" target="_blank">https://github.com/pabelanger</a> | Twitter: <a href="https://twitter.com/pabelanger" target="_blank">https://twitter.com/pabelanger</a><br>
><br>
> _______________________________________________<br>
> asterisk-app-dev mailing list<br>
> <a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.com</a><br>
> <a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
><br>
> _______________________________________________<br>
> asterisk-app-dev mailing list<br>
> <a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.com</a><br>
> <a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
><br>
><br>
> _______________________________________________<br>
> asterisk-app-dev mailing list<br>
> <a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.com</a><br>
> <a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
> Oh I don't know, this mailing list is for people wanting to create applications using any of asterisk's interfaces.<br>
> I'd probably say you want to be looking at the AMI to do what you want, AGI is really aimed at internal to asterisk<br>
<br>
</div></div>I suspect most of what Glen wants to achieve could be done using RealTime and shared storage. However, AMI could be used to write the config files if realtime wasn't an option.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br>
</div></div></blockquote></div><br></div>