<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Yes, this would most likely be a better solution (REST API is in Asterisk 12), just be careful about putting your dialplan in a Real Time Database. You sometimes have to do things a little different if your dialplan is in the RTDB. As well you need to make sure security is locked down when using this approach, but security is needed for all approaches.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jacob<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>James Wystead<br><b>Sent:</b> Monday, January 13, 2014 7:24 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] Asterisk API<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Good Day, Ishfaq;<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>This may be a much better idea than the REST API. <o:p></o:p></p></div><div><p class=MsoNormal>Correct me if I'm wrong, but the concept is this:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You write to the database, and this gives the same result as perhaps modifying the dialplan, sip, voicemail, etc *without* having to physically modify the extensions.conf, sip.conf, voicemail.conf?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Am I on the right track?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks! <o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Mon, Jan 13, 2014 at 4:16 AM, Ishfaq Malik <<a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal>On 10 January 2014 17:12, James Wystead <<a href="mailto:szilverthorne@gmail.com" target="_blank">szilverthorne@gmail.com</a>> wrote:<o:p></o:p></p><div><p class=MsoNormal>Hello Folks;<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I have an Asterisk server <o:p></o:p></p></div><div><p class=MsoNormal>Asterisk 11.7.0 built by root @xxxxxxxxxxx on a x86_64 running Linux on 2013-12-27 18:47:44 UTC<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>No FreePBX, no AsteriskNOW, no Elastix. Just Asterisk.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Is there an API out there that anyone knows of that I can pass commands, etc to Asterisk? Creating Extensions, adding voicemail users, setting up voicemail, etc?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I'm kind of clueless. Is there something available?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks - Glen<o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div></div></div><div><p class=MsoNormal>You could use asterisk realtime architecture and use your favourite database to hold peer/voicemail/dialplan configuration.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><a href="https://wiki.asterisk.org/wiki/display/AST/Realtime+Database+Configuration" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Realtime+Database+Configuration</a> <o:p></o:p></p></div></div><p class=MsoNormal><br><br clear=all><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <o:p></o:p></p><div><pre>Ishfaq Malik <o:p></o:p></pre><pre>Department: VOIP Support<o:p></o:p></pre><pre>Company: Packnet Limited<o:p></o:p></pre><pre>t: <a href="tel:%2B44%20%280%29845%20004%204994" target="_blank">+44 (0)845 004 4994</a><o:p></o:p></pre><pre>f: <a href="tel:%2B44%20%280%29161%20660%209825" target="_blank">+44 (0)161 660 9825</a><o:p></o:p></pre><pre>e: <a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a><o:p></o:p></pre><pre>w: <a href="http://www.pack-net.co.uk" target="_blank">http://www.pack-net.co.uk</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Registered Address: PACKNET LIMITED, Duplex 2, Ducie House<o:p></o:p></pre><pre>37 Ducie Street <o:p></o:p></pre><pre>Manchester, M1 2JW<o:p></o:p></pre><pre>COMPANY REG NO. 04920552<o:p></o:p></pre></div></div></div><p class=MsoNormal><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>