P
P
Pavel Emelyanov2018-01-16 09:11:39
linux
Pavel Emelyanov, 2018-01-16 09:11:39

Why does the extensions_additional.conf file change after entering the web interface?

Hello!
Installed FreePBX 14.0.1.24. Set up. Everything works, but for some reason, when making absolutely any changes through the web interface in the extensions_additional.conf file, EXTEN: 1 appears instead of EXTEN in the line with the dialing plan, which cuts off the first digit when dialing and, accordingly, telephony does not work. I edit this file in nano, remove :1, reload Asterisk and everything works again. With what it can be connected?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SOTVM, 2019-11-02
@DVoropaev

create / allow a guest account,
it automatically creates a hamster, and after the user logs out, it deletes it
by default, there are practically no rights, the
necessary tools / commands, if they do not work, you can allow them with "handles"

P
Pavel Emelyanov, 2018-01-16
@megashaman

The code

[outbound-allroutes]
include => outbound-allroutes-custom
include => outrt-1 ; 933087
include => outrt-2 ; 933088
exten => foo,1,Noop(bar)
;--== end of [outbound-allroutes] ==--;
[outrt-1] ; 933087
include => outrt-1-custom
exten => _.,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./_20X,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./_20X,n,Gosub(sub-record-check,s,1(out,${EXTEN},dontcare))
exten => _./_20X,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _./_20X,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _./_20X,n,Set(_NODEST=)
exten => _./_20X,n,Macro(dialout-trunk,1,${EXTEN},,off)
exten => _./_20X,n,Macro(outisbusy,)
;--== end of [outrt-1] ==--;
[outrt-2] ; 933088
include => outrt-2-custom
exten => _.,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./_0XX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./_0XX,n,Gosub(sub-record-check,s,1(out,${EXTEN},dontcare))
exten => _./_0XX,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _./_0XX,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _./_0XX,n,Set(_NODEST=)
exten => _./_0XX,n,Macro(dialout-trunk,2,${EXTEN},,on)
exten => _./_0XX,n,Macro(outisbusy,)
exten => _./911,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _./911,n,Gosub(sub-record-check,s,1(out,${EXTEN},dontcare))
exten => _./911,n,ExecIf($[ "${CALLEE_ACCOUNCODE}" != "" ] ?Set(CDR(accountcode)=${CALLEE_ACCOUNCODE}))
exten => _./911,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _./911,n,Set(_NODEST=)
exten => _./911,n,Macro(dialout-trunk,2,${EXTEN},,on)
exten => _./911,n,Macro(outisbusy,)
;--== end of [outrt-2] ==--;

D
Drill, 2018-01-18
@Drill

You cannot edit extensions_additional.conf , open it and read the first lines carefully.
If you need to manually add (change) the dialplan, then there is extensions_custom.conf for this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question