My PHP script is using AMI's Originate command to make two-way calls.<br>The originate connects the first leg of the calls, plays a file to the<br>first called party, and then uses Dial() from the dialplan to dial the<br>
other leg of the call.<br><br>I'm noticing that only about 30% of the calls make it through successfully.<br>In looking at Asterisk's CDR's, I have noticed a lot of "NO ANSWER" and<br>even more "FAILED" call dispositions. It seems that there is a patter of
<br>NO ANSWER being followed by a FAILED immediately after. Although, some<br>records break this (either vice-versa or a single record of one of them).<br><br>My problem is that I am under pretty high volume (say 500+ calls) a day,
<br>and I don't have any way of figuring out what is causing this. Whenever<br>I test my script manually, I don't have the problem.<br><br>Somethings that come to mind are: Lack of Server Resources, VoIP<br>Provider issues, and Invalid Phone #'s.
<br><br>I doubt my VoIP provider, Asterlink, is not able to handle my volume<br>(usually no more than 6 or 8 calls simultaneously). My server load<br>averages are far below alarm, and I have more than 50MB of free RAM when
<br>6 calls are going through. I have checked for invalid phone numbers, and<br>that is not the case either.<br><br>Here's a couple things I noticed were showing up in the<br>/var/log/asterisk/messages quite frequently:
<br><br>WARNING[2220] cdr.c: CDR already initialized on '**Unknown**' #this<br>shows up a lot!<br><br>and<br><br>WARNING[2897] cdr.c: Cause not handled<br> WARNING[2266] chan_sip.c: Remote host can't match request BYE to call
<br>'<a href="mailto:349825703425@asterlink.com">349825703425@asterlink.com</a>'. Giving up.<br><br><br><br>Any suggestions on how to better troubleshoot this?<br><br>Thanks!