<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dear All,
<p>The resolution to the problem below was very easy and I guess that what
made it very hard:
<p>callerid=asreceived
<br>&nbsp;&nbsp; signalling=pri_cpe
<br>&nbsp;&nbsp; <b>switchtype=> euroisdn</b>
<br>&nbsp;&nbsp; context=from-zaptel
<br>&nbsp;&nbsp; group=0
<br>&nbsp;&nbsp; channel=>1-15,17-31
<p>Thx
<br>MAG
<br>&nbsp;
<p>"Mohamed A. Gombolaty" wrote:
<blockquote TYPE=CITE>Dear All,
<p>I have an asterisk server&nbsp; version 1.2.12.1 along with trixbox
and I am having this nasty problem, I have a TE200P and have an E1 pri
attached to it and zttool&nbsp; says it's OK, I have configured the whole
31 channels into one group&nbsp; as follow:
<p>Zapata-auto.conf:
<p>callerid=asreceived
<br>signalling=pri_cpe
<br>switchtype=euroisdn
<br>context=from-zaptel
<br>group=0
<br>channel=>1-15,17-31
<p>/etc/zaptel.conf:
<br>span=1,1,0,ccs,hdb3,crc4
<br>bchan=1-15,17-31
<br>dchan=16
<p>Now I can recieve calls on the pri and everyhting is well but I can't
make calls from the pri, whenever I try I get all circuits are busy message
here is a log from asterisk cli when I try to make a call out using pri
it is a tiny long but trixbox does add many macros and stuff&nbsp; put
I do have suspicions about what can cause the zap channel to get a Hungup
request as it seems from below that is the case :
<br>&nbsp;
<p>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "dialout-trunk|3|6536595||")in
new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?3:2")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-dialout-trunk,s,3)
<br>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "user-callerid")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?report")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?start")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "REALCALLERIDNUM=146")
in newstack
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "REALCALLERIDNUM
is 146") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "AMPUSER=146")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "AMPUSERCIDNAME=Mohamed
Samir -UNIX") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?report")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "CALLERID(all)=Mohamed
Samir - UNIX &lt;146>") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "Using CallerID
"Mohamed Samir - UNIX" &lt;146>") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "record-enable|146|OUT")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0 > 0?2:4")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-record-enable,s,4)
<br>&nbsp;&nbsp;&nbsp; -- Executing AGI("SIP/146-b78060b0", "recordingcheck|20061110-162404|1163168644.20")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
<br>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "dialout-trunk|3|6536595||")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?3:2")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-dialout-trunk,s,3)
<br>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "user-callerid")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?report")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?start")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "REALCALLERIDNUM=146")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "REALCALLERIDNUM
is 146") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "AMPUSER=146")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "AMPUSERCIDNAME=Mohamed
Samir - UNIX") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?report")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "CALLERID(all)=Mohamed
Samir - UNIX &lt;146>") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "Using CallerID
"Mohamed Samir - UNIX" &lt;146>") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "record-enable|146|OUT")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0 > 0?2:4")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-record-enable,s,4)
<br>&nbsp;&nbsp;&nbsp; -- Executing AGI("SIP/146-b78060b0", "recordingcheck|20061110-162404|1163168644.20")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheckrecordingcheck|20061110-162404|1163168644.20:
Outbound recording not enabled
<br>&nbsp; recordingcheck|20061110-162404|1163168644.20: Outbound recording
not enabled
<br>&nbsp;&nbsp;&nbsp; -- AGI Script recordingcheck completed, returning
0
<br>&nbsp;&nbsp;&nbsp; -- AGI Script recordingcheck completed, returning
0
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "No recording
needed") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "No recording
needed") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "outbound-callerid|3")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "outbound-callerid|3")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?start")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?start")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-outbound-callerid,s,3)
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-outbound-callerid,s,3)
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "REALCALLERIDNUM
is 146") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "REALCALLERIDNUM
is 146") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "USEROUTCID=")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "USEROUTCID=")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "EMERGENCYCID=")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "EMERGENCYCID=")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "TRUNKOUTCID=")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "TRUNKOUTCID=")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?trunkcid")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?trunkcid")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-outbound-callerid,s,11)
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-outbound-callerid,s,11)
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?usercid")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?usercid")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-outbound-callerid,s,13)
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-outbound-callerid,s,13)
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?report")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "1?report")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-outbound-callerid,s,15)
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-outbound-callerid,s,15)
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "CallerID
set to "Mohamed Samir - UNIX" &lt;146>") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "CallerID
set to "Mohamed Samir - UNIX" &lt;146>") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "GROUP()=OUT_3")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "GROUP()=OUT_3")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?108")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?108")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "DIAL_NUMBER=6536595")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "DIAL_NUMBER=6536595")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "DIAL_TRUNK=3")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "DIAL_TRUNK=3")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing AGI("SIP/146-b78060b0", "fixlocalprefix")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing AGI("SIP/146-b78060b0", "fixlocalprefix")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
<br>&nbsp;&nbsp;&nbsp; -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
<br>&nbsp; fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
<br>&nbsp; fixlocalprefix: Could not parse /etc/asterisk/localprefixes.conf
<br>&nbsp;&nbsp;&nbsp; -- AGI Script fixlocalprefix completed, returning
0
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "OUTNUM=6536595")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "custom=ZAP/g0")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?16")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Dial("SIP/146-b78060b0", "ZAP/g0/6536595|120|tr")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Requested transfer capability: 0x00 - SPEECH
<br>&nbsp;&nbsp;&nbsp; -- Called g0/6536595
<br>&nbsp;&nbsp;&nbsp; -- AGI Script fixlocalprefix completed, returning
0
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "OUTNUM=6536595")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Set("SIP/146-b78060b0", "custom=ZAP/g0")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing GotoIf("SIP/146-b78060b0", "0?16")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Dial("SIP/146-b78060b0", "ZAP/g0/6536595|120|tr")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Requested transfer capability: 0x00 - SPEECH
<br>&nbsp;&nbsp;&nbsp; -- Called g0/6536595
<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 is proceeding passing it to SIP/146-b78060b0
<br>&nbsp;&nbsp;&nbsp; -- Zap/1-1 is proceeding passing it to SIP/146-b78060b0
<br>&nbsp;&nbsp;&nbsp; -- Channel 0/1, span 1 got hangup request
<br>&nbsp;&nbsp;&nbsp; -- Channel 0/1, span 1 got hangup request
<br>&nbsp;&nbsp;&nbsp; -- Hungup 'Zap/1-1'
<br>&nbsp;&nbsp;&nbsp; -- Hungup 'Zap/1-1'
<br>&nbsp; == Everyone is busy/congested at this time (1:0/0/1)
<br>&nbsp; == Everyone is busy/congested at this time (1:0/0/1)
<br>&nbsp;&nbsp;&nbsp; -- Executing Goto("SIP/146-b78060b0", "s-CHANUNAVAIL|1")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Goto("SIP/146-b78060b0", "s-CHANUNAVAIL|1")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "Dial failed
due to CHANUNAVAIL") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing NoOp("SIP/146-b78060b0", "Dial failed
due to CHANUNAVAIL") in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "outisbusy|")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Macro("SIP/146-b78060b0", "outisbusy|")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Playback("SIP/146-b78060b0", "all-circuits-busy-now")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing Playback("SIP/146-b78060b0", "all-circuits-busy-now")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Playing 'all-circuits-busy-now' (language 'en')
<br>&nbsp;&nbsp;&nbsp; -- Playing 'all-circuits-busy-now' (language 'en')
<br>&nbsp;&nbsp;&nbsp; -- Executing Playback("SIP/146-b78060b0", "pls-try-call-later")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Playing 'pls-try-call-later' (language 'en')
<br>&nbsp;&nbsp;&nbsp; -- Executing Playback("SIP/146-b78060b0", "pls-try-call-later")
in new stack
<br>&nbsp;&nbsp;&nbsp; -- Playing 'pls-try-call-later' (language 'en')
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<pre>--&nbsp;
Thx
MAG</pre>
&nbsp;</blockquote>

<pre>--&nbsp;
Thx
MAG</pre>
&nbsp;</html>