# Asterisk sees the pots but won't answer tdm400p

**URL:** <https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703>\
**Category:** Asterisk Support\
**Created:** [August 22, 2006, 12:14am UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703 "2006-08-22T00:14:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PenisPreve](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@PenisPreve](https://community.asterisk.org/u/PenisPreve)\
**Post date:** [August 22, 2006, 12:14am UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/1 "2006-08-22T00:14:59Z")

</div>

OK, what I have is the digium tdm400p 4port card with 1 FXO card in the 4th port and 1 FXS card in the first port.  
I am connecting to POTS through an analog port on a traditional PBX. I have a few softphones, a few cisoc 79xx phones and I can call out with those asterisk extensions  
just fine. Here is where I get confused. I created a trunk (zap/g0) created extensions (phones wouldn’t work otherwise), created in and outbound routes, and it will NOT answer  
an incoming call on the zap trunk.  
I noticed through the FOP that asterisk is seeing the call coming in. I can even drag and drop the call to an extension and it will answer.

I sure could use some pointing in the correct direction.  
here are my conf files if they help.

; Autogenerated by /usr/local/sbin/genzaptelconf – do not hand edit  
; Zaptel Channels Configurations (zapata.conf)  
;  
; This is not intended to be a complete zapata.conf. Rather, it is intended  
; to be #include-d by /etc/zapata.conf that will include the global settings  
;  
callerid=asreceived

; Span 1: WCTDM/0 “Wildcard TDM400P REV I Board 1”  
; channel 1, WCTDM, inactive.  
; channel 2, WCTDM, inactive.  
; channel 3, WCTDM, inactive.  
signalling=fxs\_ks  
; Note: this is a trunk. Create a ZAP trunk in AMP for Channel 4  
context=from-pstn  
group=0  
channel =\> 4

* * *

;  
; Zapata telephony interface  
;  
; Configuration file

[trunkgroups]

[channels]

language=en  
context=from-analog  
signalling=fxo\_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  
;channel =\> 0  
;faxdetect=both  
faxdetect=incoming  
;faxdetect=outgoing  
;faxdetect=no

;Include genzaptelconf configs  
#include zapata-auto.conf

group=1

;Include AMP configs  
#include zapata\_additional.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”

# channel 1, WCTDM, inactive.

# channel 2, WCTDM, inactive.

# channel 3, WCTDM, inactive.

fxsks=4

# Global data

loadzone = us  
defaultzone = us

---

<div class="post-metadata">

**Author:** ![rrashid](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@rrashid](https://community.asterisk.org/u/rrashid)\
**Post date:** [August 22, 2006, 4:43am UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/2 "2006-08-22T04:43:50Z")

</div>

in extensions.conf what do you have under the context from-pstn. Do you have asterisk set to pick up the calls ?

---

<div class="post-metadata">

**Author:** ![PenisPreve](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@PenisPreve](https://community.asterisk.org/u/PenisPreve)\
**Post date:** [August 23, 2006, 3:34am UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/3 "2006-08-23T03:34:40Z")

</div>

THank you for your help!!

I will have to check, but I did setup in bound and outbound routes and the trunk for the zaptel and the extensions for the phones.

Are you saying I should create an extension for the trunk?

---

<div class="post-metadata">

**Author:** ![PenisPreve](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@PenisPreve](https://community.asterisk.org/u/PenisPreve)\
**Post date:** [August 23, 2006, 2:24pm UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/4 "2006-08-23T14:24:48Z")

</div>

; Asterisk Management Portal (AMP)  
; Copyright © 2004 Coalescent Systems Inc

; dialparties.agi ([sprackett.com/asterisk/](http://www.sprackett.com/asterisk/))  
; Asterisk::AGI ([asterisk.gnuinter.net/](http://asterisk.gnuinter.net/))  
; gsm ([ibiblio.org/pub/Linux/utils/ … short.html](http://www.ibiblio.org/pub/Linux/utils/compress/!INDEX.short.html))  
; loligo sounds ([loligo.com/asterisk/sounds/](http://www.loligo.com/asterisk/sounds/))  
; mpg123 ([voip-info.org/wiki-Asterisk+conf … nhold.conf](http://voip-info.org/wiki-Asterisk+config+musiconhold.conf))

; include extension contexts generated from AMP  
#include extensions\_additional.conf

; Customizations to this dialplan should be made in extensions\_custom.conf  
; See extensions\_custom.conf.sample for an example  
#include extensions\_custom.conf

[from-trunk] ; just an alias since VoIP shouldn’t be called PSTN  
include =\> from-pstn

[from-pstn]  
include =\> from-pstn-custom ; create this context in extensions\_custom.conf to include customizations  
include =\> ext-findmefollow ; MODIFICATOIN (PL) for findmefollow if enabled, should be bofore ext-local  
include =\> ext-did-direct ; MODIFICATOIN (PL) put before ext-did to take precedence  
include =\> ext-did  
exten =\> fax,1,Goto(ext-fax,in\_fax,1)

; MODIFICATION (PL)  
;  
; Required to assure that direct dids go to personal ring group before local extension.  
; This could be auto-generated however I it is prefered to be put here and hard coded  
; so that it can be modified if ext-local should take precedence in certain situations.  
; will have to decide what to do later.  
;  
[from-did-direct]  
include =\> ext-findmefollow  
include =\> ext-local

---

<div class="post-metadata">

**Author:** ![PenisPreve](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@PenisPreve](https://community.asterisk.org/u/PenisPreve)\
**Post date:** [August 28, 2006, 4:57pm UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/5 "2006-08-28T16:57:02Z")

</div>

OK, it now answers on the third ring but does not go anywhere (just dead air).  
Outbound dialing still works just fine and I am thinking this is simply a scripting (is that the correct word??) issue on my part.  
If anyone has a simple example for inbound answering exten=\> …  
I would sure appreciate a look.  
thank you.

---

<div class="post-metadata">

**Author:** ![rrashid](https://avatars.discourse-cdn.com/v4/letter/r/45deac/32.png) [@rrashid](https://community.asterisk.org/u/rrashid)\
**Post date:** [August 28, 2006, 6:17pm UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/6 "2006-08-28T18:17:19Z")

</div>

Make sure that you have the context set up correct for that specific ZAP channel or channels and then add the following into that context in extensions.conf

exten =\> s,1,Answer ;Answer the call  
exten =\> s,2,Musiconhold ;Play the MOH music for them  
exten =\> s,3,hangup ; When the call is done hang up

---

<div class="post-metadata">

**Author:** ![PenisPreve](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@PenisPreve](https://community.asterisk.org/u/PenisPreve)\
**Post date:** [August 30, 2006, 6:40pm UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/7 "2006-08-30T18:40:35Z")

</div>

Thank you dave!  
I obviously have more serious problems here.  
I put in what you said under the contexxt "incoming"  
It does not see it.  
I’ll keep working on it.

The softphones work great and the outbound through the pots is fine. I even got the streaming music on hold to work.

---

<div class="post-metadata">

**Author:** ![SuperB](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@SuperB](https://community.asterisk.org/u/SuperB)\
**Post date:** [August 31, 2006, 12:39am UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/8 "2006-08-31T00:39:19Z")

</div>

lrisley,

If you created an “incoming” context in your extensions.conf with the Dave’s code, did you change the context in your zapata.conf file from “from-pstn” to “incoming”? Or move the code from incoming to from-pstn in your extensions.conf. Your initial post show the zap channel 4 going to context from-pstn

---

<div class="post-metadata">

**Author:** ![PenisPreve](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@PenisPreve](https://community.asterisk.org/u/PenisPreve)\
**Post date:** [September 1, 2006, 7:54pm UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/9 "2006-09-01T19:54:53Z")

</div>

I removed the [from-pstn] context.  
I put in the following under the [incoming] context:

[incoming]  
exten =\> s,1,Answer ;Answer the call  
exten =\> s,2,Dial(SIP1000&SIP2000,5,tr)  
exten =\> s,3,Voicemail,u1000  
exten =\> s,102,Voicemail,b1000

The output I see from sterisk shows:  
starting simple switch on 'Zap/4-1’  
Executing Answer(Zap/4-1)  
Executing Dial(“Zap/4-1”,“SIP1000&SIP2000|5|tr”)  
Hangup ‘Zap/4-1’

I thought the answer and dial with the TR would answer the incoming call, dial extensions 1000 and 2000 and transfer.  
All that happens is it hangs up (within 2 seconds)

---

<div class="post-metadata">

**Author:** ![dswartz](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@dswartz](https://community.asterisk.org/u/dswartz)\
**Post date:** [September 1, 2006, 8:13pm UTC](https://community.asterisk.org/t/asterisk-sees-the-pots-but-wont-answer-tdm400p/8703/10 "2006-09-01T20:13:04Z")

</div>

if you’re still learning how this all works, it would be much less frustrating to use a distro like asterisk@home (now trixbox), since this all “just works”.
