I am having an issue with inbound routing for a T1 line. I set up the last four digits as the inbound router and pointed it to an extension. However when I call the number is says cant be completed as dialed. Here is the log:
Executing [9599@from-internal:1] ResetCDR(“DAHDI/i1/XXXXXXXXXX-14”, “”) in new stack
– Executing [9599@from-internal:2] NoCDR(“DAHDI/i1/XXXXXXXXXX-14”, “”) in new stack
– Executing [9599@from-internal:3] Progress(“DAHDI/i1/XXXXXXXXXX-14”, “”) in new stack
– Executing [9599@from-internal:4] Wait(“DAHDI/i1/XXXXXXXXXX-14”, “1”) in new stack
– Executing [9599@from-internal:5] Progress(“DAHDI/i1/XXXXXXXXXX-14”, “”) in new stack
– Executing [9599@from-internal:6] Playback(“DAHDI/i1/8XXXXXXXXXX2-14”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
– <DAHDI/i1/8482107702-14> Playing ‘silence/1.gsm’ (language ‘en’)
– <DAHDI/i1/8482107702-14> Playing ‘cannot-complete-as-dialed.gsm’ (language ‘en’)
– <DAHDI/i1/8482107702-14> Playing ‘check-number-dial-again.gsm’ (language ‘en’)
It is the context you defined for that trunk and should probably be from-did-direct to map your last-four directly to an endpoint or from-trunk depending on what you want.
Here is the dahnd_channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Fri May 22 17:48:06 2015
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
; Span 1: R2T1/0/1 “R2T1 Card 0 Span 1” (MASTER) ESF/B8ZS RED
group=0,11
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 1-23
group = 63
; Span 2: R2T1/0/2 “R2T1 Card 0 Span 2” ESF/B8ZS RED
group=0,12
context=from-internal
switchtype = national
signalling = fxo_ls
channel => 25-47
context = default
group = 63