Olá Amigos, estou tentando configurar E1-R2 EMBRATEL no Asterisk ,segue abaixo as config do zaptel e zapata, apresenta o erro mais abaixo...Alguem pode me ajudar.<br><br>zaptel.conf:                              <br><br>loadzone    = br<br>
defaultzone = br<br><br>span=1,1,0,cas,hdb3<br>cas=1-15:1101<br>cas=17-31:1101<br>dchan=16<br>_____________<br><br>zapata.conf: <br><br>[trungroups]<br><br>[channels]<br>usecallerid=yes<br>callwaiting=yes<br>usecallingpres=yes<br>
callwaitingcallerid=yes<br>threewaycalling=yes<br>transfer=yes<br>canpark=yes<br>cancallforward=yes<br>callreturn=yes<br>echocancel=yes<br>echocancelwhenbridged=yes<br><br>signalling=mfcr2<br>mfcr2_variant=br<br>mfcr2_get_ani_first=no<br>
mfcr2_max_ani=20<br>mfcr2_max_dnis=4<br>mfcr2_category=national_subscriber<br>mfcr2_logdir=span1<br>mfcr2_logging=all<br><br>context=from-zaptel<br>group=0<br>callgroup=0<br>pickupgroup=0<br>channel =&gt; 1-15<br>channel =&gt; 17-31<br>
________________<br><br>ERRO ABAIXO: <br><br><br clear="all">    -- Executing [444435153730@from-internal:1] Macro(&quot;SIP/3730-085d0648&quot;, &quot;dialout-trunk|8|35153730||&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:1] Set(&quot;SIP/3730-085d0648&quot;, &quot;DIAL_TRUNK=8&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:2] Set(&quot;SIP/3730-085d0648&quot;, &quot;DIAL_NUMBER=35153730&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:3] Set(&quot;SIP/3730-085d0648&quot;, &quot;ROUTE_PASSWD=&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:4] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?noauth&quot;) in new stack<br>    -- Goto (macro-dialout-trunk,s,6)<br>    -- Executing [s@macro-dialout-trunk:6] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;0?disabletrunk|1&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:7] Set(&quot;SIP/3730-085d0648&quot;, &quot;_NODEST=&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:8] Set(&quot;SIP/3730-085d0648&quot;, &quot;DIAL_TRUNK_OPTIONS=tTrwW&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:9] Set(&quot;SIP/3730-085d0648&quot;, &quot;GROUP()=OUT_8&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:10] Macro(&quot;SIP/3730-085d0648&quot;, &quot;user-callerid|SKIPTTL&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:1] NoOp(&quot;SIP/3730-085d0648&quot;, &quot;user-callerid: device 3730&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:2] Set(&quot;SIP/3730-085d0648&quot;, &quot;AMPUSER=3730&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:3] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;0?report&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:4] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;0?start&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:5] Set(&quot;SIP/3730-085d0648&quot;, &quot;REALCALLERIDNUM=3730&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:6] NoOp(&quot;SIP/3730-085d0648&quot;, &quot;REALCALLERIDNUM is 3730&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:7] Set(&quot;SIP/3730-085d0648&quot;, &quot;AMPUSER=3730&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:8] Set(&quot;SIP/3730-085d0648&quot;, &quot;AMPUSERCIDNAME=Suporte&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:9] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;0?report&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:10] Set(&quot;SIP/3730-085d0648&quot;, &quot;AMPUSERCID=3730&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:11] Set(&quot;SIP/3730-085d0648&quot;, &quot;CALLERID(all)=&quot;Suporte&quot; &lt;3730&gt;&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:12] Set(&quot;SIP/3730-085d0648&quot;, &quot;REALCALLERIDNUM=3730&quot;) in new stack<br>
    -- Executing [s@macro-user-callerid:13] NoOp(&quot;SIP/3730-085d0648&quot;, &quot;TTL:  ARG1: SKIPTTL&quot;) in new stack<br>    -- Executing [s@macro-user-callerid:14] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?continue&quot;) in new stack<br>
    -- Goto (macro-user-callerid,s,23)<br>    -- Executing [s@macro-user-callerid:23] NoOp(&quot;SIP/3730-085d0648&quot;, &quot;Using CallerID &quot;Suporte&quot; &lt;3730&gt;&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:11] Macro(&quot;SIP/3730-085d0648&quot;, &quot;record-enable|3730|OUT&quot;) in new stack<br>
    -- Executing [s@macro-record-enable:1] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;0?2:4&quot;) in new stack<br>    -- Goto (macro-record-enable,s,4)<br>    -- Executing [s@macro-record-enable:4] AGI(&quot;SIP/3730-085d0648&quot;, &quot;recordingcheck|20090819-152750|1250706470.0&quot;) in new stack<br>
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck<br>  recordingcheck|20090819-152750|1250706470.0: Outbound recording enabled.<br>  recordingcheck|20090819-152750|1250706470.0: CALLFILENAME=OUT3730-20090819-152750-1250706470.0<br>
    -- AGI Script recordingcheck completed, returning 0<br>    -- Executing [s@macro-record-enable:999] MixMonitor(&quot;SIP/3730-085d0648&quot;, &quot;OUT3730-20090819-152750-1250706470.0.wav&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:12] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;0?skipoutcid&quot;) in new stack<br>
  == Begin MixMonitor Recording SIP/3730-085d0648<br>    -- Executing [s@macro-dialout-trunk:13] Set(&quot;SIP/3730-085d0648&quot;, &quot;DIAL_TRUNK_OPTIONS=tTwW&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:14] Macro(&quot;SIP/3730-085d0648&quot;, &quot;outbound-callerid|8&quot;) in new stack<br>
    -- Executing [s@macro-outbound-callerid:1] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?start&quot;) in new stack<br>    -- Goto (macro-outbound-callerid,s,3)<br>    -- Executing [s@macro-outbound-callerid:3] NoOp(&quot;SIP/3730-085d0648&quot;, &quot;REALCALLERIDNUM is 3730&quot;) in new stack<br>
    -- Executing [s@macro-outbound-callerid:4] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?normcid&quot;) in new stack<br>    -- Goto (macro-outbound-callerid,s,9)<br>    -- Executing [s@macro-outbound-callerid:9] Set(&quot;SIP/3730-085d0648&quot;, &quot;USEROUTCID=&quot;) in new stack<br>
    -- Executing [s@macro-outbound-callerid:10] Set(&quot;SIP/3730-085d0648&quot;, &quot;EMERGENCYCID=&quot;) in new stack<br>    -- Executing [s@macro-outbound-callerid:11] Set(&quot;SIP/3730-085d0648&quot;, &quot;TRUNKOUTCID=&quot;) in new stack<br>
    -- Executing [s@macro-outbound-callerid:12] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?trunkcid&quot;) in new stack<br>    -- Goto (macro-outbound-callerid,s,16)<br>    -- Executing [s@macro-outbound-callerid:16] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?usercid&quot;) in new stack<br>
    -- Goto (macro-outbound-callerid,s,18)<br>    -- Executing [s@macro-outbound-callerid:18] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?report&quot;) in new stack<br>    -- Goto (macro-outbound-callerid,s,22)<br>    -- Executing [s@macro-outbound-callerid:22] NoOp(&quot;SIP/3730-085d0648&quot;, &quot;CallerID set to &quot;Suporte&quot; &lt;3730&gt;&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:15] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?nomax&quot;) in new stack<br>    -- Goto (macro-dialout-trunk,s,17)<br>    -- Executing [s@macro-dialout-trunk:17] AGI(&quot;SIP/3730-085d0648&quot;, &quot;fixlocalprefix&quot;) in new stack<br>
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix<br>       &gt;  fixlocalprefix: Using pattern 0|021+XXXXXXXXXX<br>    -- AGI Script fixlocalprefix completed, returning 0<br>    -- Executing [s@macro-dialout-trunk:18] Set(&quot;SIP/3730-085d0648&quot;, &quot;OUTNUM=35153730&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:19] Set(&quot;SIP/3730-085d0648&quot;, &quot;custom=ZAP/g0&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:20] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?gocall&quot;) in new stack<br>
    -- Goto (macro-dialout-trunk,s,22)<br>    -- Executing [s@macro-dialout-trunk:22] Macro(&quot;SIP/3730-085d0648&quot;, &quot;dialout-trunk-predial-hook&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:23] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;0?bypass|1&quot;) in new stack<br>
    -- Executing [s@macro-dialout-trunk:24] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;0?customtrunk&quot;) in new stack<br>    -- Executing [s@macro-dialout-trunk:25] Dial(&quot;SIP/3730-085d0648&quot;, &quot;ZAP/g0/35153730|300|tTwW&quot;) in new stack<br>
  == Everyone is busy/congested at this time (1:0/0/1)<br>    -- Executing [s@macro-dialout-trunk:26] Goto(&quot;SIP/3730-085d0648&quot;, &quot;s-CHANUNAVAIL|1&quot;) in new stack<br>    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)<br>
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?noreport&quot;) in new stack<br>    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)<br>    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp(&quot;SIP/3730-085d0648&quot;, &quot;TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks&quot;) in new stack<br>
    -- Executing [444435153730@from-internal:2] Macro(&quot;SIP/3730-085d0648&quot;, &quot;outisbusy|&quot;) in new stack<br>    -- Executing [s@macro-outisbusy:1] Playback(&quot;SIP/3730-085d0648&quot;, &quot;ss-noservice|noanswer&quot;) in new stack<br>
    -- &lt;SIP/3730-085d0648&gt; Playing &#39;ss-noservice&#39; (language &#39;en&#39;)<br>    -- Executing [s@macro-outisbusy:2] Playback(&quot;SIP/3730-085d0648&quot;, &quot;pls-try-call-later|noanswer&quot;) in new stack<br>
    -- &lt;SIP/3730-085d0648&gt; Playing &#39;pls-try-call-later&#39; (language &#39;en&#39;)<br>    -- Executing [s@macro-outisbusy:3] Macro(&quot;SIP/3730-085d0648&quot;, &quot;hangupcall&quot;) in new stack<br>    -- Executing [s@macro-hangupcall:1] ResetCDR(&quot;SIP/3730-085d0648&quot;, &quot;w&quot;) in new stack<br>
    -- Executing [s@macro-hangupcall:2] NoCDR(&quot;SIP/3730-085d0648&quot;, &quot;&quot;) in new stack<br>    -- Executing [s@macro-hangupcall:3] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?skiprg&quot;) in new stack<br>
    -- Goto (macro-hangupcall,s,6)<br>    -- Executing [s@macro-hangupcall:6] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?skipblkvm&quot;) in new stack<br>    -- Goto (macro-hangupcall,s,9)<br>    -- Executing [s@macro-hangupcall:9] GotoIf(&quot;SIP/3730-085d0648&quot;, &quot;1?theend&quot;) in new stack<br>
    -- Goto (macro-hangupcall,s,11)<br>    -- Executing [s@macro-hangupcall:11] Hangup(&quot;SIP/3730-085d0648&quot;, &quot;&quot;) in new stack<br>  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on &#39;SIP/3730-085d0648&#39; in macro &#39;hangupcall&#39;<br>
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on &#39;SIP/3730-085d0648&#39; in macro &#39;outisbusy&#39;<br>  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on &#39;SIP/3730-085d0648&#39;<br>
  == End MixMonitor Recording SIP/3730-085d0648<br>    -- Remote UNIX connection<br>    -- Remote UNIX connection disconnected<br><br>-- <br>1 Abraço.<br><br>    Fábio Henrique.<br>