Answer the question
In order to leave comments, you need to log in
How to edit extensions_custom.conf correctly?
Task: so that the name of the trunk (or its prefix) is visible when an incoming call is made, so that it is clear which number the subscriber dialed) and for some trunks the Pitch (timbre) function is enabled.
I have this option extensions_custom.conf
Each trunk has its own context=name1, context=name2, etc.
;
;
;incoming
[from-trunk-name1]
exten => _X.,1,NoOP(---> from ${CUT(CUT(SIP_HEADER(From),\:,2),@,1)} to ${CUT(CUT(SIP_HEADER(To),\:,2),@,1)} )
same => n,Set(CALLERID(name)=Name1)
same => n,Goto(from-trunk,${EXTEN},1)
same => n,Hangup()
[from-trunk-name2]
exten => _X.,1,NoOP(---> from ${CUT(CUT(SIP_HEADER(From),\:,2),@,1)} to ${CUT(CUT(SIP_HEADER(To),\:,2),@,1)} )
same => n,Set(CALLERID(name)=Name2)
same => n,Set(PITCH_SHIFT(tx)=1.4)
same => n,Goto(from-trunk,${EXTEN},1)
same => n,Hangup()
Answer the question
In order to leave comments, you need to log in
you just have several peers of one operator,
all calls from it will fall into one context
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question