Hi all
My scenerio is |Nortel|-----PRI---------|Trixbox|------PRI-----|PSTN|
Trixbox have A102 Sangoma Pri Card.
I want call to each other and nortel dial to PSTN and vice versa. My problem is bellow.
|Nortel|-------------|Trixbox| (working fine)
|Nortel|-------------|PSTN| (working fine)
|Trixbox|-----------|PSTN| (working fine)
|Trixbox|-----------|Nortel ( not working )
|PSTN|-------------|Trixbox| (working fine)
|PSTN|-------------|Nortel| ( not working )
My configuration is
zapata-auto.conf
-----------------------
;Sangoma A102 port 1 [slot:2 bus:6 span:1]
switchtype=national
context=from-zaptel
group=1
signalling=pri_cpe
channel =>1-15,17-31
;Sangoma A102 port 2 [slot:2 bus:6 span:2]
switchtype=national
context=from-internal
group=2
signalling=pri_net
channel =>32-46,48-62
zapata.conf
---------------------
[trunkgroups]
context=from-zaptel
signalling=pri_cpe
group=1
channel => 1-15
channel => 17-31
context=from-internal
signalling=pri_net
group=2
channel => 32-46
channel => 48-62
[channels]
language=en
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
pridialplan = local
prilocaldialplan = local
nationalprefix = 1
switchtype => national
callerid => asreceived
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no
;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
;Include genzaptelconf configs
#include zapata-auto.conf
;Include AMP configs
#include zapata_additional.conf
---------------------------------------
I make two trunk and also change the name Zap/1 and ZAP/2
outbound Route define on each trunk 9|. for Zap/1 and 8|. for ZAP/2
as above diagram when we call through Trixbox 8|. to nortel its not working it shows bellow error
-- Executing [8275@from-internal:1] Macro("SIP/402-09060ac8", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/402-09060ac8", "AMPUSER=402") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/402-09060ac8", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/402-09060ac8", "1|Set|REALCALLERIDNUM=402") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/402-09060ac8", "AMPUSER=402") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/402-09060ac8", "AMPUSERCIDNAME=Khurram") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/402-09060ac8", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/402-09060ac8", "AMPUSERCID=402") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/402-09060ac8", "CALLERID(all)="Khurram" ") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/402-09060ac8", "REALCALLERIDNUM=402") in new stack
-- Executing [s@macro-user-callerid:10] ExecIf("SIP/402-09060ac8", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/402-09060ac8", "1?continue") in new stack
-- Goto (macro-user-callerid,s,20)
-- Executing [s@macro-user-callerid:20] NoOp("SIP/402-09060ac8", "Using CallerID "Khurram" ") in new stack
-- Executing [8275@from-internal:2] Set("SIP/402-09060ac8", "_NODEST=") in new stack
-- Executing [8275@from-internal:3] Macro("SIP/402-09060ac8", "record-enable|402|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/402-09060ac8", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/402-09060ac8", "recordingcheck|20100121-184710|1264081630.1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100121-184710|1264081630.1: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/402-09060ac8", "") in new stack
-- Executing [8275@from-internal:4] Macro("SIP/402-09060ac8", "dialout-trunk|2|275||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/402-09060ac8", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/402-09060ac8", "0?sub-pincheck|s|1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/402-09060ac8", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/402-09060ac8", "DIAL_NUMBER=275") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/402-09060ac8", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/402-09060ac8", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/402-09060ac8", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/402-09060ac8", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/402-09060ac8", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/402-09060ac8", "outbound-callerid|2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/402-09060ac8", "0|SetCallerPres|") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/402-09060ac8", "0|Set|REALCALLERIDNUM=402") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/402-09060ac8", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/402-09060ac8", "USEROUTCID=402") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/402-09060ac8", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/402-09060ac8", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/402-09060ac8", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/402-09060ac8", "0|Set|CALLERID(all)=") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/402-09060ac8", "1|Set|CALLERID(all)=402") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/402-09060ac8", "0|SetCallerPres|prohib_passed_screen") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/402-09060ac8", "1|AGI|fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/402-09060ac8", "OUTNUM=275") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/402-09060ac8", "custom=ZAP/2") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/402-09060ac8", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/402-09060ac8", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/402-09060ac8", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/402-09060ac8", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/402-09060ac8", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/402-09060ac8", "ZAP/2/275|300|") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/402-09060ac8", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/402-09060ac8", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/402-09060ac8", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
-- Executing [8275@from-internal:5] Macro("SIP/402-09060ac8", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/402-09060ac8", "all-circuits-busy-now|noanswer") in new stack
--
-- Executing [s@macro-outisbusy:2] Playback("SIP/402-09060ac8", "pls-try-call-later|noanswer") in new stack
--
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/402-09060ac8' in macro 'outisbusy'
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/402-09060ac8'
___________________________________________________________________________________
Please help me on this issue i,m working on for last one week but its not working.
Member Since:
2008-03-10