Dahdi - Trunk no audio on out bound

womble1

Guru
Joined
Oct 19, 2008
Messages
632
Reaction score
6
I have copied the above and
my dahdi_channels.conf file is as below…


; Autogenerated by /usr/sbin/dahdi_genconf on Fri Apr 1 14:23:14 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 (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default


and did dahdi restart…


pbx*CLI> dahdi restart
Destroying channels and reloading DAHDI configuration.
-- Unregistered channel -2
-- Unregistered channel 1
== Parsing '/etc/asterisk/chan_dahdi.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_general.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_additional.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_groups.conf': == Found
== Parsing '/etc/asterisk/users.conf': == Found
-- Reconfigured channel 1, FXS Kewlstart signalling
-- Reconfigured channel 1, FXS Kewlstart signalling
-- Automatically generated pseudo channel
 

womble1

Guru
Joined
Oct 19, 2008
Messages
632
Reaction score
6
odd thing is there is no sound at all not even a ring tone….
 

blanchae

Guru
Joined
Mar 12, 2008
Messages
1,910
Reaction score
9
This section here tells us the order of the loading of the config files.

== Parsing '/etc/asterisk/chan_dahdi.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_general.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_additional.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_groups.conf': == Found
== Parsing '/etc/asterisk/users.conf': == Found
-- Reconfigured channel 1, FXS Kewlstart signalling
-- Reconfigured channel 1, FXS Kewlstart signalling

The last two lines tells us that channel 1 is being configured twice. So if you actually post all 4 of your chan_dahdi config files exactly as they are, I could help you.....
 

womble1

Guru
Joined
Oct 19, 2008
Messages
632
Reaction score
6
thanks....

GNU nano 1.3.12 File: /etc/dahdi/system.conf

# Autogenerated by /usr/sbin/dahdi_genconf on Fri Apr 1 14:23:14 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: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER)
fxsks=1
echocanceller=mg2,1
# channel 2, WCTDM/4/1, no module.
# channel 3, WCTDM/4/2, no module.
# channel 4, WCTDM/4/3, no module.

# Global data

loadzone = uk
defaultzone = uk



dahdi-channels.conf

; Autogenerated by /usr/sbin/dahdi_genconf on Fri Apr 1 14:23:14 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 (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default




chan_dahdi_groups.conf


;--------------------------------------------------------------------------------;
; 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: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;


signalling=fxs_ks
context=from-pstn
channel=>1

chan_dahdi_general.conf

;--------------------------------------------------------------------------------;
; 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: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;



chan_dahdi.conf

#include chan_dahdi_general.conf

[channels]

cidsignalling=v23
cidstart=polarity
usecallerid=yes
ukcallerid=yes
answeronpolarityswitch=yes
sendcalleridafter=1
echocancel=yes
echocancelwhenbridged=no

context=from-dahdi
callwaitingcallerid=yes
callerid=asreceived
hidecallerid=no
group=0
channel => 1

#include chan_dahdi_additional.conf

; include dahdi groups defined by DAHDI module of FreePBX
#include chan_dahdi_groups.conf
 

blanchae

Guru
Joined
Mar 12, 2008
Messages
1,910
Reaction score
9
Okay now the problem is clearer.

In chan_dahdi.conf,

1. remove these lines:


context=from-dahdi
callwaitingcallerid=yes
callerid=asreceived
hidecallerid=no
group=0
channel => 1

Reason: Configuring channel 1 more than once - it shouldn't be configured in chan_dahdi.conf

2. Change

#include chan_dahdi_groups.conf

To

#include dahdi-channels.conf

Reason: chan_dahdi_groups.conf is incomplete (missing group settings) while dahdi_channels.conf is complete.

Stop asterisk and restart. Hopefully now you should have some audio.
 

womble1

Guru
Joined
Oct 19, 2008
Messages
632
Reaction score
6
Ok I have correctly done that restarted the whole box and still no outgoing audio, not even a ring tone… nothing…

Code:
pbx*CLI> dahdi show status
Description                              Alarms  IRQ    bpviol CRC4   Fra Codi Options  LBO
Wildcard TDM400P REV E/F Board 5         OK      0      0      0      CAS Unk           0 db (CSU)/0-133 feet (DSX-1)
pbx*CLI> dahdi show channels
   Chan Extension  Context         Language   MOH Interpret        Blocked    State     
 pseudo            default                    default                         In Service
      1            from-pstn                  default                         In Service
pbx*CLI>




pbx*CLI> dahdi restart
Destroying channels and reloading DAHDI configuration.
-- Unregistered channel -2
-- Unregistered channel 1
== Parsing '/etc/asterisk/chan_dahdi.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_general.conf': == Found
== Parsing '/etc/asterisk/chan_dahdi_additional.conf': == Found
== Parsing '/etc/asterisk/dahdi-channels.conf': == Found
== Parsing '/etc/asterisk/users.conf': == Found
-- Reconfigured channel 1, FXS Kewlstart signalling
-- Automatically generated pseudo channel
:confused5::crazy:
 

blanchae

Guru
Joined
Mar 12, 2008
Messages
1,910
Reaction score
9
seemingly set up OK but on outgoing calls there is no audio

Do you have a trunk configured in FreePBX? Do you have an Outbound route setup to use the trunk?
 

womble1

Guru
Joined
Oct 19, 2008
Messages
632
Reaction score
6
yes,
it rings and the call comes into a mobile or landline, but no audio...
 

blanchae

Guru
Joined
Mar 12, 2008
Messages
1,910
Reaction score
9
This is what the beginning of my chan_dahdi.conf has:
;
[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
hanguponpolarityswitch=yes
immediate=no

It's a little bit more than yours. I would add the extra lines in then restart dahdi.
 

blanchae

Guru
Joined
Mar 12, 2008
Messages
1,910
Reaction score
9
Here's two tips I found by googling:

answeronpolarityswitch=no
callprogress=yes
 

womble1

Guru
Joined
Oct 19, 2008
Messages
632
Reaction score
6
OK,
I have sip trunk working on an outbound route and have sound on that.
I have done everything and still no sound on outbound Dahdi calls….
 

Alex728

Guru
Joined
Dec 22, 2007
Messages
416
Reaction score
1
Well,
That did it…
Thanks...

happy to help - I found this out the hard way a while back.

Even if your line does gives polarity rev on answer (usually businesslines and featurelines) settring this option makes things go pearshaped.

And you can get different protocols from different lines connected to the same Telephone Exchange!

As for CLID, I'm assuming you have already checked the line with a working phone.

This is what I have in my zapata.conf file which works

usecallerid=yes
cidsignalling=v23
cidstart=polarity
hidecallerid=no

check your Asterisk CLI though, to make sure that Asterisk isn't answering two calls for one.. When you have a line with active called ID, there is a polarity rev before the first ring.

if you get "timed out waiting for ring" after this and a second call coming in for each single call, there is a hack you might need to make to source code to get the CLID picked up. It is only required on some BT lines, not all.

if you need this it might be a bit more difficult for me to find it in chan_dahdi.c as I don't have the source directly saved on any of my machines, unless some helpful person can point me to (I think) the svn repository wherever Digium allow you to look at other versions of source code...
 

blanchae

Guru
Joined
Mar 12, 2008
Messages
1,910
Reaction score
9
That's really strange that removing "answeronpolarityswitch=yes" works while "answeronpolarityswitch=no" doesn't. Going to have look at those commands in greater depth.
 

Members online

Forum statistics

Threads
25,825
Messages
167,856
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top