Brett Nemeroff
2004-May-21 15:25 UTC
[Asterisk-Users] dial application - continue in context
Hi All, I'm tring to do some DB operations before and after a call. I see the 'g' option in dial to continue in context if the destination hangs up, but what if the originator hangs up? Basically I do a DB get/put before the call is placed. After the call is completed I want to do another get/put; however the dial application dies when the originator hangs up. Any way to get around this? Perhaps there is a better way to do this (AGI?) Thanks, Brett -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040521/a74905d0/attachment.htm
Brett Nemeroff wrote:>Hi All, >I'm tring to do some DB operations before and after a call. I see the >'g' option in dial to continue in context if the destination hangs up, >but what if the originator hangs up? > >Basically I do a DB get/put before the call is placed. After the call is >completed I want to do another get/put; however the dial application >dies when the originator hangs up. > >Any way to get around this? Perhaps there is a better way to do this >(AGI?) > >Thanks, >Brett > > > >This is what we do: exten => h,1,DBPut(..........) -- Andres Network Admin http://www.telesip.net
Philipp von Klitzing
2004-May-22 05:29 UTC
[Asterisk-Users] dial application - continue in context
Hi!> I'm tring to do some DB operations before and after a call. I see the 'g' > option in dial to continue in context if the destination hangs up, but > what if the originator hangs up?You either need to run a CRON job for this clean up, or do that at the beginning of the next call - whatever suits you better. Note: The h extension is not reliable enough to solve your problem. Cheers, Philipp
Stefan Tichy
2004-May-22 11:20 UTC
[Asterisk-Users] Re: dial application - continue in context
Hi Philipp On Sat, May 22, 2004 at 02:29:18PM +0200, Philipp von Klitzing wrote:> Note: The h extension is not reliable enough to solve your problem.What is the problem with the hangup extension? Thanks in advance -- Stefan Tichy <asterisk@pi4tel.de>
Philipp von Klitzing
2004-May-22 11:49 UTC
[Asterisk-Users] Re: dial application - continue in context
Hi!> On Sat, May 22, 2004 at 02:29:18PM +0200, Philipp von Klitzing wrote: > > Note: The h extension is not reliable enough to solve your problem. > > What is the problem with the hangup extension?Not reliable - ask bkw for details, he can elaborate. P.