[asterisk-users] help - How to send hangup command to call in progress.
Jim Dickenson
dickenson at cfmc.com
Thu Mar 26 09:03:20 CDT 2009
I am guessing that your dialplan has a dial command to actually do the
dialing. What we do is pass a variable, like dial-timeout, and then use
${dial-timeout} as the time out in the dial command.
--
Jim Dickenson
mailto:dickenson at cfmc.com
CfMC
http://www.cfmc.com/
> From: Singh Saimbhi <Singh.Saimbhi at palm.com>
> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
> <asterisk-users at lists.digium.com>
> Date: Wed, 25 Mar 2009 21:28:26 -0700
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> <asterisk-users at lists.digium.com>
> Conversation: [asterisk-users] help - How to send hangup command to call in
> progress.
> Subject: Re: [asterisk-users] help - How to send hangup command to call in
> progress.
>
> 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
>
> _______________________________________________
> -- 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