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! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120929/4aea5e32/attachment.htm>
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.wpf 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120929/dfb3ff38/attachment.htm>
How do you redirect all h calls to your status context? Thanks :-) 2012/9/29 Logan Bibby <logan at 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.wpf 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120929/ae022ada/attachment.htm>
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.wpf at googlemail.com> wrote:> How do you redirect all h calls to your status context? Thanks :-) > > 2012/9/29 Logan Bibby <logan at 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.wpf 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120929/961a14b4/attachment.htm>
Thanks Logan. Can you send an extract of your extensions.conf, how you do that? 2012/9/29 Logan Bibby <logan at 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.wpf at googlemail.com> > wrote: > >> How do you redirect all h calls to your status context? Thanks :-) >> >> 2012/9/29 Logan Bibby <logan at 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.wpf 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120929/3dc108ce/attachment.htm>
2012-09-29 11:32, Stefan at WPF skrev:> 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! >Have you tried goto? I have some extensions that are related and I use goto to the main context from the others. Goto(context,h,1) -- Johan Wilfer
On Sat, 29 Sep 2012, Stefan at WPF 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?; templates [h](!) exten = h,1, verbose(1,[${EXTEN}@${CONTEXT}]) exten = h,n, goto(settle-card,s,1) [i](!) exten = i,1, verbose(1,[${EXTEN}@${CONTEXT}]) exten = i,n, goto(${CONTEXT},s,1) [s](!) exten = s,1, verbose(1,[${EXTEN}@${CONTEXT}]) ; example1 [example1](h,i,s) exten = s,2, blah-blah-blah() exten = s,n, hangup() ; example2 [example2](h,i,s) exten = s,2, blah-blah-blah() exten = s,n, hangup() -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000