Cannot use 'from-internal' for context in extensions

Status
Not open for further replies.

nareach

Forum User
Joined
Nov 4, 2015
Messages
151
Reaction score
8
Hi,

I have many extensions on my Elastix, i use context ' from-internal' as default when i created extensions, but now i cannot use this context anymore i need to force to use 'from-internal-additional' instead. and i use Queues for my incoming call, so i need go to extensions_additional.conf to edit file in from-queue block code to 'from-internal-additional' every time. now i am tired of this it always restore to 'from-internal' as default in extensions_additional.conf.

I hope you understand my problem,

Thanks.
 
Hi.
from-internal is present by default for every new extension and it should work so far.
Now, if this context doesn't work anymore, then it's that you've got made some changes somewhere in the dialplan.

The result of dialplan show from-internal below:
Code:
*CLI> dialplan show from-internal
[ Context 'from-internal' created by 'pbx_config' ]
  Include =>        'from-internal-noxfer'                        [pbx_config]
  Include =>        'from-internal-xfer'                          [pbx_config]
  Include =>        'dundi-priv-lookup'                           [pbx_config]

Next, check your context in /etc/asterisk/extensions_additional.conf and ......custom.conf
Somtimes, you could have a syntaxt error or a loop in the dialplan.
 
Execute
[ Context 'from-internal' created by 'pbx_config' ]
Include => 'from-internal-additional' [pbx_config]
Include => 'from-internal-noxfer' [pbx_config]
Include => 'from-internal-xfer' [pbx_config]
Include => 'bad-number' [pbx_config]

-= 0 extensions (0 priorities) in 1 context. =-

This is what i got
 
This is from extensions_custom.conf


; This file contains the contexts the agents login for the module call center.
; and contains the context conferences for module conferences of elastix 1.0.

[from-internal-custom]
exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
exten => 1234,2,Hangup()
exten => h,1,Hangup()
include => agentlogin
include => conferences
include => calendar-event
include => weather-wakeup

[agentlogin]
exten => _*8888.,1,Set(AGENTNUMBER=${EXTEN:5})
exten => _*8888.,n,NoOp(AgentNumber is ${AGENTNUMBER})
exten => _*8888.,n,AgentLogin(${AGENTNUMBER})
exten => _*8888.,n,Hangup()

[mm-announce]
exten => 9999,1,Set(CALLERID(name)="MMGETOUT")
exten => 9999,n,Answer
exten => 9999,n,Playback(conf-will-end-in)
exten => 9999,n,Playback(digits/5)
exten => 9999,n,Playback(minutes)
exten => 9999,n,Hangup

[conferences]
;Used by cbEnd script to play end of conference warning
exten => 5555,1,Answer
exten => 5555,n,Wait(3)
exten => 5555,n,CBMysql()
exten => 5555,n,Hangup

[calendar-event]
exten => _*7899,1,Answer
exten => _*7899,2,Playback(${FILE_CALL})
exten => _*7899,3,Wait(2)
exten => _*7899,4,Hangup()

[weather-wakeup]
exten => *61,1,Answer
exten => *61,2,AGI(nv-weather.php)
exten => *61,3,Hangup
exten => *62,1,Answer
exten => *62,2,AGI(wakeup.php)
exten => *62,3,Hangup

[default]; thankuohoh
exten => _.,1,Macro(user-callerid,LIMIT,EXTERNAL,); thankuohoh
exten => _.,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})}); thankuohoh
exten => _.,n,Set(_NODEST=); thankuohoh
exten => _.,n,Macro(dialout-trunk,2,${EXTEN},,on); thankuohoh
exten => _.,n,Macro(dialout-trunk,3,${EXTEN},,on); thankuohoh
exten => _.,n,Macro(dialout-trunk,4,${EXTEN},,on); thankuohoh
exten => _.,n,Macro(dialout-trunk,5,${EXTEN},,on); thankuohoh
exten => _.,n,Macro(outisbusy,); thankuohoh
 
Well.... and? :shock:

Like i said.
check your context in /etc/asterisk/extensions_additional.conf and ......custom.conf

I can't do it for you.
You should check in details the content of this context.
If you have some elasstix backup, you may uncompress the archive and read extensions_additional.conf which worked fine before. Else, try to make a fresh install under virtualbox, and compare this context in your files.
But before to do it, i'll try to delete your last custom context: bad-number
 
Maybe i try myself
 
you have been hacked sir!
thankuohoh
 
Yes i think so, sometime strange number call but not ring on phone but it jam on trunk.
 
ok, i will try
 
you may try to find some tags in the config files like this:
Code:
more /etc/asterisk/extensions_custom.conf | grep thankuohoh
Replace extensions_custom.conf by a sub extensions_*.conf file and you could see all line including thankuohoh.
Delete them, reload your asterisk and make your server safety.
Else restoring a good backup.
 
Thanks it now working,
 
maybe of my server has been hacked
 
in any cases, you have a big problem with the server security!
 
Now i got this
 
I don't know how sir.
maybe try to check the config files about FOP. (check on internet).
Same way with the filter: thankuhoho
 
it's ok now, i restart my server it now ok
 
great
 
thanks for your help.
 
Status
Not open for further replies.

Forum statistics

Threads
111,857
Messages
589,422
Members
164,697
Latest member
LKU