Call of service module does not give "cannot complete as dialed" prompt

I have 2 FreePBX V13 systems- the first with only Extension routing enabled, the second with extra Class Of Service module. When an extension calls a non authorized number, then the first system gives proper voice prompt “cannot complete as dialed”, but the second system gives no voice prompt and instead shows “sent to invalid extension but no invalid handler: context,exten,priority=bad-number,s,1
== Extension Changed 315[ext-local] new state Idle for Notify User 311”

Any idea what is wrong ?

this is the Asterisk trace for the working system (with only extension routing module):

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
[2017-03-05 16:38:21] WARNING[2610][C-00000005]: chan_sip.c:10300 process_sdp: Declining non-primary audio stream: audio 20166 RTP/AVP 9 0 8 3 99 112 18 101
– Executing [00476479270@from-internal:1] Macro(“SIP/42-00000009”, “user-callerid,LIMIT”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/42-00000009”, “TOUCH_MONITOR=1488728301.51”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/42-00000009”, “AMPUSER=42”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/42-00000009”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/42-00000009”, “1?Set(REALCALLERIDNUM=42)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/42-00000009”, “AMPUSER=42”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/42-00000009”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/42-00000009”, “AMPUSERCIDNAME=Vanbroekhoven Danny”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/42-00000009”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/42-00000009”, “AMPUSERCID=42”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/42-00000009”, “__DIAL_OPTIONS=”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/42-00000009”, “CALLERID(all)=“Vanbroekhoven Danny” <42>”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/42-00000009”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/42-00000009”, “1?Set(GROUP(concurrency_limit)=42)”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/42-00000009”, “1?Set(CHANNEL(language)=nl)”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/42-00000009”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [s@macro-user-callerid:28] Set(“SIP/42-00000009”, “CALLERID(number)=42”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/42-00000009”, “CALLERID(name)=Vanbroekhoven Danny”) in new stack
– Executing [s@macro-user-callerid:30] GotoIf(“SIP/42-00000009”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/42-00000009”, “CDR(cnam)=Vanbroekhoven Danny”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/42-00000009”, “CDR(cnum)=42”) in new stack
– Executing [s@macro-user-callerid:33] Set(“SIP/42-00000009”, “CHANNEL(language)=nl”) in new stack
– Executing [00476479270@from-internal:2] Set(“SIP/42-00000009”, “ROUTEUSER=42”) in new stack
– Executing [00476479270@from-internal:3] GotoIf(“SIP/42-00000009”, “1?notblind”) in new stack
– Goto (from-internal,00476479270,6)
– Executing [00476479270@from-internal:6] GotoIf(“SIP/42-00000009”, “1?restrictedroute-74e22dd2247c8196d9bc439f724bad87,00476479270,2:outbound-allroutes,00476479270,2”) in new stack
– Goto (restrictedroute-74e22dd2247c8196d9bc439f724bad87,00476479270,2)
– Channel ‘SIP/42-00000009’ sent to invalid extension: context,exten,priority=restrictedroute-74e22dd2247c8196d9bc439f724bad87,00476479270,2
– Executing [i@restrictedroute-74e22dd2247c8196d9bc439f724bad87:1] Goto(“SIP/42-00000009”, “bad-number,s,1”) in new stack
– Goto (bad-number,s,1)
– Executing [s@bad-number:1] Goto(“SIP/42-00000009”, “11,1”) in new stack
– Goto (bad-number,11,1)
– Executing [11@bad-number:1] ResetCDR(“SIP/42-00000009”, “”) in new stack
– Executing [11@bad-number:2] NoCDR(“SIP/42-00000009”, “”) in new stack
– Executing [11@bad-number:3] Progress(“SIP/42-00000009”, “”) in new stack
– Executing [11@bad-number:4] Wait(“SIP/42-00000009”, “1”) in new stack
– Executing [11@bad-number:5] Playback(“SIP/42-00000009”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
– <SIP/42-00000009> Playing ‘silence/1.alaw’ (language ‘nl’)
– <SIP/42-00000009> Playing ‘cannot-complete-as-dialed.alaw’ (language ‘nl’)
– <SIP/42-00000009> Playing ‘check-number-dial-again.alaw’ (language ‘nl’)
pbx*CLI>

and this is the non working system (with class of service module):

== Using SIP VIDEO TOS bits 136

== Using SIP VIDEO CoS mark 6
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Extension Changed 315[ext-local] new state InUse for Notify User 311
– Executing [9745@from-internal:1] Macro(“SIP/315-00000049”, “user-callerid,LIMIT”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/315-00000049”, “TOUCH_MONITOR=1488553689.436”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/315-00000049”, “AMPUSER=315”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/315-00000049”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/315-00000049”, “1?Set(REALCALLERIDNUM=315)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/315-00000049”, “AMPUSER=315”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/315-00000049”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/315-00000049”, “AMPUSERCIDNAME=Mouse Micky”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/315-00000049”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/315-00000049”, “AMPUSERCID=315”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/315-00000049”, “__DIAL_OPTIONS=”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/315-00000049”, “CALLERID(all)=“Mouse Micky” <315>”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/315-00000049”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/315-00000049”, “1?Set(GROUP(concurrency_limit)=315)”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/315-00000049”, “1?Set(CHANNEL(language)=nl)”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/315-00000049”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [s@macro-user-callerid:28] Set(“SIP/315-00000049”, “CALLERID(number)=315”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/315-00000049”, “CALLERID(name)=Mouse Micky”) in new stack
– Executing [s@macro-user-callerid:30] GotoIf(“SIP/315-00000049”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/315-00000049”, “CDR(cnam)=Mouse Micky”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/315-00000049”, “CDR(cnum)=315”) in new stack
– Executing [s@macro-user-callerid:33] Set(“SIP/315-00000049”, “CHANNEL(language)=nl”) in new stack
– Executing [s@macro-user-callerid:34] GosubIf(“SIP/315-00000049”, “0?app-check-classofservce,s,1()”) in new stack
– Executing [9745@from-internal:2] Set(“SIP/315-00000049”, “ROUTEUSER=315”) in new stack
– Executing [9745@from-internal:3] GotoIf(“SIP/315-00000049”, “1?notblind”) in new stack
– Goto (from-internal,9745,6)
– Executing [9745@from-internal:6] GotoIf(“SIP/315-00000049”, “1?restrictedroute-dc89df8a369815e3119c6ea9c7cc30e6,9745,2:outbound-allroutes,9745,2”) in new stack
– Goto (restrictedroute-dc89df8a369815e3119c6ea9c7cc30e6,9745,2)
– Channel ‘SIP/315-00000049’ sent to invalid extension: context,exten,priority=restrictedroute-dc89df8a369815e3119c6ea9c7cc30e6,9745,2
– Executing [i@restrictedroute-dc89df8a369815e3119c6ea9c7cc30e6:1] Goto(“SIP/315-00000049”, “bad-number,s,1”) in new stack
– Goto (bad-number,s,1)
[2017-03-03 16:08:09] WARNING[11031][C-00000036]: pbx.c:4415 __ast_pbx_run: Channel ‘SIP/315-00000049’ sent to invalid extension but no invalid handler: context,exten,priority=bad-number,s,1
== Extension Changed 315[ext-local] new state Idle for Notify User 311