keywords: ip pbx voip gateway gsm gateway

×

Notice

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

2 ring delay

12 years 10 months ago #6928 by ngv
Hi,

I am having incoming call issue with the A400. It takes two rings before the call is switch to elastix.

If you look at the asterisk logs from where it starts "Starting simple switch on 'DAHDI/2-1'" it will ring twice before send the call to an extension to ring. I have tested two cards on differnt pc's and get the same result.



01:0f.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface
Subsystem: Unknown device b100:0003
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <;PERR-
Latency: 32 (250ns min, 32000ns max)
Interrupt: pin A routed to IRQ 137
Region 0: I/O ports at d000
Region 1: Memory at e8084000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=55mA PME(D0+,D1-,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-


Asterisk 1.4.30, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for detail s.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.30 currently running on figtreeadmin (pid = 2748)
Verbosity was 3 and is now 6
-- Starting simple switch on 'DAHDI/2-1'
-- Executing [s@from-zaptel:1] NoOp("DAHDI/2-1", "Entering from-zaptel with DID == ") in new stack
-- Executing [s@from-zaptel:2] Ringing("DAHDI/2-1", "") in new stack
-- Executing [s@from-zaptel:3] Set("DAHDI/2-1", "DID=s") in new stack
-- Executing [s@from-zaptel:4] NoOp("DAHDI/2-1", "DID is now s") in new stack
-- Executing [s@from-zaptel:5] GotoIf("DAHDI/2-1", "1?zapok:notzap") in new stack
-- Goto (from-zaptel,s,8)
-- Executing [s@from-zaptel:8] NoOp("DAHDI/2-1", "Is a Zaptel Channel") in new stack
-- Executing [s@from-zaptel:9] Set("DAHDI/2-1", "CHAN=2-1") in new stack
-- Executing [s@from-zaptel:10] Set("DAHDI/2-1", "CHAN=2") in new stack
-- Executing [s@from-zaptel:11] Macro("DAHDI/2-1", "from-zaptel-2|s|1") in new stack
-- Executing [s@macro-from-zaptel-2:1] NoOp("DAHDI/2-1", "Entering macro-from-zaptel-2 with DID = s and setting to: 0734918352") in new stack
-- Executing [s@macro-from-zaptel-2:2] Set("DAHDI/2-1", "__FROM_DID=0734918352") in new stack
-- Executing [s@macro-from-zaptel-2:3] Goto("DAHDI/2-1", "from-trunk|0734918352|1") in new stack
-- Goto (from-trunk,0734918352,1)
== Channel 'DAHDI/2-1' jumping out of macro 'from-zaptel-2'
-- Executing [0734918352@from-trunk:1] NoOp("DAHDI/2-1", "Catch-All DID Match - Found 0734918352 - You probably want a DID for this.") in new stack
-- Executing [0734918352@from-trunk:2] Goto("DAHDI/2-1", "ext-did|s|1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] Set("DAHDI/2-1", "__FROM_DID=s") in new stack
-- Executing [s@ext-did:2] Gosub("DAHDI/2-1", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/2-1", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("DAHDI/2-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Set("DAHDI/2-1", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:4] Return("DAHDI/2-1", "") in new stack
-- Executing [s@ext-did:3] ExecIf("DAHDI/2-1", "1 |Set|CALLERID(name)=") in new stack
-- Executing [s@ext-did:4] Set("DAHDI/2-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:5] SetCallerPres("DAHDI/2-1", "allowed_not_screened") in new stack
-- Executing [s@ext-did:6] Goto("DAHDI/2-1", "ext-group|600|1") in new stack
-- Goto (ext-group,600,1)
-- Executing [600@ext-group:1] Macro("DAHDI/2-1", "user-callerid|") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/2-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/2-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/2-1", "1|Set|REALCALLERIDNUM=") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/2-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/2-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/2-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/2-1", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("DAHDI/2-1", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/2-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/2-1", "Using CallerID "" <>") in new stack
-- Executing [600@ext-group:2] GotoIf("DAHDI/2-1", "1?skipdb") in new stack
-- Goto (ext-group,600,4)
-- Executing [600@ext-group:4] Set("DAHDI/2-1", "__NODEST=") in new stack
-- Executing [600@ext-group:5] Set("DAHDI/2-1", "__BLKVM_OVERRIDE=BLKVM/600/DAHDI/2-1") in new stack
-- Executing [600@ext-group:6] Set("DAHDI/2-1", "__BLKVM_BASE=600") in new stack
-- Executing [600@ext-group:7] Set("DAHDI/2-1", "DB(BLKVM/600/DAHDI/2-1)=TRUE") in new stack
-- Executing [600@ext-group:8] Set("DAHDI/2-1", "RRNODEST=") in new stack
-- Executing [600@ext-group:9] Set("DAHDI/2-1", "__NODEST=600") in new stack
-- Executing [600@ext-group:10] GosubIf("DAHDI/2-1", "0?sub-rgsetcid|s|1") in new stack
-- Executing [600@ext-group:11] Set("DAHDI/2-1", "RecordMethod=Group") in new stack
-- Executing [600@ext-group:12] Macro("DAHDI/2-1", "record-enable|7703-7702-7704-7705|Group") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/2-1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("DAHDI/2-1", "0|MacroExit|") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("DAHDI/2-1", "1?Group:OUT") in new stack
-- Goto (macro-record-enable,s,6)
-- Executing [s@macro-record-enable:6] Set("DAHDI/2-1", "LOOPCNT=4") in new stack
-- Executing [s@macro-record-enable:7] Set("DAHDI/2-1", "ITER=1") in new stack
-- Executing [s@macro-record-enable:8] GotoIf("DAHDI/2-1", "1?continue") in new stack
-- Goto (macro-record-enable,s,13)
-- Executing [s@macro-record-enable:13] Set("DAHDI/2-1", "ITER=2") in new stack
-- Executing [s@macro-record-enable:14] GotoIf("DAHDI/2-1", "1?begin") in new stack
-- Goto (macro-record-enable,s,8)
-- Executing [s@macro-record-enable:8] GotoIf("DAHDI/2-1", "1?continue") in new stack
-- Goto (macro-record-enable,s,13)
-- Executing [s@macro-record-enable:13] Set("DAHDI/2-1", "ITER=3") in new stack
-- Executing [s@macro-record-enable:14] GotoIf("DAHDI/2-1", "1?begin") in new stack
-- Goto (macro-record-enable,s,8)
-- Executing [s@macro-record-enable:8] GotoIf("DAHDI/2-1", "1?continue") in new stack
-- Goto (macro-record-enable,s,13)
-- Executing [s@macro-record-enable:13] Set("DAHDI/2-1", "ITER=4") in new stack
-- Executing [s@macro-record-enable:14] GotoIf("DAHDI/2-1", "1?begin") in new stack
-- Goto (macro-record-enable,s,8)
-- Executing [s@macro-record-enable:8] GotoIf("DAHDI/2-1", "1?continue") in new stack
-- Goto (macro-record-enable,s,13)
-- Executing [s@macro-record-enable:13] Set("DAHDI/2-1", "ITER=5") in new stack
-- Executing [s@macro-record-enable:14] GotoIf("DAHDI/2-1", "0?begin") in new stack
-- Executing [s@macro-record-enable:15] GotoIf("DAHDI/2-1", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("DAHDI/2-1", "1|MacroExit|") in new stack
-- Executing [600@ext-group:13] Set("DAHDI/2-1", "RingGroupMethod=ringall") in new stack
-- Executing [600@ext-group:14] Macro("DAHDI/2-1", "dial|15|r|7703-7702-7704-7705") in new stack
-- Executing [s@macro-dial:1] GotoIf("DAHDI/2-1", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("DAHDI/2-1", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
dialparties.agi: USE_CONFIRMATION: 'FALSE'
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'ringall'
-- dialparties.agi: Added extension 7703 to extension map
-- dialparties.agi: Added extension 7702 to extension map
-- dialparties.agi: Added extension 7704 to extension map
-- dialparties.agi: Added extension 7705 to extension map
-- dialparties.agi: Extension 7703 cf is disabled
-- dialparties.agi: Extension 7702 cf is disabled
-- dialparties.agi: Extension 7704 cf is disabled
-- dialparties.agi: Extension 7705 cf is disabled
-- dialparties.agi: Extension 7703 do not disturb is disabled
-- dialparties.agi: Extension 7702 do not disturb is disabled
-- dialparties.agi: Extension 7704 do not disturb is disabled
-- dialparties.agi: Extension 7705 do not disturb is disabled
> dialparties.agi: extnum 7703 has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: ExtensionState: 1
dialparties.agi: Extension 7703 has ExtensionState: 1
-- dialparties.agi: Checking CW and CFB status for extension 7703
dialparties.agi: Extension 7703 is not available to be called
dialparties.agi: Extension 7703 has call waiting disabled
> dialparties.agi: extnum 7702 has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: ExtensionState: 0
dialparties.agi: Extension 7702 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 7702
-- dialparties.agi: DbDel CALLTRACE/7702 - Caller ID is not defined
> dialparties.agi: extnum 7704 has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: ExtensionState: 0
dialparties.agi: Extension 7704 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 7704
-- dialparties.agi: DbDel CALLTRACE/7704 - Caller ID is not defined
> dialparties.agi: extnum 7705 has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: ExtensionState: 0
dialparties.agi: Extension 7705 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 7705
-- dialparties.agi: DbDel CALLTRACE/7705 - Caller ID is not defined
-- dialparties.agi: Filtered ARG3: 7702-7704-7705
> dialparties.agi: NODEST: 600 adding M(auto-blkvm) to dialopts: rM(auto-blkvm)
> dialparties.agi: NODEST: 600 blkvm enabled macro already in dialopts: rM(auto-blkvm)
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("DAHDI/2-1", "SIP/7702&SIP/7704&SIP/7705|15|rM(auto-blkvm)") in new stack
-- Called 7702
-- Called 7704
-- Called 7705
-- SIP/7702-00000037 is ringing
-- SIP/7705-00000039 is ringing
-- SIP/7704-00000038 is ringing


Please advise on how I can fix this issue.

Thank you.
12 years 10 months ago #6933 by jun
Ring twice before, should be in the detection of CID information, You can set the open DEBUG information to see if asterisk doing?
12 years 10 months ago #6962 by ngv
Hi,

Setting Sip Debug does not show me any further information.

Where would I find the detection of CID information?

I am using Elastix 1.6

Thanks
12 years 10 months ago #6964 by jun
Hello,

Provide information from your print, you do not have get the CID information.

First, you need to determine the caller ID type. DTMF or FSK. 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=dtmf
; 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


Regards
12 years 10 months ago #6971 by ngv
Hi,

I have checked everything below and still have the 2 second ring issues

Jun 9 13:56:44 figtreeadmin kernel: Module 0: Installed -- AUTO FXO (AUSTRALIA mode)
Jun 9 13:56:44 figtreeadmin kernel: Module 1: Installed -- AUTO FXO (AUSTRALIA mode)
Jun 9 13:56:44 figtreeadmin kernel: Module 2: Installed -- AUTO FXO (AUSTRALIA mode)
Jun 9 13:56:44 figtreeadmin kernel: Module 3: Installed -- AUTO FXO (AUSTRALIA mode)

chan_dadhi

; Auto-generated by /usr/sbin/hardware_detector
[trunkgroups]

[channels]
;context=from-pstn
context=from-zaptel
cidstart=ring
cidsignalling=dtmf
usecallerid=yes
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
faxdetect=incoming
echotraining=400
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1



;Uncomment these lines if you have problems with the disconection of your analog lines
busydetect=yes
busycount=3


immediate=no

#include dahdi-channels.conf
#include chan_dahdi_additional.conf


indication.conf

[general]
country=au

[au]
description = Australia
ringcadence = 400,200,400,2000
dial = 413+438
busy = 425/375,0/375
ring = 413+438/400,0/200,413+438/400,0/2000
congestion = 425/375,0/375,420/375,0/375
callwaiting = 425/200,0/200,425/200,0/4400
dialrecall = 413+438
record = !425/1000,!0/15000,425/360,0/15000
info = 425/2500,0/500
std = !525/100,!0/100,!525/100,!0/100,!525/100,!0/100,!525/100,!0/100,!525/100
facility = 425
stutter = 413+438/100,0/40
ringmobile = 400+450/400,0/200,400+450/400,0/2000


dmesg

dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.2.0.2
Freshmaker version: 71
Freshmaker passed register test
Module 0: Installed -- AUTO FXO (AUSTRALIA mode)
Module 1: Installed -- AUTO FXO (AUSTRALIA mode)
Module 2: Installed -- AUTO FXO (AUSTRALIA mode)
Module 3: Installed -- AUTO FXO (AUSTRALIA mode)
Found a Wildcard TDM: Wildcard TDM400P REV E/F (4 modules)
dahdi_transcode: Loaded.
INFO-xpp: revision trunk-r6963 MAX_XPDS=64 (8*8)
INFO-xpp: FEATURE: with BRISTUFF support
INFO-xpp: FEATURE: with PROTOCOL_DEBUG
INFO-xpp: FEATURE: with sync_tick() from DAHDI
INFO-xpp_usb: revision trunk-r6963
usbcore: registered new driver xpp_usb
Unified AP4XX PCI Card Driver
DAHDI Dynamic Span support LOADED
rxt1: no version for "dahdi_hdlc_putbuf" found: kernel tainted.
dahdi_echocan_oslec: Registered echo canceler 'OSLEC'
dahdi: Registered tone zone 1 (Australia)
Time to create page: 0.044 seconds
Powered by Kunena Forum