Hi all, There is a problem with my dialplan. here is the dialplan: exten=> 123,1,Dial(SIP/U1,,Ttg) exten=> 123,2,Hangup exten=> h,1,AGI(onhangup.pl) The problem is whenever U1 is called or calls someone, if U1 hangsup the call then the h extension is NOT executed. but if the other person hangsup the call, then the h extension is executed (assuming that the other person is calling from out of our asterisk system). I understand if U1 hangsup then there is no channel to execute h extension, but is it possible to execute the h exten even then. i want the h extension to excute everytime. how can i do this. i have used the g flag in dial which tell asterisk to execute remaining extensions even after hangup but its not doing in the above described case. -- Rizwan Hisham Software Engineer AXVOICE Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070509/e6643e06/attachment.htm
Rizwan Hisham wrote:> exten => 123,1,Dial(SIP/U1,,Ttg) > exten => 123,2,AGI(onhangup.pl)> exten => 123,3,Hangup> > exten => h,1,DeadAGI(onhangup.pl)
Please try this, exten=> 123,1,Dial(SIP/U1,,Tt) exten=> 123,2,Hangup exten=> h,1,DEADAGI(onhangup.pl) ok? ;) Rafael Rodrigo M. Rosa. www.megavoz.com.br <http://www.megavoz.com.br/> (Voip e Telemarketing) www.nsinet.com.br <http://www.nsinet.com.br/> (Servi?os Internet) <http://www.megavoz.com.br/> Rizwan Hisham escreveu:> Hi all, > There is a problem with my dialplan. here is the dialplan: > > exten=> 123,1,Dial(SIP/U1,,Ttg) > exten=> 123,2,Hangup > > exten=> h,1,AGI(onhangup.pl) > > The problem is whenever U1 is called or calls someone, if U1 hangsup > the call then the h extension is NOT executed. but if the other person > hangsup the call, then the h extension is executed (assuming that the > other person is calling from out of our asterisk system). I understand > if U1 hangsup then there is no channel to execute h extension, but is > it possible to execute the h exten even then. > > i want the h extension to excute everytime. how can i do this. i have > used the g flag in dial which tell asterisk to execute remaining > extensions even after hangup but its not doing in the above described > case. > > -- > Rizwan Hisham > Software Engineer > AXVOICE Inc. > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070509/f2609ed4/attachment.htm
Rizwan Hisham wrote:> Hi all, > There is a problem with my dialplan. here is the dialplan: > > exten=> 123,1,Dial(SIP/U1,,Ttg) > exten=> 123,2,Hangup > > exten=> h,1,AGI(onhangup.pl) > > The problem is whenever U1 is called or calls someone, if U1 hangsup > the call then the h extension is NOT executed. but if the other person > hangsup the call, then the h extension is executed (assuming that the > other person is calling from out of our asterisk system). I understand > if U1 hangsup then there is no channel to execute h extension, but is it > possible to execute the h exten even then.You cannot use AGI() on an inactive channel. Use DeadAGI() instead. -Stephen-
Possibly Parallel Threads
- How to execute priorities following a caller hangup in a successful Dial?
- channel not hungup (zombie?) so call limit not reset to zero
- transfer call after advise
- How to execute priorities following a caller hangup in a successful Dial?
- Asterisk sends wrong fxs 'Idle' hints