<font style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt">we got this working under rev 14179, not 14176 as you suggested, but its buggy<div><br></div><div>everything works fine until you run a "core restart gracefully" or "core restart now" on asterisk CLI<br><div><br></div><div>then we get 100% CPU for 10 minutes then</div><div><span style="font-family: 'Lucida Console'; font-size: small; background-color: rgb(221, 221, 221);">Fatal error: Maximum execution time of 600 seconds exceeded in /var/www/html/admin/libraries/php-asmanager.php on line 276</span></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">then CPU usage jumps around</font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">we have tracked CPU usage to AGI.sh</font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">vtiger also gets stuck in a endless loop poping up the last incomming call every 3-5 seconds after the CLI restart and click to call pops up with "call failed"</font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">a soft restart of the server does not fix</font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">full power down fixes, until the next time you restart asterisk </font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">we are going though logs to see if it possible anything on our setup</font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">to go from 14176 to 14179 and get PBX manager to work, we had to delete the vtiger directory, delete vtiger database, svn new copy, is there a command we can run to get vtiger to correctly update everything after each svn??</font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">there still is not settings under "my preferences" to disable inbound notification as suggested</font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">forcing all calls to record, is probably a better sounding idea then it is in practice, there are many places this is not legal to do with out consent from all parties on call, also you can not expect for all calls to go though vtiger.... it may be better to query the Asterisk CDR database for call records to tie to vtiger and if recording happens to be turned on link to the file audio file asterisk makes, in other words let the asterisk administrators and PBX owners decide when and what calls are going to be recorded via Asterisk, then you should have check box in PBX Manager if they want vtiger users to even have access to the recordings, I dont think many companies are going to want regular employees having access to recordings, its a very large liability</font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"> </font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2"><br></font></div><div><font face="Lucida Console" size="2">   <br></font><div><br></div><div><br><br><font size="2" face="Tahoma, Arial, Sans-Serif"><hr size="2" width="100%" align="center"><strong>From</strong>: "Rishab K" <rishab.k@vtiger.com><br><strong>Sent</strong>: Monday, August 11, 2014 12:13 PM<br><strong>To</strong>: vtiger@camden.net<br><strong>Subject</strong>: Re: [Vtigercrm-developers] Asterisk Connector & Asterisk 11</font><br><br><div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Hi,</font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px">
<font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Please provide us temporary access to your Asterisk server where Vtiger connector is installed so that we can verify from our end. Along with this share the credentials of the user where the Vtiger 6.1 is installed so that debugging the issue will be easier.</font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif" size="4"><strong>AGI vs AMI:</strong></font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Based on the suggestions from the previous I want to clarify few points that Why AGI and AMI? Why can't we use AMI alone?</font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">I agree with the scenario that you related with webform where in you want to update the personal information of the customer through webform. Same you can relate to PBXManger, using AGI we can update the call the records everytime when asterisk trigers a new event. Suppose for an inbound call, if second leg is answered then asterisk would trigger "Bridge Event" specifing who is the source and target and other info. So until the call gets terminated asterisk be trigerring new events by updating few parameters.</font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">In this case based on the events generated, Vtiger connector would parse the events and notify Vtiger regarding type of event and Vtiger will decide what needs to be done like to create new record or update the existing record. </font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><span style="white-space:pre-wrap">            </span>Asterisk <-> Vtiger Connector (AGI request) <-> Vtiger (Http request) </font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif" size="4"><strong>Why AGI? Why not AMI alone?</strong></font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Earlier version of PBXManager had a client file which used to connect to Asterisk server and wait for the events that are triggered by asterisk, parse and update in Vtiger. This was completely based on AMI alone where in Vtiger had to request Asterisk and check if there are any new events every seconds which is not proper or effient way as it would affect the performance of the product and some times overload server also. </font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Hence Vtiger Connector was written so the we can eleminate the need of polling or requesting asterisk every second. Based on the AGI URL sepecified in asterisk, asterisk knows where the connector is and will forward the event to connector. Connector has the information about Vtiger, it parses the event and sends HTTP request to connector and viceversa. </font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">We may achieve complete process using AMI alone but it has so many disadvantages which are overcomed using AGI.</font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br>
</font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif" size="4"><strong>Incoming Call Popup:</strong></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px">
<font face="arial, helvetica, sans-serif">These are action mappings that are added in profiles. So each profile under PBXManager, there will be two check boxes with these action names.</font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px">
<font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Currently we have provided an option where in you can restrict the calls to particular profile so that all the users who belong to that profile will not receive calls. But if you want to restrict few users from one profile then currently there is no option(except removing extension from "CRM Phone Extension"). May be as suggested we need to add "checkbox" in MyPreference so that user can restrict incoming calls. </font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif" size="4"><strong>Closing Incoming Call Popup:</strong></font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Currently if the popup is closed, it will be closed permanently. But as you suggested it would be great if we can allow users to set the time in MyPreferences so that popup will reappear based on the value they configure here(similar to default event duration).</font></div>
<div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px">
<br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px"><font face="arial, helvetica, sans-serif">Regards,</font></div><div class="gmail_default" style="font-size:13px"><font face="arial, helvetica, sans-serif">Rishab</font></div>
</div><br></div></div></div></font>