<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#f5f5f5>
<DIV><FONT face=Arial size=2>I am running Asterisk 1.0.9 and have been running 
all my calls through&nbsp;a VSP over a IAX2 trunk however we have recently 
purchased and connected a TE110p to a PRI ( E1 with 16 voice channels ) through 
Optus.&nbsp;&nbsp; I can make outgoing calls via it fine, however incoming calls 
are dropped after a few seconds ( or as soon as a command like Playback, or the 
call is picked up if forwarded to a SIP extensions ).&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have upgraded libpri and zaptel to trunk, but I 
don't want to upgrade Asterisk to 1.2 until I've got this all sorted,&nbsp; one 
problem at a time!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here are my configs :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>/etc/zaptel.conf</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># Global data</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>span=1,1,0,ccs,hdb3,crc4<BR>bchan=1-15,17<BR>dchan=16<BR>unused=18-31</FONT></DIV>
<DIV><FONT face=Arial size=2>loadzone = au<BR>defaultzone = au</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>/etc/asterisk/zapata.conf</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>[channels]<BR>context=from-onramp</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>overlapdial=yes<BR>priindication = 
outofband<BR>switchtype=euroisdn<BR>pridialplan=unknown<BR>prilocaldialplan=unknown<BR>signalling=pri_cpe</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>echocancelwhenbridged=yes<BR>echocancel=128<BR>echotraining=800</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>rxgain=5 ; 0<BR>txgain=-4.5 ; 
0<BR>busydetect=no<BR>pridialplan=local<BR>internationalprefix=0011<BR>nationalprefix=0<BR>usecallerid=yes<BR>hidecallerid=no<BR>callprogress=no</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>group=0<BR>channel =&gt; 1-15,17<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>/etc/asterisk/extensions:</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT>
<DIV><FONT face=Arial size=2>[from-onramp]<BR>;exten =&gt; 
s,1,Playback(custom/aa_1)<BR>exten =&gt; s,1,Dial(SIP/116)<BR>exten =&gt; 
h,1,Hangup<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>and here's some log info:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>asterisk*CLI&gt; pri intense debug span 
1<BR>Enabled EXTENSIVE debugging on span 
1<BR>asterisk*CLI&gt;<BR>asterisk*CLI&gt;<BR>asterisk*CLI&gt;<BR>&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&nbsp;&nbsp;&nbsp; 
-- Going to extension s|1 because of Complete received<BR>&nbsp;&nbsp;&nbsp; -- 
Executing Dial("Zap/1-1", "SIP/116") in new stack<BR>&nbsp;&nbsp;&nbsp; -- 
Called 116<BR>&nbsp;&nbsp;&nbsp; -- Accepting call from '' to 's' on channel 
0/1, span 1<BR>&nbsp;&nbsp;&nbsp; -- SIP/116-5a95 is 
ringing<BR>&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&nbsp;&nbsp;&nbsp; 
-- SIP/116-5a95 answered Zap/1-1<BR>&nbsp; == Spawn extension (from-onramp, s, 
1) exited non-zero on 'Zap/1-1'<BR>&nbsp;&nbsp;&nbsp; -- Executing 
Hangup("Zap/1-1", "") in new stack<BR>&nbsp; == Spawn extension (from-onramp, h, 
1) exited non-zero on 'Zap/1-1'<BR>&nbsp;&nbsp;&nbsp; -- Hungup 
'Zap/1-1'<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>and going straight to a Playback command rather 
than SIP extension:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>asterisk*CLI&gt; pri intense debug span 
1<BR>Enabled EXTENSIVE debugging on span 
1<BR>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&nbsp;&nbsp;&nbsp; 
-- Going to extension s|1 because of Complete received<BR>&nbsp;&nbsp;&nbsp; -- 
Executing Answer("Zap/2-1", "") in new stack<BR>&nbsp;&nbsp;&nbsp; -- Accepting 
call from '' to 's' on channel 0/2, span 1<BR>&nbsp; == Spawn extension 
(from-onramp, s, 1) exited non-zero on 'Zap/2-1'<BR>&nbsp;&nbsp;&nbsp; -- 
Executing Hangup("Zap/2-1", "") in new stack<BR>&nbsp; == Spawn extension 
(from-onramp, h, 1) exited non-zero on 'Zap/2-1'<BR>&nbsp;&nbsp;&nbsp; -- Hungup 
'Zap/2-1'<BR><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>&nbsp;</DIV>
<DIV><BR></DIV></FONT></BODY></HTML>