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 => 1-15<br>channel => 17-31<br>
________________<br><br>ERRO ABAIXO: <br><br><br clear="all"> -- Executing [444435153730@from-internal:1] Macro("SIP/3730-085d0648", "dialout-trunk|8|35153730||") in new stack<br> -- Executing [s@macro-dialout-trunk:1] Set("SIP/3730-085d0648", "DIAL_TRUNK=8") in new stack<br>
-- Executing [s@macro-dialout-trunk:2] Set("SIP/3730-085d0648", "DIAL_NUMBER=35153730") in new stack<br> -- Executing [s@macro-dialout-trunk:3] Set("SIP/3730-085d0648", "ROUTE_PASSWD=") in new stack<br>
-- Executing [s@macro-dialout-trunk:4] GotoIf("SIP/3730-085d0648", "1?noauth") in new stack<br> -- Goto (macro-dialout-trunk,s,6)<br> -- Executing [s@macro-dialout-trunk:6] GotoIf("SIP/3730-085d0648", "0?disabletrunk|1") in new stack<br>
-- Executing [s@macro-dialout-trunk:7] Set("SIP/3730-085d0648", "_NODEST=") in new stack<br> -- Executing [s@macro-dialout-trunk:8] Set("SIP/3730-085d0648", "DIAL_TRUNK_OPTIONS=tTrwW") in new stack<br>
-- Executing [s@macro-dialout-trunk:9] Set("SIP/3730-085d0648", "GROUP()=OUT_8") in new stack<br> -- Executing [s@macro-dialout-trunk:10] Macro("SIP/3730-085d0648", "user-callerid|SKIPTTL") in new stack<br>
-- Executing [s@macro-user-callerid:1] NoOp("SIP/3730-085d0648", "user-callerid: device 3730") in new stack<br> -- Executing [s@macro-user-callerid:2] Set("SIP/3730-085d0648", "AMPUSER=3730") in new stack<br>
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/3730-085d0648", "0?report") in new stack<br> -- Executing [s@macro-user-callerid:4] GotoIf("SIP/3730-085d0648", "0?start") in new stack<br>
-- Executing [s@macro-user-callerid:5] Set("SIP/3730-085d0648", "REALCALLERIDNUM=3730") in new stack<br> -- Executing [s@macro-user-callerid:6] NoOp("SIP/3730-085d0648", "REALCALLERIDNUM is 3730") in new stack<br>
-- Executing [s@macro-user-callerid:7] Set("SIP/3730-085d0648", "AMPUSER=3730") in new stack<br> -- Executing [s@macro-user-callerid:8] Set("SIP/3730-085d0648", "AMPUSERCIDNAME=Suporte") in new stack<br>
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/3730-085d0648", "0?report") in new stack<br> -- Executing [s@macro-user-callerid:10] Set("SIP/3730-085d0648", "AMPUSERCID=3730") in new stack<br>
-- Executing [s@macro-user-callerid:11] Set("SIP/3730-085d0648", "CALLERID(all)="Suporte" <3730>") in new stack<br> -- Executing [s@macro-user-callerid:12] Set("SIP/3730-085d0648", "REALCALLERIDNUM=3730") in new stack<br>
-- Executing [s@macro-user-callerid:13] NoOp("SIP/3730-085d0648", "TTL: ARG1: SKIPTTL") in new stack<br> -- Executing [s@macro-user-callerid:14] GotoIf("SIP/3730-085d0648", "1?continue") in new stack<br>
-- Goto (macro-user-callerid,s,23)<br> -- Executing [s@macro-user-callerid:23] NoOp("SIP/3730-085d0648", "Using CallerID "Suporte" <3730>") in new stack<br> -- Executing [s@macro-dialout-trunk:11] Macro("SIP/3730-085d0648", "record-enable|3730|OUT") in new stack<br>
-- Executing [s@macro-record-enable:1] GotoIf("SIP/3730-085d0648", "0?2:4") in new stack<br> -- Goto (macro-record-enable,s,4)<br> -- Executing [s@macro-record-enable:4] AGI("SIP/3730-085d0648", "recordingcheck|20090819-152750|1250706470.0") 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("SIP/3730-085d0648", "OUT3730-20090819-152750-1250706470.0.wav") in new stack<br> -- Executing [s@macro-dialout-trunk:12] GotoIf("SIP/3730-085d0648", "0?skipoutcid") in new stack<br>
== Begin MixMonitor Recording SIP/3730-085d0648<br> -- Executing [s@macro-dialout-trunk:13] Set("SIP/3730-085d0648", "DIAL_TRUNK_OPTIONS=tTwW") in new stack<br> -- Executing [s@macro-dialout-trunk:14] Macro("SIP/3730-085d0648", "outbound-callerid|8") in new stack<br>
-- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/3730-085d0648", "1?start") in new stack<br> -- Goto (macro-outbound-callerid,s,3)<br> -- Executing [s@macro-outbound-callerid:3] NoOp("SIP/3730-085d0648", "REALCALLERIDNUM is 3730") in new stack<br>
-- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/3730-085d0648", "1?normcid") in new stack<br> -- Goto (macro-outbound-callerid,s,9)<br> -- Executing [s@macro-outbound-callerid:9] Set("SIP/3730-085d0648", "USEROUTCID=") in new stack<br>
-- Executing [s@macro-outbound-callerid:10] Set("SIP/3730-085d0648", "EMERGENCYCID=") in new stack<br> -- Executing [s@macro-outbound-callerid:11] Set("SIP/3730-085d0648", "TRUNKOUTCID=") in new stack<br>
-- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/3730-085d0648", "1?trunkcid") in new stack<br> -- Goto (macro-outbound-callerid,s,16)<br> -- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/3730-085d0648", "1?usercid") in new stack<br>
-- Goto (macro-outbound-callerid,s,18)<br> -- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/3730-085d0648", "1?report") in new stack<br> -- Goto (macro-outbound-callerid,s,22)<br> -- Executing [s@macro-outbound-callerid:22] NoOp("SIP/3730-085d0648", "CallerID set to "Suporte" <3730>") in new stack<br>
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/3730-085d0648", "1?nomax") in new stack<br> -- Goto (macro-dialout-trunk,s,17)<br> -- Executing [s@macro-dialout-trunk:17] AGI("SIP/3730-085d0648", "fixlocalprefix") in new stack<br>
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix<br> > fixlocalprefix: Using pattern 0|021+XXXXXXXXXX<br> -- AGI Script fixlocalprefix completed, returning 0<br> -- Executing [s@macro-dialout-trunk:18] Set("SIP/3730-085d0648", "OUTNUM=35153730") in new stack<br>
-- Executing [s@macro-dialout-trunk:19] Set("SIP/3730-085d0648", "custom=ZAP/g0") in new stack<br> -- Executing [s@macro-dialout-trunk:20] GotoIf("SIP/3730-085d0648", "1?gocall") in new stack<br>
-- Goto (macro-dialout-trunk,s,22)<br> -- Executing [s@macro-dialout-trunk:22] Macro("SIP/3730-085d0648", "dialout-trunk-predial-hook") in new stack<br> -- Executing [s@macro-dialout-trunk:23] GotoIf("SIP/3730-085d0648", "0?bypass|1") in new stack<br>
-- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/3730-085d0648", "0?customtrunk") in new stack<br> -- Executing [s@macro-dialout-trunk:25] Dial("SIP/3730-085d0648", "ZAP/g0/35153730|300|tTwW") in new stack<br>
== Everyone is busy/congested at this time (1:0/0/1)<br> -- Executing [s@macro-dialout-trunk:26] Goto("SIP/3730-085d0648", "s-CHANUNAVAIL|1") in new stack<br> -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)<br>
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/3730-085d0648", "1?noreport") in new stack<br> -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)<br> -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/3730-085d0648", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack<br>
-- Executing [444435153730@from-internal:2] Macro("SIP/3730-085d0648", "outisbusy|") in new stack<br> -- Executing [s@macro-outisbusy:1] Playback("SIP/3730-085d0648", "ss-noservice|noanswer") in new stack<br>
-- <SIP/3730-085d0648> Playing 'ss-noservice' (language 'en')<br> -- Executing [s@macro-outisbusy:2] Playback("SIP/3730-085d0648", "pls-try-call-later|noanswer") in new stack<br>
-- <SIP/3730-085d0648> Playing 'pls-try-call-later' (language 'en')<br> -- Executing [s@macro-outisbusy:3] Macro("SIP/3730-085d0648", "hangupcall") in new stack<br> -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/3730-085d0648", "w") in new stack<br>
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/3730-085d0648", "") in new stack<br> -- Executing [s@macro-hangupcall:3] GotoIf("SIP/3730-085d0648", "1?skiprg") in new stack<br>
-- Goto (macro-hangupcall,s,6)<br> -- Executing [s@macro-hangupcall:6] GotoIf("SIP/3730-085d0648", "1?skipblkvm") in new stack<br> -- Goto (macro-hangupcall,s,9)<br> -- Executing [s@macro-hangupcall:9] GotoIf("SIP/3730-085d0648", "1?theend") in new stack<br>
-- Goto (macro-hangupcall,s,11)<br> -- Executing [s@macro-hangupcall:11] Hangup("SIP/3730-085d0648", "") in new stack<br> == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/3730-085d0648' in macro 'hangupcall'<br>
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/3730-085d0648' in macro 'outisbusy'<br> == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/3730-085d0648'<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>