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: [email protected] 
[mailto:[email protected]] 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 <[email protected]> wrote:
> Hi,
>
>
>
> I want to send hangup command to the call which was logged in earlier via
> cli.  Lets say to '[email protected]
>
>
>
> 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

_______________________________________________
-- 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

Reply via email to