<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=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
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;
mso-fareast-language:HR;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=HR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Hi Arne,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>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">https://issues.asterisk.org/jira/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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Good luck.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Marin<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></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"'> asterisk-app-dev-bounces@lists.digium.com [mailto:asterisk-app-dev-bounces@lists.digium.com] <b>On Behalf Of </b>Arne Herbots<br><b>Sent:</b> Wednesday, September 06, 2017 4:25 PM<br><b>To:</b> asterisk-app-dev@lists.digium.com<br><b>Subject:</b> [asterisk-app-dev] Fwd: Asterisk Call Control<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><div><div><div><div><div><div><div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></div></div></div></div></div><div><div><div><div><div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span style='font-size:9.5pt'>Hello everyone,<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p> </o:p></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).<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p> </o:p></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.<o:p></o:p></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.<o:p></o:p></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..<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p> </o:p></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.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p> </o:p></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...).<o:p></o:p></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. <o:p></o:p></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.<o:p></o:p></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'><o:p></o:p></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...<o:p></o:p></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<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p> </o:p></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? <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'><o:p> </o:p></span></p></div><div><div><div><div><div><div><div><div><div><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='border-collapse:collapse'><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<o:p></o:p></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<o:p></o:p></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><o:p></o:p></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><o:p></o:p></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="_x0000_i1025" src="cid:image001.jpg@01D327CC.1A6562A0" alt="Image removed by sender. pattern devoteam"></span><o:p></o:p></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="_x0000_i1026" src="cid:image002.jpg@01D327CC.1A6562A0" alt="Image removed by sender. Devoteam sur Linkedin"></span></a><o:p></o:p></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="_x0000_i1027" src="cid:image002.jpg@01D327CC.1A6562A0" alt="Image removed by sender. Devoteam sur Google Plus"></span></a><o:p></o:p></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="_x0000_i1028" src="cid:image002.jpg@01D327CC.1A6562A0" alt="Image removed by sender. Devoteam sur Twitter"></span></a><o:p></o:p></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="_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="_x0000_i1030" src="cid:image004.jpg@01D327CC.1A6562A0" alt="Image removed by sender. Innovative technology consulting for business"></span><o:p></o:p></p></td></tr></table></div></div></div></div></div></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>