Extra Callerid to analog phone on Sangoma A200 FXS


#1

I have an Elastix 2.0.4/Asterisk 1.8.4.4/Dahdi DAHDI Version: 2.4.1.2/Wanpipe 3.5.20 installation and am using a Sangoma A200 with two fxo/fxs to bridge from the PSTN to analog handsets.

I am in the US and have had Sangoma review my config so I am comfortable that it is setup the way that they would expect.

The issue that I have is that when my analog phone go off-hook either to place or answer a call or even just if I take it off hook for a few seconds, Asterisk sends a callerid string to the fxs port on the A200 using the callerid string that is associated with the fxs in the dahdi config. So for every time the phone goes off hook, I get an extra callerid string sent to the phones which is quite annoying. I had use a SPA3102 for the fxs and did not see this issue so I think it may be dahdi related. My signaling for callerid is bell and cidstart is ring which is typicall for the US and I have tried other combinations to no avail.

My analog phone is on channel 3 of the A200.

This is a snippet of what I see in the asterisk console when I take the phone off hook which doesn’t look too interesting to me:

[b][root@elastix asterisk]# asterisk -rvvvv
Asterisk 1.8.4.4, Copyright © 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
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.8.4.4 currently running on elastix (pid = 5126)
Verbosity is at least 13
– Starting simple switch on ‘DAHDI/3-1’
– Hanging up on ‘DAHDI/3-1’
– Hungup ‘DAHDI/3-1’[/b]

Here is my chan_dadhi.conf:

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

[channels]
context=from-pstn
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=800
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
relaxdtmf=yes
;cidsignalling=bell
;cidstart=ring

#include dahdi-channels.conf
#include chan_dahdi_additional.conf[/b]

And dadhi_channels.conf

[b]; Autogenerated by /usr/sbin/dahdi_genconf on Thu Jul 21 21:00:27 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: WRTDM/0 “wrtdm Board 1” (MASTER)
;;; line="1 WRTDM/0/0 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
rxgain = 16.0
context=from-pstn
channel => 1
callerid=
group=
context=default

;;; line="2 WRTDM/0/1 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
callerid=
group=
context=default

;;; line="3 WRTDM/0/2 FXOKS (SWEC: MG2)"
signalling=fxo_ks
;callerid=“Channel 3” <4003>
mailbox=1250
group=5
rxgain = 0.0
;rxgain = 3.0
context=from-internal
channel => 3
;callerid=
group=
context=default

;;; line="4 WRTDM/0/3 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid=“Channel 4” <4004>
mailbox=4004
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default[/b]

And chan_dadhi_additonal.conf

[b];--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;

;;;;;;[1250]
signalling=fxo_ks
pickupgroup=
mailbox=1250@default
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=“House Phone <1250>”
;callerid=device <1250>
busydetect=no
busycount=7
accountcode=
;cid_rxgain=0
channel=>3[/b]

And, Wanpipe1.conf:

;[b]--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;

;;;;;;[1250]
signalling=fxo_ks
pickupgroup=
mailbox=1250@default
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=“House Phone <1250>”
;callerid=device <1250>
busydetect=no
busycount=7
accountcode=
;cid_rxgain=0
channel=>3[/b]

And last, system.conf for dadhi:

[b]# Autogenerated by /usr/sbin/dahdi_genconf on Thu Jul 21 21:00:26 2011

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: WRTDM/0 “wrtdm Board 1” (MASTER)

fxsks=1
#echocanceller=oslec,1
fxsks=2
#echocanceller=oslec,2
fxoks=3
#echocanceller=oslec,3
fxoks=4
#echocanceller=oslec,4

channel 5, WRTDM/0/4, no module.

channel 6, WRTDM/0/5, no module.

channel 7, WRTDM/0/6, no module.

channel 8, WRTDM/0/7, no module.

channel 9, WRTDM/0/8, no module.

channel 10, WRTDM/0/9, no module.

channel 11, WRTDM/0/10, no module.

channel 12, WRTDM/0/11, no module.

channel 13, WRTDM/0/12, no module.

channel 14, WRTDM/0/13, no module.

channel 15, WRTDM/0/14, no module.

channel 16, WRTDM/0/15, no module.

channel 17, WRTDM/0/16, no module.

channel 18, WRTDM/0/17, no module.

channel 19, WRTDM/0/18, no module.

channel 20, WRTDM/0/19, no module.

channel 21, WRTDM/0/20, no module.

channel 22, WRTDM/0/21, no module.

channel 23, WRTDM/0/22, no module.

channel 24, WRTDM/0/23, no module.

Global data

loadzone = us
defaultzone = us[/b]

Any ideas out there ?