<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 11, 2015 at 1:50 AM, Oscar <span dir="ltr"><<a href="mailto:scriviaoscar@yahoo.it" target="_blank">scriviaoscar@yahoo.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:verdana,helvetica,sans-serif;font-size:13px"><div><span style="color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)">How create a dialplan (more exten in sequence) from ARI?</span><br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)"><br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)"></div></div></div></blockquote><div><br></div><div>ARI is not dialplan execution. ARI allows you to build an application that the dialplan executes.<br><br></div><div>See the overview article on the Asterisk wiki for more explanation [1].<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:verdana,helvetica,sans-serif;font-size:13px"><div><span style="color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)">My goal is:</span><br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)"><br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)"><span style="color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)">in automatic asterisk launch a call (cron php curl), when the caller answer then start one or more exten...</span></div><div><br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)"><span style="color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)">I would to create one or more exten from ARI in sequence (not one exten alone, like a simple command from curl "http://...</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:14px;line-height:18.1818px;background-color:rgb(243,249,244)">/channels/{channel_id}/play/</span><span style="color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)">").</span></div><div><br></div></div></div></blockquote><div><br></div><div>I'm not sure what you mean by "create exten", as that's not a concept in Asterisk. An extension is a location in the dialplan that a channel can execute; you typically don't create them dynamically.<br><br></div><div>It sounds like you want to create outbound channels and play media to them. That is achievable using ARI. Through ARI, you can:<br></div><div>* Create channels using the POST /channels operation, and place them in your Stasis application [2]<br></div><div>* Control the channels in your Stasis application, including playing media to them using POST /channels/{channel_id}/play [3]<br></div><div>* Release channels back to the dialplan using POST /channels/{channel_id}/continue [4], or hang them up using DELETE /channels/{channel_id} [5]<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:verdana,helvetica,sans-serif;font-size:13px"><div></div><div><font color="#333333" face="Lucida Grande, Trebuchet MS, Verdana, Helvetica, Arial, sans-serif"><span style="font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)">ps. where is more ARI documents?</span></font><br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)"><br style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)"></div></div></div></blockquote><div><br></div><div>Documentation for ARI is on the Asterisk wiki. Several walk through tutorials have been written that cover basic usage of ARI and a Stasis application; manipulation of channels, bridges, and media; and more [1]. Code examples for those tutorials are on Github [6], and are available in a variety of languages, including Python, JavaScript, and C#.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:verdana,helvetica,sans-serif;font-size:13px"><div><span style="color:rgb(51,51,51);font-family:"Lucida Grande","Trebuchet MS",Verdana,Helvetica,Arial,sans-serif;font-size:13.1px;line-height:18.34px;background-color:rgb(225,235,242)">thanks a lot</span><span></span></div><div></div><div> </div></div></div></blockquote></div><br>[1] <a href="https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=29395573">https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=29395573</a><br>[2] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-originate">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-originate</a><br>[3] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-play">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-play</a><br>[4] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-continueInDialplan">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-continueInDialplan</a><br>[5] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-hangup">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API#Asterisk13ChannelsRESTAPI-hangup</a><br>[6] <a href="https://github.com/asterisk/ari-examples">https://github.com/asterisk/ari-examples</a><br><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div></div></div>
</div></div>