[asterisk-users] help - How to send hangup command to call in progress.

Singh Saimbhi Singh.Saimbhi at palm.com
Wed Mar 25 23:28:26 CDT 2009


Hello Andy,

I am using Net::Telnet to setup a session and using Manger API to call out:

        $session->print(h2s(
            Action     => "Originate",
            Extension  => "s",
            Context    => $options{context},
            Channel    => "$options{channel}/$number",
            MaxRetries => $options{maxretries},
            RetryTime  => $options{retrytime},
            WaitTime   => $options{waittime},
            Priority   => 1,
            Variable   => "callduration=$options{callduration}",
            AbsoluteTimeout => 2,
        ));

Now, for some reason the WaitTime out is not working as expected. No matter what number I put it in it keeps on ringing on the other side.  So, I was think of some how capture the current call session from asterisk and send the hangup as you suggested.

I want to end the call in a given time length since we are doing some stress testing.  Call time starts after we run the script and ends it should end after specific time lets, say 25sec later.

Thanks,
Singh




-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Andy Kuo
Sent: Wednesday, March 25, 2009 9:06 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] help - How to send hangup command to call in progress.

Hi Singh,

Have you tried "soft hangup"?

Andy

On Wed, Mar 25, 2009 at 4:38 PM, Singh Saimbhi <Singh.Saimbhi at palm.com> wrote:
> Hi,
>
>
>
> I want to send hangup command to the call which was logged in earlier via
> cli.  Lets say to '5aec0e7207b24c8e1bdb511a460f7368 at callcentric.com
>
>
>
> Basically I want to hang up the call when ever I want but from the script.
>
>
>
> Thanks,
>
> Singh
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

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

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



More information about the asterisk-users mailing list