# Analog phone Zap problem

**URL:** <https://community.asterisk.org/t/analog-phone-zap-problem/12878>\
**Category:** Asterisk Support\
**Created:** [March 5, 2007, 8:17pm UTC](https://community.asterisk.org/t/analog-phone-zap-problem/12878 "2007-03-05T20:17:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![barnwep](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@barnwep](https://community.asterisk.org/u/barnwep)\
**Post date:** [March 5, 2007, 8:17pm UTC](https://community.asterisk.org/t/analog-phone-zap-problem/12878/1 "2007-03-05T20:17:10Z")

</div>

I’ve got 1 SIP phone (Aastra) and 1 Sangoma Analog card with 2 port FXS and 2 port FXO cards in it.

I’ve got it so that my SIP phone can call the analog one fine, and conversations can be made. But trying to call from the analog phone asterisk immediately hangs up on the Zap channel. Verbose output when trying this isn’t really helpful:-

* * *

## Asterisk Ready. – Starting simple switch on ‘Zap/4-1’ – Hungup ‘Zap/4-1’

/etc/zapta.conf:-

# Autogenerated by /usr/local/sbin/sangoma/setup-sangoma – do not hand edit

# Zaptel Channels Configurations (zaptel.conf)

# 

loadzone=uk  
defaultzone=uk

#Sangoma A200 [slot:3 bus:0 span:1]  
fxsks=1  
fxsks=2  
fxoks=3  
fxoks=4

/etc/asterisk/zapata.conf

[trunkgroups]

[channels]  
context=default  
usecallerid=yes  
hidecallerid=no  
callwaiting=yes  
usecallingpres=yes  
callwaitingcallerid=yes  
threewaycalling=yes  
transfer=yes  
canpark=yes  
cancallforward=yes  
callreturn=yes  
echocancel=yes  
echocancelwhenbridged=yes  
rxgain=0.0  
txgain=0.0  
hanguponpolarityswitch=no  
group=1  
callgroup=1  
pickupgroup=1

immediate=no

;Sangoma A200 [slot:3 bus:0 span:1]  
context=from-zaptel  
group=0  
signalling = fxs\_ks  
channel =\> 1

context=from-zaptel  
group=0  
signalling = fxs\_ks  
channel =\> 2

context=from-internal  
group=1  
signalling = fxo\_ks  
channel =\> 3

context=incoming  
group=1  
signalling = fxo\_ks  
channel =\> 4

/etc/asterisk/sip.conf:-

[general]  
context=internal  
bindaddr=0.0.0.0  
disallow=all  
allow=ulaw  
allow=alaw

[100]  
type=friend  
canreinvite=no  
qualify=yes  
username=100  
secret=xxxxxx  
host=dynamic  
context=internal  
dtmfmode=rfc2833  
callgroup=1  
pickupgroup=1

/etc/asterisk/extensions.conf  
[general]  
static=yes  
writeprotect=yes  
autofallthrough=yes  
clearglobalvars=no  
priorityjumping=no  
;  
[globals]  
E100=SIP/100  
;  
[internal]  
;  
exten =\> 100,1,Dial(${E100},20,r)  
exten =\> 102,1,Dial(Zap/4)

asterisk is Asterisk 1.2.16  
zaptel-1.2.15  
wanpipe-2.3.4-7

all compiled from source.

Any ideas anybody, I’ve googled and searched the forums but got nowhere with it ;(

Rgds

Pete

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [March 5, 2007, 8:59pm UTC](https://community.asterisk.org/t/analog-phone-zap-problem/12878/2 "2007-03-05T20:59:59Z")

</div>

[quote=“barnwep”]context=incoming  
group=1  
signalling = fxo\_ks  
channel =\> 4  
[/quote]is this a typo ? do you have an incoming context ?

---

<div class="post-metadata">

**Author:** ![barnwep](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@barnwep](https://community.asterisk.org/u/barnwep)\
**Post date:** [March 5, 2007, 9:18pm UTC](https://community.asterisk.org/t/analog-phone-zap-problem/12878/3 "2007-03-05T21:18:39Z")

</div>

Sorry - cut a different version of the zapata.conf (tried a lot of fiddling): it should read internal, not incoming. (I get different error, complaining about a non-existant context with incoming in it!)
