<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)"><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black">Hi Everyone,</font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black"><br></font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black">I am dealing with a problem for now and its really annoying.</font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black"><br></font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black">I want to hangup calls from AGI but it seems that my AGI is not rejecting the calls properly.</font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black"><br></font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><div><font color="black"> {</font></div><div><font color="black"> $agi->verbose("number-not-in-service");</font></div><div><font color="black"> $agi->exec("Congestion","1");</font></div><div><font color="black"> $agi->hangup();</font></div><div><font color="black"> exit;</font></div><div><font color="black"> }</font></div></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black"><br></font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black">with the above logic, all of my calls should be rejected and should be disconnected instantaneously.</font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black"><br></font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black">But this doesn't seem to be happening, in asterisk CLI I can see that AGI is executing multiple times.</font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black"><br></font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black">Can anyone tell what I am doing wrong?</font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black"><br></font></font></div><div style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><font face="tahoma,sans-serif" size="2" color="#222222"><font color="black">Thanks.</font></font></div></div>
</div>