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       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

--
_____________________________________________________________________
-- 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

Reply via email to