# Outgoing calls using TE407P not working

**URL:** <https://community.asterisk.org/t/outgoing-calls-using-te407p-not-working/17205>\
**Category:** Asterisk Support\
**Created:** [October 14, 2007, 6:10pm UTC](https://community.asterisk.org/t/outgoing-calls-using-te407p-not-working/17205 "2007-10-14T18:10:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![titonjoroge](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@titonjoroge](https://community.asterisk.org/u/titonjoroge)\
**Post date:** [October 14, 2007, 6:10pm UTC](https://community.asterisk.org/t/outgoing-calls-using-te407p-not-working/17205/1 "2007-10-14T18:10:54Z")

</div>

For some reason on our E1 card connected to asterisk - we cannot call out. It appears like the call goes to the PSTN and some funny request is returned that makes the asterisk hang the call up. This is the output of the whole process. Any idea why? Just have a look below. A funny thing is that calls from PSTN are coming through without a problem. The problem is only outgoing calls.

We are using asterisk 1.4.9 + zap 1.4 as a bridge between the PSTN and alcatel PABX.

[Executing [1223@branches:1] Wait(“SIP/602-b7b7c508”, “1”) in new stack  
– Executing [1223@branches:2] SetCallerID(“SIP/602-b7b7c508”, “3292200”) in new stack  
– Executing [1223@branches:3] Dial(“SIP/602-b7b7c508”, “ZAP/r1/020556755”) in new stack  
– Requested transfer capability: 0x00 - SPEECH  
– Called r1/020556755  
– Zap/8-1 is proceeding passing it to SIP/602-b7b7c508  
– Channel 0/8, span 1 got hangup request, cause 3  
– Hungup ‘Zap/8-1’  
== Everyone is busy/congested at this time (1:0/0/1)  
– Executing [1223@branches:4] Hangup(“SIP/602-b7b7c508”, “”) in new stack  
== Spawn extension (branches, 1223, 4) exited non-zero on ‘SIP/602-b7b7c508’

/etc/zaptel.conf

span=1,1,0,ccs,hdb3,crc4,yellow - goes to TKL  
span=2,1,0,ccs,hdb3,crc4,yellow - goes to PABX - works fine.

bchan = 1-15, 17-31  
dchan = 16  
bchan = 32-46,48-62  
dchan = 47

loadzone = uk  
defaultzone = uk

I\> zap show status  
Description Alarms IRQ bpviol CRC4  
T4XXP (PCI) Card 0 Span 1 OK 0 0 0  
T4XXP (PCI) Card 0 Span 2 OK 0 0 0  
T4XXP (PCI) Card 0 Span 3 UNCONFIGUR 0 0 0  
T4XXP (PCI) Card 0 Span 4 UNCONFIGUR 0 0 0  
ZTDUMMY/1 1 UNCONFIGUR 0 0 0

zapata.conf

[channels]  
context=zap-incoming  
switchtype=euroisdn  
pridialplan=dynamic  
;signalling=pri\_cpe  
usecallerid=yes  
hidecallerid=no  
callwaiting=yes  
callwaitingcallerid=yes  
threewaycalling=yes  
transfer=yes  
cancallforward=yes  
echocancel=yes  
rxgain=0.0  
txgain=0.0

group=1  
;For the PSTN line  
;dialplan=dynamic

callgroup=1  
pickupgroup=1

immediate=no  
callprogress=no

callerid=asreceived  
context=ivr  
;group=1  
signalling=pri\_cpe  
;outsignalling=pri\_net  
channel =\> 1-15,17-31

group=2  
;For the PABX  
callerid=asreceived  
signalling=pri\_net  
context=pabx  
channel =\> 32-46,48-62

Any Ideas?

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [October 14, 2007, 8:25pm UTC](https://community.asterisk.org/t/outgoing-calls-using-te407p-not-working/17205/2 "2007-10-14T20:25:37Z")

</div>

Hi

try adding

pridialplan=unknown  
prilocaldialplan=unknown

to your zapata.conf it seems to be missing from yours.

Ian

---

<div class="post-metadata">

**Author:** ![titonjoroge](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@titonjoroge](https://community.asterisk.org/u/titonjoroge)\
**Post date:** [October 15, 2007, 5:11pm UTC](https://community.asterisk.org/t/outgoing-calls-using-te407p-not-working/17205/3 "2007-10-15T17:11:20Z")

</div>

Thanks Ian

however, there is no change.

Regards,  
Titus

---

<div class="post-metadata">

**Author:** ![swaterhouse](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@swaterhouse](https://community.asterisk.org/u/swaterhouse)\
**Post date:** [October 15, 2007, 6:19pm UTC](https://community.asterisk.org/t/outgoing-calls-using-te407p-not-working/17205/4 "2007-10-15T18:19:10Z")

</div>

Have you talked to the telco? I had a similar issue with my fax T1, turns out the outgoing config was set different from the incoming on thier end.

---

<div class="post-metadata">

**Author:** ![titonjoroge](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@titonjoroge](https://community.asterisk.org/u/titonjoroge)\
**Post date:** [October 17, 2007, 4:33pm UTC](https://community.asterisk.org/t/outgoing-calls-using-te407p-not-working/17205/5 "2007-10-17T16:33:02Z")

</div>

Hi all… I solved this.

I removed the variable pridialplan=dynamic. I dont even know where i had picked that up from. And then set pridialplan = unknown and localdialpan = unknown and it works like a charm.

However, now, while before i was receiving the called no, now i dont get it.

How can i get my called ID coz i need to route calls to specific extensions directly?

Will update in case of any progress.

Regards,  
Titus

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [October 17, 2007, 5:00pm UTC](https://community.asterisk.org/t/outgoing-calls-using-te407p-not-working/17205/6 "2007-10-17T17:00:59Z")

</div>

Hi

Sorry I didnt make it clear thatmy entries had to be the only ones relating to pridialplans.

at least its working now.

Do mean by not getting the called number, You are not getting the ddi digits !

I would need to see a trace on that one.

details of UK working configs are at [cyber-cottage.co.uk/wiki/ind … bly\_others](http://www.cyber-cottage.co.uk/wiki/index.php/Asterisk_and_isdn#UK_ISDN_from_C.26W_and_possibly_others)

Ian
