I don't have it readily available, but it would be something like this [status] exten => hangup,1,Hangup same => 2,NoOp(Hangup) ; do further processing here
[default] exten => 1234,1,Answer ; other priorities same => Goto(status,hangup,1) ; <- actually hangs up the channel exten => h,1,Goto(status,hangup,2) ; <- processes a channel not hung up by the dialplan On Sep 29, 2012 6:08 AM, "Stefan at WPF" <stefan.at....@googlemail.com> wrote: > Thanks Logan. Can you send an extract of your extensions.conf, how you do > that? > > 2012/9/29 Logan Bibby <lo...@keobi.com> > >> I do. I call the Hangup application in priority 1 so I can send calls >> there without needing to call it. Then the h extension goes to >> status,hangup,2. >> >> - Logan >> On Sep 29, 2012 4:36 AM, "Stefan at WPF" <stefan.at....@googlemail.com> >> wrote: >> >>> How do you redirect all h calls to your status context? Thanks :-) >>> >>> 2012/9/29 Logan Bibby <lo...@keobi.com> >>> >>>> I have a "status" context with a "hangup" extension. All my h calls go >>>> there. >>>> >>>> - Logan >>>> On Sep 29, 2012 4:32 AM, "Stefan at WPF" <stefan.at....@googlemail.com> >>>> wrote: >>>> >>>>> I have 2 contexts, however both have the same h extension. >>>>> Currently I am doing copy&paste for the h extension - is there a >>>>> better way? >>>>> Can I somehow reference a h extension, so I have to create/modify it >>>>> only once? >>>>> >>>>> Thanks for any hint! >>>>> >>>>> -- >>>>> _____________________________________________________________________ >>>>> -- 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 >>>>> >>>> >>>> -- >>>> _____________________________________________________________________ >>>> -- 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 >>>> >>> >>> >>> -- >>> _____________________________________________________________________ >>> -- 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 >>> >> >> -- >> _____________________________________________________________________ >> -- 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 >> > > > -- > _____________________________________________________________________ > -- 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 >
-- _____________________________________________________________________ -- 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