Hi,
I just removed the “Dial Rules”, I don’t need to set this using my PSTN trunk. But it’s still not working… at logs the call is redirected to g0 trunks group, but it nos true.
This is the call trace when I call to my cell phone using PSTN trunk. The Asterisk send the ring signal but the call doesn’t out of my office (doesn’t go to PSTN).
srv002*CLI>
– Executing [[email protected]:1] Macro(“DAHDI/1-1”, “user-callerid,SKIPTTL,”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “AMPUSER=20”) in new stack
– Executing [[email protected]:2] GotoIf(“DAHDI/1-1”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/1-1”, “1?Set(REALCALLERIDNUM=20)”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “AMPUSER=20”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “AMPUSERCIDNAME=Recepcao”) in new stack
– Executing [[email protected]:6] GotoIf(“DAHDI/1-1”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/1-1”, “AMPUSERCID=20”) in new stack
– Executing [[email protected]:8] Set(“DAHDI/1-1”, “CALLERID(all)=“Recepcao” <20>”) in new stack
– Executing [[email protected]:9] ExecIf(“DAHDI/1-1”, “1?Set(CHANNEL(language)=pt_BR)”) in new stack
– Executing [[email protected]:10] GotoIf(“DAHDI/1-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] NoOp(“DAHDI/1-1”, “Using CallerID “Recepcao” <20>”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “_NODEST=”) in new stack
– Executing [[email protected]:3] Macro(“DAHDI/1-1”, “record-enable,20,OUT,”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/1-1”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] AGI(“DAHDI/1-1”, “recordingcheck,20100625-090309,1277467379.7”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20100625-090309,1277467379.7: Outbound recording not enabled
– <DAHDI/1-1>AGI Script recordingcheck completed, returning 0
– Executing [[email protected]:5] MacroExit(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:4] Macro(“DAHDI/1-1”, “dialout-trunk,2,86374456,”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:2] GosubIf(“DAHDI/1-1”, “0?sub-pincheck,s,1”) in new stack
– Executing [[email protected]:3] GotoIf(“DAHDI/1-1”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/1-1”, “DIAL_NUMBER=86374456”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “DIAL_TRUNK_OPTIONS=trwW”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/1-1”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [[email protected]:7] GotoIf(“DAHDI/1-1”, “0?nomax”) in new stack
– Executing [[email protected]:8] GotoIf(“DAHDI/1-1”, “0?chanfull”) in new stack
– Executing [[email protected]:9] GotoIf(“DAHDI/1-1”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/1-1”, “DIAL_TRUNK_OPTIONS=twW”) in new stack
– Executing [[email protected]:11] Macro(“DAHDI/1-1”, “outbound-callerid,2”) in new stack
– Executing [[email protected]:1] ExecIf(“DAHDI/1-1”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“DAHDI/1-1”, “0?Set(REALCALLERIDNUM=20)”) in new stack
– Executing [[email protected]:3] GotoIf(“DAHDI/1-1”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“DAHDI/1-1”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/1-1”, “EMERGENCYCID=6133643801”) in new stack
– Executing [[email protected]:8] Set(“DAHDI/1-1”, “TRUNKOUTCID=6135471850”) in new stack
– Executing [[email protected]:9] GotoIf(“DAHDI/1-1”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“DAHDI/1-1”, “1?Set(CALLERID(all)=6135471850)”) in new stack
– Executing [[email protected]:13] ExecIf(“DAHDI/1-1”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:14] ExecIf(“DAHDI/1-1”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:12] ExecIf(“DAHDI/1-1”, “1?AGI(fixlocalprefix)”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
– <DAHDI/1-1>AGI Script fixlocalprefix completed, returning 0
– Executing [[email protected]:13] Set(“DAHDI/1-1”, “OUTNUM=86374456”) in new stack
– Executing [[email protected]:14] Set(“DAHDI/1-1”, “custom=DAHDI/g0”) in new stack
– Executing [[email protected]:15] ExecIf(“DAHDI/1-1”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^)twW)”) in new stack
– Executing [[email protected]:16] Macro(“DAHDI/1-1”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:17] GotoIf(“DAHDI/1-1”, “0?bypass,1”) in new stack
– Executing [[email protected]:18] GotoIf(“DAHDI/1-1”, “0?customtrunk”) in new stack
– Executing [[email protected]:19] Dial(“DAHDI/1-1”, “DAHDI/g0/86374456,300,twW”) in new stack
– Called g0/86374456
– DAHDI/2-1 is ringing
– DAHDI/2-1 is ringing
– DAHDI/2-1 is ringing
– DAHDI/2-1 is ringing
– DAHDI/2-1 is ringing
– DAHDI/2-1 is ringing
– DAHDI/2-1 is ringing
– DAHDI/2-1 is ringing
– DAHDI/2-1 is ringing
Thanks a lot.
Any suggest will be appreciated.
Regards,
Leandro