Answer the question
In order to leave comments, you need to log in
How to properly include context?
Good afternoon! decided to rewrite dialplans on automatic telephone exchange to reduce superfluous so to speak. I'm interested in the question, I would like to include a record in the context before importing blanks for dialing numbers for the city, cellular, and so on. Before that, there were 2 contexts with and without a record that differed by one line. Is it possible to do something like
[kc-phone]
exten => _X.,1,Macro(recording,${CALLERID(num)},${EXTEN})
include => call-out
include => city
include => mobile
include => mg
include => mn
include => free
[city]
exten => _[2-3]XXXXXX,1,Dial(SIP/${EXTEN}@CTC)
Answer the question
In order to leave comments, you need to log in
That is, all calls must first go through
exten => _X.,1,Macro(recording,${CALLERID(num)},${EXTEN})
and then jump to
exten => _[2-3]XXXXXX,1, Dial(SIP/${EXTEN}@CTC)
The main idea is to enable call recording for the entire context?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question