F
F
Fordimm2018-05-22 06:10:45
Asterisk
Fordimm, 2018-05-22 06:10:45

Why are internal calls not going through?

Maybe someone has ideas, calls from the street go without problems when you dial an internal number, but if from internal to internal, then for some reason it doesn’t work and I don’t see an error.
;test
exten => 7777,1,NoOp(CAll from ${CALLERID(all)} to ${EXTEN})
same => n,Set(MONITORFILENAME=/voice/${STRFTIME(${EPOCH},,%d -%m-%Y_%H-%M)}_${CALLERID(number)}-${EXTEN}.wav)
same => n,MixMonitor(${MONITORFILENAME})
same => n,GotoIfTime(8: 00-16:00,*,*,*?morning)
same => n,GotoIfTime(16:00-20:00,*,*,*?day)
same => n,GotoIfTime(20:00-8: 00,*,*,*?night)
same => n(morning),Dial(${PJSIP_DIAL_CONTACTS(1111)},,tg)
same => n,Hangup
same => n(day),Dial(${PJSIP_DIAL_CONTACTS (2222)},,tg)
same => n,Hangup
same => n(night),Dial(${PJSIP_DIAL_CONTACTS(3333)},,tg)
same => n,Hangup

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vreitech, 2018-05-22
@Fordimm

check what context the outer lines have and what the inner lines have. if the contexts are different, then the calls go to different parts of the extensions.conf config, up to the fact that if there is no context specified for internal lines in extensions.conf, then the calls either go to the default context, or go nowhere at all.

V
vvchumanov, 2019-09-22
@vvchumanov

how is it solved? who knows, I have such crap immediately on a clean one after installation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question