I am trying to configure Asterisk for BSNL, india network.<br>
I have successfully configured it for outgoing calls.
<p> When any outside number make any call to trunk then it receives the
call properly but when the call is disconnected by inside extension then
outside phone does not get a busy tone. <br></p>
<p>Asterisk incoming call log:</p><p>-- Executing [s@incoming:2] Dial(&quot;Zap/4-1&quot;, &quot;Zap/1&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Called 1<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 is ringing<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 is ringing<br>[Jan 17 11:53:54] WARNING[5030]: chan_zap.c:4153 zt_handle_event: Didn&#39;t finish Caller-ID spill.&nbsp; Cancelling.
<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 is ringing<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 is ringing<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 is ringing<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 answered Zap/4-1<br>&nbsp;&nbsp;&nbsp; -- Native bridging Zap/4-1 and Zap/1-1<br>&nbsp;&nbsp;&nbsp; -- Hungup &#39;Zap/1-1&#39;<br>&nbsp; == Spawn extension (incoming, s, 2) exited non-zero on &#39;Zap/4-1&#39;
<br>&nbsp;&nbsp;&nbsp; -- Hungup &#39;Zap/4-1&#39;<br></p><p><br></p><p>My system information is as follows:</p>
<p>OS and components:</p>
<p>CentOS 4.5<br>
Asterisk 1.4.17<br>
Zaptel <a href="http://1.4.7.1">1.4.7.1</a><br>
Libpri 1.4.3</p>
<p>extensions.conf<br>
[globals]<br>
OUTBOUNDTRUNK=Zap/4</p>
<p>[incoming]<br>
; incoming calls from FXO<br>
exten =&gt; s,1,Dial(Zap/1)<br><br></p>

<p>[outbound-dialing]<br>
;Outbound dialing<br>
exten =&gt; _X.,1,Verbose(1|Outside number|${EXTEN})<br>
exten =&gt; _X.,n,Dial(${OUTBOUNDTRUNK}/${EXTEN})</p>
<p>[phones]<br>include =&gt; outbound-dialing</p>
<p>zaptel.conf file:</p>
<p>fxsks=4<br>
fxoks=1<br>
loadzone=in<br>
defaultzone=in</p>
<p># /sbin/ztcfg -vv this linux command gives following output:</p><p>
Zaptel Version: <a href="http://1.4.7.1">1.4.7.1</a><br>
Echo Canceller: MG2<br>
Configuration<br>
======================</p>
<p>Channel map:</p>
<p>Channel 01: FXO Kewlstart (Default) (Slaves: 01)<br>
Channel 04: FXS Kewlstart (Default) (Slaves: 04)</p>
<p>2 channels to configure.</p>
<p>zapata.conf file looks like:<br>
[trunkgroups]<br>
; Define</p>
<p>[channels]<br>
;hardware channels<br>
;default<br>
usecallerid=yes<br>
hidecallerid=no<br>echocancel=yes<br>
echotraining=yes<br>callwaiting=no<br>immediate=no<br>
cidstart=ring<br>
cidsignalling=dtmf</p><br>
<p>;define channels<br>
signalling=fxo_ks ;Use FXO signaling for FXS channel<br>
context=phones<br>
channel =&gt; 1</p>
<p>signalling=fxs_ks ;Use FXS signaling for FXO channel<br>context=incoming<br>
channel =&gt; 4</p>Any sort of help will be appreciated.
<p>Thanks in advance</p>
<p>Prashant</p>