Hi, I'm tying to delay the HungUp. I tried this way: exten => h,1,NoOp(Start) exten => h,n,Wait(5) exten => h,n,NoOp(End) exten => h,n,Hangup() but it doesn't work, Any idea? Thanks in advance.
Hi!> exten => h,1,NoOp(Start) > exten => h,n,Wait(5) > exten => h,n,NoOp(End) > exten => h,n,Hangup()* Wait() does not work in the context of the h extension (I am curious as to the reasons for that as well) * Hangup() makes no sense in the context of the h extension and should not be used; you are _already_ in the process of hanging up Philipp
The h extension does not get executed until the hang up has occurred. The use of this is to do something after the hang up. Like cleaning up database entires or sending user events or the like. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ On Apr 16, 2010, at 4:58 AM, Philipp von Klitzing wrote:> Hi! > >> exten => h,1,NoOp(Start) >> exten => h,n,Wait(5) >> exten => h,n,NoOp(End) >> exten => h,n,Hangup() > > * Wait() does not work in the context of the h extension (I am curious as > to the reasons for that as well) > > * Hangup() makes no sense in the context of the h extension and should > not be used; you are _already_ in the process of hanging up > > Philipp > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
I think you should try to use option 'g' in the Dial command and put Wait after that, not in the h extension. But what exactly you are trying to achievee here? Zeeshan A Zakaria -- Sent from my Android phone with K-9 Mail. On 2010-04-16 8:03 AM, "Philipp von Klitzing" < klitzing at pool.informatik.rwth-aachen.de> wrote: Hi!> exten => h,1,NoOp(Start) > exten => h,n,Wait(5) > exten => h,n,NoOp(End) > exten => h,n,Hangup()... * Wait() does not work in the context of the h extension (I am curious as to the reasons for that as well) * Hangup() makes no sense in the context of the h extension and should not be used; you are _already_ in the process of hanging up Philipp -- _____________________________________________________________________ -- Bandwidth and Colocat... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100416/ea3f2df0/attachment.htm