login | register
Sat 30 of Aug, 2008 [01:16 UTC]

voip-info.org

Discuss [3] History

Asterisk Manager API Action AbsoluteTimeout

Created by: flobi,Last modification on Fri 18 of Aug, 2006 [05:53 UTC] by stripe

Asterisk Manager API Action: AbsoluteTimeout

This command will request Asterisk to hangup a given channel after the specified number of seconds, thereby effectively ending the active call.

If the channel is linked with another channel (an active connected call is in progress), the other channel will continue it's path through the dialplan (if any further steps remains).

Parameters

  • Channel: Which channel to hangup, e.g. SIP/123-1c20
  • Timeout : The number of seconds until the channel should hangup

Example

Request
Action: AbsoluteTimeout
Channel: SIP/123-1c20
Timeout: 20

Response on success
Response: Success
Message: Timeout Set

Response on error
Response: Error
Message: No such channel


Links


Comments

Comments Filter
222

333I keep getting the error : No such channel

by asiby, Monday 18 of December, 2006 [17:02:49 UTC]
Hi everyone,

I am getting more frustrated with this command. I am using the AbsoluteTimeout action to disconnect a call established with the Originate action.

The problem is that I keep getting the "No such channel" error. I am using something similar to:

Originate
ACTION: Originate
Channel: SIP/my_sip_provider/A_side_phone_number
Exten: SIP/my_sip_provider/B_side_phone_number
Priority: 1
Timeout: 30000
Context: default



Then, I have used the event received from the manager to catch the first one. Fortunately, it was always like:

Event: Newchannel
Channel: SIP/my_sip_provider-ed81002fa
State: Down
CallerID:
Uniqueid: 56312411231.123



As you can see, the channel name that has been created by asterisk for this call was: SIP/my_sip_provider-ed81002fa

So I have extracted that name and displayed it to make sure that I had the correct value. Then, I have initiated an AbsoluteTimeout using the following code :

ACTION: AbsoluteTimeout
Channel: SIP/my_sip_provider-ed81002fa
Timeout: 30



But the response to that action is always "Error : No such channel"

Can anyone help me please.

Regards

asiby a.k.a Maestro

222

333Re: It should say...

by flobi, Thursday 25 of August, 2005 [16:24:55 UTC]
Ack! They forgot to put an edit button? Oh no, there it is. Doh! :-P
222

333It should say...

by wsanchez, Monday 25 of April, 2005 [19:17:47 UTC]
(:arrow:) Action: AbsoluteTimeout
Parameters: Channel, Timeout