hi folks. is there anyway to make the dial command return and execute the next line in the dial plan after the channel hangs up? suppose i want to do something like this: exten => 1234,1,dial(SIP/1234) exten => 1234,2,<do something> but when the dial command hangs up normally, line 2 won't get executed. -- Edwin Lam <edwin@officegeneral.com> Systems Engineer, Office General, Inc. Ph: +1 415 439 4988 Fax: +1 415 283 3370 http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0xD6506D20
On Mon, 2005-10-17 at 17:04 -0700, Edwin Lam wrote:> hi folks. > > is there anyway to make the dial command return and execute > the next line in the dial plan after the channel hangs up? > > suppose i want to do something like this: > > exten => 1234,1,dial(SIP/1234) > exten => 1234,2,<do something> > > but when the dial command hangs up normally, line 2 won't get > executed.Try with "h" (for hangup): exten => 1234,1,Dial... exten => 1234,h,.......>From the command line in asterisk "show application dial" gives a lot ofinfo what it can do. Regards, Patrick
Edwin Lam wrote:> is there anyway to make the dial command return and execute > the next line in the dial plan after the channel hangs up?Try "g": exten => 1234,1,dial(SIP/1234,,g) exten => 1234,2,<do something> g: When the called party hangs up, exit to execute more commands in the current context. http://www.voip-info.org/wiki-Asterisk+cmd+Dial I'm not sure if this is what you are looking for...