I installed FreePBX with a 12 port analog card. The first 5 ports are FXS and rest 7 are FXO ports. dahdi_genconf correctly generated the dahdi-channel.conf. I can dial out from extensions to outside through SIP route. I can also call each other on those 5 analog FXS ports. But when incoming call ringing, Asterisk announces “The number you dialed is not in service, please check your number and try again”. The phone line service does not have caller ID service, but I defined the CID in the truck section, also defined the Zap Channle DIDs and Inbound Route.
Following is the /var/log/asterisk/full log about that call progress:
[Jan 14 12:30:52] VERBOSE[6115] chan_dahdi.c: – Starting simple switch on ‘DAHDI/7-1’
[Jan 14 12:30:55] NOTICE[6115] chan_dahdi.c: Got event 18 (Ring Begin)…
[Jan 14 12:30:58] NOTICE[6115] chan_dahdi.c: Got event 2 (Ring/Answered)…
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Executing [s@from-zaptel:1] NoOp(“DAHDI/7-1”, "Entering from-zaptel with DID == ") in new stac
k
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Executing [s@from-zaptel:2] Ringing(“DAHDI/7-1”, “”) in new stack
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Executing [s@from-zaptel:3] Set(“DAHDI/7-1”, “DID=s”) in new stack
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Executing [s@from-zaptel:4] NoOp(“DAHDI/7-1”, “DID is now s”) in new stack
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Executing [s@from-zaptel:5] GotoIf(“DAHDI/7-1”, “0?zapok:notzap”) in new stack
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Goto (from-zaptel,s,6)
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Executing [s@from-zaptel:6] Goto(“DAHDI/7-1”, “from-pstn,s,1”) in new stack
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Goto (from-pstn,s,1)
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Executing [s@from-pstn:1] NoOp(“DAHDI/7-1”, “No DID or CID Match”) in new stack
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Executing [s@from-pstn:2] Answer(“DAHDI/7-1”, “”) in new stack
[Jan 14 12:30:58] VERBOSE[6115] pbx.c: – Executing [s@from-pstn:3] Wait(“DAHDI/7-1”, “2”) in new stack
[Jan 14 12:31:00] VERBOSE[6115] pbx.c: – Executing [s@from-pstn:4] Playback(“DAHDI/7-1”, “ss-noservice”) in new stack
[Jan 14 12:31:00] VERBOSE[6115] file.c: – <DAHDI/7-1> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[Jan 14 12:31:05] VERBOSE[6115] pbx.c: – Executing [s@from-pstn:5] SayAlpha(“DAHDI/7-1”, “”) in new stack
[Jan 14 12:31:05] VERBOSE[6115] pbx.c: – Executing [s@from-pstn:6] Hangup(“DAHDI/7-1”, “”) in new stack
[Jan 14 12:31:05] VERBOSE[6115] pbx.c: == Spawn extension (from-pstn, s, 6) exited non-zero on ‘DAHDI/7-1’
[Jan 14 12:31:05] VERBOSE[6115] pbx.c: – Executing [h@from-pstn:1] Hangup(“DAHDI/7-1”, “”) in new stack
[Jan 14 12:31:05] VERBOSE[6115] pbx.c: == Spawn extension (from-pstn, h, 1) exited non-zero on ‘DAHDI/7-1’
[Jan 14 12:31:05] VERBOSE[6115] chan_dahdi.c: – Hungup ‘DAHDI/7-1’
Please help!