<div dir="ltr">You could call a local channel  that executes dialplan that dials the phone(s) with a pre-dial handler that sends a SIP header to answer the call.<div><br></div><div>It's more steps but I think you could accomplish what you want. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 7, 2017 at 7:40 AM, Arne Herbots <span dir="ltr"><<a href="mailto:arne.herbots@devoteam.com" target="_blank">arne.herbots@devoteam.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey, <div><br></div><div>I tried using ARI already, but that did not help either.</div><div>We are able to make the dial but we still had to manually click on Answer. </div><div>Since the project is about automating the complete test-scenarios, we have to eliminate every human action.  </div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-6043194393189463121gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><table style="font-family:"Times New Roman""><tbody><tr><td colspan="2" style="font-stretch:normal;font-size:13px;line-height:normal;font-family:Verdana,sans-serif;min-width:350px;color:rgb(248,72,94);font-weight:bold;padding-left:15px"><p>Arne Herbots</p></td></tr><tr><td colspan="2" style="font-stretch:normal;font-size:13px;line-height:normal;font-family:Verdana,sans-serif;color:rgb(83,86,90);padding-left:15px">IT Consultant</td></tr><tr><td colspan="2" style="font-stretch:normal;font-size:13px;line-height:normal;font-family:Verdana,sans-serif;color:rgb(83,86,90);padding-left:15px;padding-top:9px"></td></tr><tr><td colspan="2" style="font-stretch:normal;font-size:13px;line-height:normal;font-family:Verdana,sans-serif;padding-left:15px;color:rgb(83,86,90)"><a href="tel:+32+4+75+38+24+53" style="text-decoration:none;color:rgb(83,86,90)" target="_blank">+32 4 75 38 24 53</a></td></tr><tr><td colspan="2" style="font-stretch:normal;font-size:13px;line-height:normal;font-family:Verdana,sans-serif;color:rgb(248,72,94);padding-left:15px"><a href="mailto:arne.herbots@devoteam.com" style="text-decoration:none;color:rgb(248,72,94)" target="_blank">arne.herbots@devoteam.com</a></td></tr><tr><td colspan="2" height="20px"></td></tr><tr><td height="74" width="475" valign="top" border="0" style="border-collapse:collapse"><img src="http://www.devoteam.com/devoteamimg/signature_pattern_corail_devoteam.png" width="475" height="78" alt="pattern devoteam" style="border:0px;border-collapse:collapse;margin:0px;padding:0px"></td><td height="74" width="25px" valign="top" align="left" border="0" style="font-family:Verdana;border-collapse:collapse"><div style="min-height:25px"><a href="https://www.linkedin.com/company/devoteam" style="text-decoration:none" target="_blank"><img src="http://www.devoteam.com/devoteamimg/signature_linkedin.png" width="24" height="24" alt="Devoteam sur Linkedin" style="border-spacing:0px;border:0px;border-collapse:collapse"></a></div><div style="min-height:25px"><a href="https://plus.google.com/+Devoteam-group" style="text-decoration:none" target="_blank"><img src="http://www.devoteam.com/devoteamimg/signature_google.png" width="24" height="24" alt="Devoteam sur Google Plus" style="border-spacing:0px;border:0px;border-collapse:collapse"></a></div><div style="min-height:24px"><a href="https://twitter.com/devoteam" style="text-decoration:none" target="_blank"><img src="http://www.devoteam.com/devoteamimg/signature_twitter.png" width="24" height="24" alt="Devoteam sur Twitter" style="border-spacing:0px;border:0px;border-collapse:collapse"></a></div></td></tr><tr><td colspan="2"><a href="http://www.devoteam.com/" target="_blank"><img src="http://www.devoteam.com/devoteamimg/signature_logo_devoteam.png" width="150" height="58" alt="Devoteam"></a><img src="http://www.devoteam.com/devoteamimg/innovative_technology_consulting.png" width="350" height="58" alt="Innovative technology consulting for business"></td></tr></tbody></table></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On 7 September 2017 at 11:36, Marin Odrljin <span dir="ltr"><<a href="mailto:marin@maxcom.hr" target="_blank">marin@maxcom.hr</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div lang="HR" link="blue" vlink="purple"><div class="m_-6043194393189463121m_6298875915441155376WordSection1"><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Arne,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Try Asterisk ARI interface. We are using it lately and we are quite happy with it. A long time ago we have tried AGI and AMI but we have concluded that it was not worth to spend too much time on it because we couldn’t achieve all what we wanted.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I hope ARI will continue to develop because it is correct way how APIs should look like. Unfortunately there are still a lot of bugs related with Asterisk and ARI itself which are not being fixed for a long time, but you can always do some kind of workaround to prevent it or just try some other version of Asterisk. I recommend Asterisk 13 for ARI because I have discovered a memory leak problem in Asterisk 14 and ARI: <a href="https://issues.asterisk.org/jira/browse/ASTERISK-27067" target="_blank">https://issues.asterisk.org/ji<wbr>ra/browse/ASTERISK-27067</a> . I really don’t understand why such an obvious bug is not resolved till now. There are also other ARI bugs issued by me on Asterisk tracker site.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Good luck.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Marin<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <a href="mailto:asterisk-app-dev-bounces@lists.digium.com" target="_blank">asterisk-app-dev-bounces@lists<wbr>.digium.com</a> [mailto:<a href="mailto:asterisk-app-dev-bounces@lists.digium.com" target="_blank">asterisk-app-dev-bounc<wbr>es@lists.digium.com</a>] <b>On Behalf Of </b>Arne Herbots<br><b>Sent:</b> Wednesday, September 06, 2017 4:25 PM<br><b>To:</b> <a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.<wbr>com</a><br><b>Subject:</b> [asterisk-app-dev] Fwd: Asterisk Call Control<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><div><div><div><div><div><div><div><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></div></div></div></div><div><div><div><div><div><p class="MsoNormal"><u></u> <u></u></p><div><span><div><p class="MsoNormal"><span style="font-size:9.5pt">Hello everyone,<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">We are creating a setup/framework to test pbx's from several vendor (one of them being Asterisk).<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">Let me just sketch what we have now and what issues we are having at the moment.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">We started with programming everything for Cisco (CUCM) using jtapi which works.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">We can tell the pbx to set up calls, put calls on hond, extend calls,... everything works perfectly so far..<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">After that we started working on the same for Asterisk. Since we read that Astrisk works with jtapi we were hoping for a smooth development. But apparently the version of Asterisk we need to test doesn't work with jtapi.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">After some searching we started using Asterisk-Java. But this gives some problems also(or we are doing it wrong...).<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">We used the Dail-example and after some corrections we were able to do some stuff. <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">We have a set-up with 2 Zoiper phones and try to make the pbx setup a call between these two using the following line of code.<u></u><u></u></span></p></div><div><pre style="background:#2b2b2b;white-space:pre-wrap"><span style="font-size:9.0pt;color:#a9b7c6">DialActivity dial = pbx.dial(from</span><span style="font-size:9.0pt;color:#cc7832">, </span><span style="font-size:9.0pt;color:#a9b7c6">fromCallerID</span><span style="font-size:9.0pt;color:#cc7832">, </span><span style="font-size:9.0pt;color:#a9b7c6">to</span><span style="font-size:9.0pt;color:#cc7832">, </span><span style="font-size:9.0pt;color:#a9b7c6">toCallerID)</span><span style="font-size:9.0pt;color:#cc7832">;</span><span style="font-size:9.0pt;color:#a9b7c6"><u></u><u></u></span></pre></div><div><p class="MsoNormal"><span style="font-size:9.5pt">At first we thought we finally did it, we saw on one of the phones that we were being called. But problem was that this phone is the phone that should make the call, not get called. The call it receives is from the 'to' number but on the second phone nothing happens there is no call to be seen there...<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">We should be able to control who hangs up the phone, in some cases it is the called party and others the calling party<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt">If anyone has any idea where we went wrong or how we are supposed to do it, could you please help us out? <u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="font-size:9.5pt"><u></u> <u></u></span></p></div></span><div><div><div><div><div><div><div><div><div><table class="m_-6043194393189463121m_6298875915441155376MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tbody><tr><td colspan="2" style="padding:.75pt .75pt .75pt 11.25pt;font-stretch:normal;min-width:350px"><p><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#f8485e">Arne Herbots<u></u><u></u></span></b></p></td></tr><tr><td colspan="2" style="padding:.75pt .75pt .75pt 11.25pt;font-stretch:normal"><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#53565a">IT Consultant<u></u><u></u></span></p></td></tr><tr><td colspan="2" style="padding:6.75pt .75pt .75pt 11.25pt;font-stretch:normal"></td></tr><tr><td colspan="2" style="padding:.75pt .75pt .75pt 11.25pt;font-stretch:normal"><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#53565a"><a href="tel:+32+4+75+38+24+53" target="_blank"><span style="color:#53565a;text-decoration:none">+32 4 75 38 24 53</span></a><u></u><u></u></span></p></td></tr><tr><td colspan="2" style="padding:.75pt .75pt .75pt 11.25pt;font-stretch:normal"><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#f8485e"><a href="mailto:arne.herbots@devoteam.com" target="_blank"><span style="color:#f8485e;text-decoration:none">arne.herbots@devoteam.com</span></a><u></u><u></u></span></p></td></tr><tr><td colspan="2" style="padding:.75pt .75pt .75pt .75pt"></td></tr><tr style="height:55.5pt"><td width="475" valign="top" style="width:356.25pt;padding:.75pt .75pt .75pt .75pt;height:55.5pt"><p class="MsoNormal"><span style="border:solid windowtext 1.0pt;padding:0cm"><img border="0" width="475" height="78" id="m_-6043194393189463121m_6298875915441155376_x0000_i1025" src="cid:image001.jpg@01D327CC.1A6562A0" alt="Image removed by sender. pattern devoteam"></span><u></u><u></u></p></td><td valign="top" style="padding:.75pt .75pt .75pt .75pt;height:55.5pt"><div><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><a href="https://www.linkedin.com/company/devoteam" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="24" height="24" id="m_-6043194393189463121m_6298875915441155376_x0000_i1026" src="cid:image002.jpg@01D327CC.1A6562A0" alt="Image removed by sender. Devoteam sur Linkedin"></span></a><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><a href="https://plus.google.com/+Devoteam-group" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="24" height="24" id="m_-6043194393189463121m_6298875915441155376_x0000_i1027" src="cid:image002.jpg@01D327CC.1A6562A0" alt="Image removed by sender. Devoteam sur Google Plus"></span></a><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><a href="https://twitter.com/devoteam" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="24" height="24" id="m_-6043194393189463121m_6298875915441155376_x0000_i1028" src="cid:image002.jpg@01D327CC.1A6562A0" alt="Image removed by sender. Devoteam sur Twitter"></span></a><u></u><u></u></span></p></div></td></tr><tr><td colspan="2" style="padding:.75pt .75pt .75pt .75pt"><p class="MsoNormal"><a href="http://www.devoteam.com/" target="_blank"><span style="border:solid windowtext 1.0pt;padding:0cm;text-decoration:none"><img border="0" width="150" height="58" id="m_-6043194393189463121m_6298875915441155376_x0000_i1029" src="cid:image003.jpg@01D327CC.1A6562A0" alt="Image removed by sender. Devoteam"></span></a><span style="border:solid windowtext 1.0pt;padding:0cm"><img border="0" width="350" height="58" id="m_-6043194393189463121m_6298875915441155376_x0000_i1030" src="cid:image004.jpg@01D327CC.1A6562A0" alt="Image removed by sender. Innovative technology consulting for business"></span><u></u><u></u></p></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><br></div></div><span class="">______________________________<wbr>_________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank">asterisk-app-dev@lists.digium.<wbr>com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank">http://lists.digium.com/cgi-bi<wbr>n/mailman/listinfo/asterisk-ap<wbr>p-dev</a><br>
<br></span></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
asterisk-app-dev mailing list<br>
<a href="mailto:asterisk-app-dev@lists.digium.com">asterisk-app-dev@lists.digium.<wbr>com</a><br>
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank">http://lists.digium.com/cgi-<wbr>bin/mailman/listinfo/asterisk-<wbr>app-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>
</div>