Hi Everyone,

I am dealing with a problem for now and its really annoying.

I want to hangup calls from AGI but it seems that my AGI is not rejecting
the calls properly.

        {
            $agi->verbose("number-not-in-service");
            $agi->exec("Congestion","1");
            $agi->hangup();
            exit;
        }

with the above logic, all of my calls should be rejected and should be
disconnected instantaneously.

But this doesn't seem to be happening, in asterisk CLI I can see
that AGI is executing multiple times.

Can anyone tell what I am doing wrong?

Thanks.
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to