keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

CID info not passing from A400P w 2 FXO's to Asterisk 1.6.0.26

12 years 11 months ago #6924 by mikec
Background Information:
Trixbox CE version 2.8.0.4
Asterisk version 1.6.0.26-FONCORE-r78 DAHDI Tools Version - 2.3.0
DAHDI Version: 2.3.0.1
Echo Canceller(s): MG2
Channel map:
Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)

Channel 02: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)

Country: US
BellCore

Inbound CID verified using a standard PSTN phone


System.conf
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER) 
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
# channel 3, WCTDM/4/2, no module.
# channel 4, WCTDM/4/3, no module.

# Global data

loadzone	= us
defaultzone	= us



CHAN_DAHDI.CONF

;
; DAHDI telephony
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300              ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

immediate=no 
usecallerid=yes
cidsignalling=bell
hidecallerid=no
useincomingcalleridonzaptransfer=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
;faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include setup-pstn configs
#include dahdi-channels.conf

group=1

;Include PBXconfig configs
#include chan_dahdi_additional.conf


DAHDI-CHANNELS.CONF

; Autogenerated by /usr/sbin/dahdi_genconf on Tue May 17 15:03:53 2011
; 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: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER) 
;;; line="1 WCTDM/4/0 FXSKS"
immediate=no 
signalling=fxs_ks
usecallerid=yes
callerid=asreceived
hidecallerid=no
group=0
context=from-pstn
channel => 1
group=
context=default

;;; line="2 WCTDM/4/1 FXSKS"
immediate=no 
signalling=fxs_ks
usecallerid=yes
callerid=asreceived
hidecallerid=no
group=0
context=from-pstn
channel => 2
group=
context=default


APPROPRIATE SECTION OF ASTERISK LOG:
[May 27 11:41:58] NOTICE[23744] chan_dahdi.c: Got event 18 (Ring Begin)...
[May 27 11:42:00] NOTICE[23744] chan_dahdi.c: Got event 2 (Ring/Answered)...
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=s") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:2] Gosub("DAHDI/1-1", "app-blacklist-check,s,1") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/1-1", "0?blacklisted") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@app-blacklist-check:2] Return("DAHDI/1-1", "") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:3] Gosub("DAHDI/1-1", "cidlookup,cidlookup_4,1") in new stack
[May 27 11:42:00] VERBOSE[23746] logger.c: == Manager 'admin' logged on from 127.0.0.1
[May 27 11:42:00] VERBOSE[23746] logger.c: == Manager 'admin' logged off from 127.0.0.1
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [cidlookup_4@cidlookup:1] Set("DAHDI/1-1", "CALLERID(name)=") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [cidlookup_4@cidlookup:2] Return("DAHDI/1-1", "") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:4] ExecIf("DAHDI/1-1", "1 ?Set(CALLERID(name)=)") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:5] SetMusicOnHold("DAHDI/1-1", "none") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:6] Set("DAHDI/1-1", "__MOHCLASS=none") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:7] Answer("DAHDI/1-1", "") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:8] Wait("DAHDI/1-1", "0") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:9] Set("DAHDI/1-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:10] Set("DAHDI/1-1", "CALLERPRES()=allowed_not_screened") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@from-pstn:11] Goto("DAHDI/1-1", "from-did-direct,2100,1") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Goto (from-did-direct,2100,1)
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [2100@from-did-direct:1] Macro("DAHDI/1-1", "exten-vm,2100,2100") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-exten-vm:1] Macro("DAHDI/1-1", "user-callerid") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:1] Set("DAHDI/1-1", "AMPUSER=") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/1-1", "0?report") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/1-1", "1?Set(REALCALLERIDNUM=)") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:4] Set("DAHDI/1-1", "AMPUSER=") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:5] Set("DAHDI/1-1", "AMPUSERCIDNAME=") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/1-1", "1?report") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Goto (macro-user-callerid,s,10)
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/1-1", "0?continue") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:11] Set("DAHDI/1-1", "__TTL=64") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/1-1", "1?continue") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Goto (macro-user-callerid,s,19)
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-user-callerid:19] NoOp("DAHDI/1-1", "Using CallerID "" <>") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-exten-vm:2] Set("DAHDI/1-1", "RingGroupMethod=none") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-exten-vm:3] Set("DAHDI/1-1", "VMBOX=2100") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-exten-vm:4] Set("DAHDI/1-1", "EXTTOCALL=2100") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-exten-vm:5] Set("DAHDI/1-1", "CFUEXT=") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-exten-vm:6] Set("DAHDI/1-1", "CFBEXT=") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-exten-vm:7] Set("DAHDI/1-1", "RT=15") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-exten-vm:8] Macro("DAHDI/1-1", "record-enable,2100,IN") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-record-enable:1] GotoIf("DAHDI/1-1", "1?check") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Goto (macro-record-enable,s,4)
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Executing [s@macro-record-enable:4] AGI("DAHDI/1-1", "recordingcheck,20110527-114200,1306514514.117") in new stack
[May 27 11:42:00] VERBOSE[23744] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
[May 27 11:42:01] VERBOSE[23744] logger.c: recordingcheck,20110527-114200,1306514514.117: Inbound recording not enabled
[May 27 11:42:01] VERBOSE[23744] logger.c: -- AGI Script recordingcheck completed, returning 0
[May 27 11:42:01] VERBOSE[23744] logger.c: -- Executing [s@macro-record-enable:5] MacroExit("DAHDI/1-1", "") in new stack
[May 27 11:42:01] VERBOSE[23744] logger.c: -- Executing [s@macro-exten-vm:9] Macro("DAHDI/1-1", "dial,15,tr,2100") in new stack
[May 27 11:42:01] VERBOSE[23744] logger.c: -- Executing [s@macro-dial:1] GotoIf("DAHDI/1-1", "0?dial") in new stack
[May 27 11:42:01] VERBOSE[23744] logger.c: -- Executing [s@macro-dial:2] SetMusicOnHold("DAHDI/1-1", "none") in new stack
[May 27 11:42:01] VERBOSE[23744] logger.c: -- Executing [s@macro-dial:3] AGI("DAHDI/1-1", "dialparties.agi") in new stack
[May 27 11:42:01] VERBOSE[23744] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
[May 27 11:42:01] VERBOSE[23744] logger.c: dialparties.agi: Starting New Dialparties.agi
[May 27 11:42:01] VERBOSE[23744] logger.c: dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
[May 27 11:42:01] VERBOSE[23744] logger.c: dialparties.agi: Methodology of ring is 'none'

Problem:

Can not get inbound CID to pass from card to Asterisk. Most solutions found deal with passing DTMF or IN signalling rather than BellCore. Looking for advice on how to proceed. TIA
12 years 11 months ago #6925 by svolta
Please send me a recording with CID signailing or ssh, I will check it for you. My Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
12 years 11 months ago #6926 by jun
Hi:
to solve the callerid problem, you have to check few things:
1) set this in chan_dahdi.conf:
cidstart=ring
; What signals the start of caller ID
; ring = a ring signals the start (default)
; polarity = polarity reversal signals the start
; polarity_IN = polarity reversal signals the start, for India,
; for dtmf dialtone detection; using DTMF.
; (see doc/India-CID.txt)
;

cidsignalling=bell
; Type of caller ID signalling in use
; bell = bell202 as used in US (default)
; v23 = v23 as used in the UK
; v23_jp = v23 as used in Japan
; dtmf = DTMF as used in Denmark, Sweden and Netherlands
; smdi = Use SMDI for caller ID. Requires SMDI to be enabled (usesmdi).
;

usecallerid=yes

2) load driver with your country code : modprobe wctdm opermode=YOUR COUNTRY

3) check the indication.conf, set it to your country.

4) change echo_can oslec to echo_can mg2 in the "etc/dadhi/genconf_parameters
Time to create page: 0.036 seconds
Powered by Kunena Forum