[HELP]Outbound calls append random/extra DTMF to dial string

Hi, I am running Asterisk@Home v2.8, with a Digium TDM400P Rev I board that has one FXS and one FXO interface. This system is in use at my home, so it’s not really getting a ton of use or anything. For the most part, everything seems to work as expected. I’ve set up an IVR for all inbound phone calls (with the zapateller for those not-so-wanted callers) that routes to my phone with a “hidden” keypress that I only tell people I want to call me at the phone. The inbound stuff seems to work as expected when I test it from my personal cell phone to my Asterisk System, as far as routing to voicemail etc.

The problem my system is having is with respect to outbound calling. I have one POTS line from Qwest coming into the house that I have hooked up to my FXO port on the card. Whenever I try to dial out to an external extension, I would always get the “Your call can not be completed as dialed” errors from Qwest. Eventually I just put a Ziad (digit grabber) in between the FXO jack and the POTS line, to see what my server was dialing. Well, it was really strange, because what it would do is lose some of the digits that I dialed, then also repeatedly dial random digits on the end nonstop. Example, say I dial 912063334444 (9 for the external trunk I have configured), the Ziad would report that I was dialing 1203334444972921094720917429018975201827 (this is about when the Qwest prompt comes in). While the # I have included is obviousy fake, I always notice that the last digit in the area code is always removed and the digits that follow seem to change every time I dial and have no rhyme or reason.

I’m not sure if I’ve fried my board, got a faulty config, or what, but I’m at a total loss to explain how that could be happening. I’ll include the text for my zaptel.conf, zapata.conf, zapata_additional.conf, and a verbose Asterisk CLI output (level 10) of an example dial. Please let me know if there is anything else you would like me to attach or if I need to include more details; any help would be greatly appreciated. I think if I can get this outdial thing fixed I’ll have a completely working system!

(zaptel.conf)

Autogenerated by /usr/local/sbin/genzaptelconf – do not hand edit

Zaptel Configuration File

This file is parsed by the Zaptel Configurator, ztcfg

It must be in the module loading order

Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1”

fxoks=1

channel 2, WCTDM, inactive.

channel 3, WCTDM, inactive.

fxsks=4

Span 2: ZTDUMMY/1 “ZTDUMMY/1 1”

Global data

loadzone = us
defaultzone = us

(zapata.conf)
;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-pstn
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

usecallerid=yes
hidecallerid=no
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 genzaptelconf configs
#include zapata-auto.conf

group=1

;Include AMP configs
include zapata_additional.conf

(zapata_additional.conf)
;;;;;;[3039]
signalling=fxo_ks
record_out=Adhoc
record_in=Adhoc
mailbox=3039@device
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=no
callerid=Robert Tyler <3039>
busydetect=no
busycount=7
channel=>Zap/1

(Asterisk CLI output, verbose level 10, I have purposefully replaced the dialed phone # with X characters, all other text left alone. The logs never show the extra/missing DTMFs that my digit grabber shows, not sure why)

-- Starting simple switch on 'Zap/1-1'
-- Executing Macro("Zap/1-1", "dialout-trunk|1|1206XXXXXXX||") in new stack
-- Executing GotoIf("Zap/1-1", "1?3:2") in new stack
-- Goto (macro-dialout-trunk,s,3)
-- Executing Macro("Zap/1-1", "user-callerid") in new stack
-- Executing Set("Zap/1-1", "AMPUSER=") in new stack
-- Executing Set("Zap/1-1", "EMERGENCYCID=") in new stack
-- Executing Set("Zap/1-1", "AMPUSERCIDNAME=") in new stack
-- Executing GotoIf("Zap/1-1", "1?6") in new stack
-- Goto (macro-user-callerid,s,6)
-- Executing NoOp("Zap/1-1", "Using CallerID "" <>") in new stack
-- Executing Macro("Zap/1-1", "record-enable||OUT") in new stack
-- Executing GotoIf("Zap/1-1", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing AGI("Zap/1-1", "recordingcheck|20060507-192832|1147055306.84") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck

recordingcheck|20060507-192832|1147055306.84: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Zap/1-1”, “No recording needed”) in new stack
– Executing Macro(“Zap/1-1”, “outbound-callerid|1”) in new stack
– Executing Set(“Zap/1-1”, “USEROUTCID=”) in new stack
– Executing GotoIf(“Zap/1-1”, “1?4”) in new stack
– Goto (macro-outbound-callerid,s,4)
– Executing GotoIf(“Zap/1-1”, “1?6”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing GotoIf(“Zap/1-1”, “1?8”) in new stack
– Goto (macro-outbound-callerid,s,8)
– Executing NoOp(“Zap/1-1”, “CallerID set to “” <>”) in new stack
– Executing Set(“Zap/1-1”, “GROUP()=OUT_1”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?108”) in new stack
– Executing Set(“Zap/1-1”, “DIAL_NUMBER=1206XXXXXXX”) in new stack
– Executing Set(“Zap/1-1”, “DIAL_TRUNK=1”) in new stack
– Executing AGI(“Zap/1-1”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
– AGI Script fixlocalprefix completed, returning 0
– Executing Set(“Zap/1-1”, “OUTNUM=1206XXXXXXX”) in new stack
– Executing Set(“Zap/1-1”, “custom=ZAP/g0”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?16”) in new stack
– Executing Dial(“Zap/1-1”, “ZAP/g0/1206XXXXXXX|120|W”) in new stack
– Called g0/1206XXXXXXX
– Zap/4-1 answered Zap/1-1
– Attempting native bridge of Zap/1-1 and Zap/4-1
– Hungup ‘Zap/4-1’
== Spawn extension (macro-dialout-trunk, s, 14) exited non-zero on ‘Zap/1-1’ in macro ‘dialout-trunk’
== Spawn extension (macro-dialout-trunk, s, 14) exited non-zero on ‘Zap/1-1’
– Hungup ‘Zap/1-1’

Thanks again for any help you can provide!

-Robert