Your call cannot be completed as dialed not playing

So I’m really not quite sure what’s going on here but for some reason recently the cannot-complete-as-dialed recording has stopped playing when I dial an invalid number (internally) and instead just sends a hangup signal or congestion signal.

I had a look at the asterisk config files and found something in extensions_additional.conf, there’s something called [bad-number] which looks to be responsible for playing the cannot complete message when dialing an invalid number…have a look:

[bad-number]
include => bad-number-custom
exten => _X.,1,ResetCDR()
exten => _X.,n,NoCDR()
exten => _X.,n,Progress
exten => _X.,n,Wait(1)
exten => _X.,n,Playback(silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer)
exten => _X.,n,Wait(1)
exten => _X.,n,Congestion(20)
exten => _X.,n,Hangup

;–== end of [bad-number] ==–;

Is there something wrong with this??
What else could be the problem?

Hi!

I suggest you look at your “full” logs or issue an “asterisk -rvvvvvvvvvvv” (and call an invalid number of course…) at the command line to see why this happens.

My guess it that maybe that sound file is missing or corrupted so you might want to redownload the sound files under Admin - Sound languages.

Good luck and have a nice day!

Nick

Ok I checked the sound files first and everything seems fine there, I can play them and they are located in the correct directory.

When I tried the asterisk -rvvvvvvvvvvv I got this:

– Executing [123@from-internal:1] Macro(“SIP/100-0000078c”, “user-callerid,LIMIT”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/100-0000078c”, “TOUCH_MONITOR=1478657884.3230”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/100-0000078c”, “AMPUSER=100”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/100-0000078c”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/100-0000078c”, “1?Set(REALCALLERIDNUM=100)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/100-0000078c”, “AMPUSER=100”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/100-0000078c”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/100-0000078c”, “AMPUSERCIDNAME=Alex”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/100-0000078c”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/100-0000078c”, “AMPUSERCID=100”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/100-0000078c”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/100-0000078c”, “CALLERID(all)=“Alex” <100>”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/100-0000078c”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/100-0000078c”, “1?Set(GROUP(concurrency_limit)=100)”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/100-0000078c”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/100-0000078c”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [s@macro-user-callerid:29] Set(“SIP/100-0000078c”, “CALLERID(number)=100”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/100-0000078c”, “CALLERID(name)=Alex”) in new stack
– Executing [s@macro-user-callerid:31] GotoIf(“SIP/100-0000078c”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/100-0000078c”, “CDR(cnam)=Alex”) in new stack
– Executing [s@macro-user-callerid:33] Set(“SIP/100-0000078c”, “CDR(cnum)=100”) in new stack
– Executing [s@macro-user-callerid:34] Set(“SIP/100-0000078c”, “CHANNEL(language)=en-mods”) in new stack
– Executing [123@from-internal:2] Set(“SIP/100-0000078c”, “ROUTEUSER=100”) in new stack
– Executing [123@from-internal:3] GotoIf(“SIP/100-0000078c”, “1?notblind”) in new stack
– Goto (from-internal,123,6)
– Executing [123@from-internal:6] GotoIf(“SIP/100-0000078c”, “1?restrictedroute-c4ca4238a0b923820dcc509a6f75849b,123,2:outbound-allroutes,123,2”) in new stack
– Goto (restrictedroute-c4ca4238a0b923820dcc509a6f75849b,123,2)
– Channel ‘SIP/100-0000078c’ sent to invalid extension: context,exten,priority=restrictedroute-c4ca4238a0b923820dcc509a6f75849b,123,2
– Executing [i@restrictedroute-c4ca4238a0b923820dcc509a6f75849b:1] Goto(“SIP/100-0000078c”, “bad-number,s,1”) in new stack
– Goto (bad-number,s,1)
[2016-11-09 13:18:04] WARNING[4213][C-0000088b]: pbx.c:6580 __ast_pbx_run: Channel ‘SIP/100-0000078c’ sent to invalid extension but no invalid handler: context,exten,priority=bad-number,s,1

Anything look wrong here?

Cheers,
Alex S

The piece we’re looking for should be on the next line. The system just sent your call to the “bad number” context you posted at the top of the post.

There wasn’t any other line underneath…

That was all I got…do you know what I need to do to fix it??

Ok this is great, Iv’e finally figured out the problem, I had the [bad-number] context in extensions_additional.conf instead of in extensions.conf