[asterisk-users] Reuse h extension?

Steve Edwards asterisk.org at sedwards.com
Sat Sep 29 10:44:25 CDT 2012

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
         exten = h,1,                    verbose(1,[${EXTEN}@${CONTEXT}])
         exten = h,n,                    goto(settle-card,s,1)

         exten = i,1,                    verbose(1,[${EXTEN}@${CONTEXT}])
         exten = i,n,                    goto(${CONTEXT},s,1)

         exten = s,1,                    verbose(1,[${EXTEN}@${CONTEXT}])

; example1
         exten = s,2,                    blah-blah-blah()
         exten = s,n,                    hangup()

; example2
         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

More information about the asterisk-users mailing list