Once again, thanks for the reply!
Here is a log entry… I changed some of the digits in the phone numbers for obvious reasons…
The scenario is this… The outside caller is calling (942) 941-1958. (The outside caller is calling from (942) 958-1599, which is shown as the CID in the log.) (942) 941-1958 is a DID that comes in on the SIP/9429992200 trunk (which is the Cbeyond SIP trunk) and is assigned directly to extension 1758.
The user of extension 1758 has set the extension to call forward all calls (*72) to 9 1 (942) 902-8963. (The special characters and the spacing is there for readability.) The first 9 in the dial string is the 9 for the outside line. The dialing rule 9|. is on the outbound route for the Cbeyond trunk.
When the caller calls in, the call immediately goes to the user’s voice mailbox. it does not ring the forwarded to number nor does it ring extension 1758. Here is the log…
Connected to Asterisk 1.2.15 svn rev 48468 currently running on asterisk1 (pid = 2562)
Verbosity is at least 15
– Executing Set(“SIP/9429992200-b7812bc8”, “FROM_DID=9429411958”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “FAX_RX=”) in new stack
– Executing Goto(“SIP/9429992200-b7812bc8”, “from-did-direct|1758|1”) in new stack
– Goto (from-did-direct,1758,1)
– Executing Macro(“SIP/9429992200-b7812bc8”, “exten-vm|1758|1758”) in new stack
– Executing Macro(“SIP/9429992200-b7812bc8”, “user-callerid”) in new stack
– Executing NoOp(“SIP/9429992200-b7812bc8”, “user-callerid: CELLULAR CALL 9429581599”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “0?report”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “0?start”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “REALCALLERIDNUM=9429581599”) in new stack
– Executing NoOp(“SIP/9429992200-b7812bc8”, “REALCALLERIDNUM is 9429581599”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “AMPUSER=”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “1?report”) in new stack
– Goto (macro-user-callerid,s,11)
– Executing NoOp(“SIP/9429992200-b7812bc8”, “TTL: ARG1: 1758”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “0?continue”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “_TTL=64”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,21)
– Executing NoOp(“SIP/9429992200-b7812bc8”, "Using CallerID “CELLULAR CALL " <9429581599>”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “FROMCONTEXT=exten-vm”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “VMBOX=1758”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “EXTTOCALL=1758”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “CFUEXT=”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “CFBEXT=”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “RT=30”) in new stack
– Executing Macro(“SIP/9429992200-b7812bc8”, “record-enable|1758|IN”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing DeadAGI(“SIP/9429992200-b7812bc8”, “recordingcheck|20070422-095359|1177253639.9930”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070422-095359|1177253639.9930: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“SIP/9429992200-b7812bc8”, “No recording needed”) in new stack
– Executing Macro(“SIP/9429992200-b7812bc8”, “dial|30|tr|1758”) in new stack
– Executing DeadAGI(“SIP/9429992200-b7812bc8”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘CELLULAR CALL’ number is '9429581599’
dialparties.agi: Methodology of ring is ‘none’
> dialparties.agi: USE_CONFIRMATION: ‘FALSE’
> dialparties.agi: RINGGROUP_INDEX: ‘’
– dialparties.agi: Added extension 1758 to extension map
dialparties.agi: Extension 1758 has call forward set to 919429028963
> dialparties.agi: Primary ext is CF so disabling mastermode if it was set
> dialparties.agi: extnum: 919429028963#
> dialparties.agi: exthascw: 0
> dialparties.agi: exthascfb: 0
> dialparties.agi: extcfb:
> dialparties.agi: exthascfu: 0
> dialparties.agi: extcfu:
> dialparties.agi: Built External dialstring component for 919429028963: Local/919429028963@from-internal/n
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“SIP/9429992200-b7812bc8”, “Local/919429028963@from-internal/n|30|tr”) in new stack
– Called 919429028963@from-internal/n
– Executing Macro(“Local/919429028963@from-internal-2d4c,2”, “dialout-trunk|6|19429028963||”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “DIAL_TRUNK=6”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “_NODEST=”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “DIAL_NUMBER=19429028963”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “ROUTE_PASSWD=”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,8)
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “GROUP()=OUT_6”) in new stack
– Executing Macro(“Local/919429028963@from-internal-2d4c,2”, “user-callerid|SKIPTTL”) in new stack
– Executing NoOp(“Local/919429028963@from-internal-2d4c,2”, “user-callerid: CELLULAR CALL 9429581599”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,11)
– Executing NoOp(“Local/919429028963@from-internal-2d4c,2”, “TTL: 64 ARG1: SKIPTTL”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,21)
– Executing NoOp(“Local/919429028963@from-internal-2d4c,2”, "Using CallerID “CELLULAR CALL " <9429581599>”) in new stack
– Executing Macro(“Local/919429028963@from-internal-2d4c,2”, “record-enable|9429581599|OUT”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing DeadAGI(“Local/919429028963@from-internal-2d4c,2”, “recordingcheck|20070422-095359|1177253639.9932”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070422-095359|1177253639.9932: No AMPUSER db entry for 9429581599. Not recording
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Local/919429028963@from-internal-2d4c,2”, “No recording needed”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?skipoutcid”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “DIAL_TRUNK_OPTIONS=r”) in new stack
– Executing Macro(“Local/919429028963@from-internal-2d4c,2”, “outbound-callerid|6”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?start”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “REALCALLERIDNUM=9429581599”) in new stack
– Executing NoOp(“Local/919429028963@from-internal-2d4c,2”, “REALCALLERIDNUM is 9429581599”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?normcid”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?normcid”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?normcid”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “USEROUTCID=9429581599”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “1?bypass:normcid”) in new stack
– Goto (macro-outbound-callerid,s,10)
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “EMERGENCYCID=”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “TRUNKOUTCID=“Equity Ventures Realty” <9429992200>”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?usercid”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “CALLERID(all)=“Equity Ventures Realty” <9429992200>”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?report”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “CALLERID(all)=9429581599”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “1?report:hidecid”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing NoOp(“Local/919429028963@from-internal-2d4c,2”, “CallerID set to “” <9429581599>”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?nomax”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?chanfull”) in new stack
– Executing DeadAGI(“Local/919429028963@from-internal-2d4c,2”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
– AGI Script fixlocalprefix completed, returning 0
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “OUTNUM=19429028963”) in new stack
– Executing Set(“Local/919429028963@from-internal-2d4c,2”, “custom=SIP/Cbeyond”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “0?customtrunk”) in new stack
– Executing Dial(“Local/919429028963@from-internal-2d4c,2”, “SIP/Cbeyond/19429028963|300|r”) in new stack
– Called Cbeyond/19429028963
– Local/919429028963@from-internal-2d4c,1 is ringing
– Got SIP response 604 “Does not exist anywhere” back from 192.168.22.212
== No one is available to answer at this time (1:0/0/0)
– Executing Goto(“Local/919429028963@from-internal-2d4c,2”, “s-NOANSWER|1”) in new stack
– Goto (macro-dialout-trunk,s-NOANSWER,1)
– Executing NoOp(“Local/919429028963@from-internal-2d4c,2”, “Dial failed due to trunk reporting NOANSWER - giving up”) in new stack
– Executing PlayTones(“Local/919429028963@from-internal-2d4c,2”, “congestion”) in new stack
– Executing Congestion(“Local/919429028963@from-internal-2d4c,2”, “20”) in new stack
– Local/919429028963@from-internal-2d4c,1 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing GosubIf(“SIP/9429992200-b7812bc8”, “0?docfu|1”) in new stack
– Executing GosubIf(“SIP/9429992200-b7812bc8”, “0?docfb|1”) in new stack
– Executing NoOp(“SIP/9429992200-b7812bc8”, “Voicemail is 1758”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “0?s-CONGESTION|1”) in new stack
– Executing NoOp(“SIP/9429992200-b7812bc8”, “Sending to Voicemail box 1758”) in new stack
– Executing Macro(“SIP/9429992200-b7812bc8”, “vm|1758|CONGESTION”) in new stack
– Executing Macro(“SIP/9429992200-b7812bc8”, “user-callerid|SKIPTTL”) in new stack
– Executing NoOp(“SIP/9429992200-b7812bc8”, “user-callerid: CELLULAR CALL 9429581599”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “0?report”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “1?start”) in new stack
– Goto (macro-user-callerid,s,5)
– Executing NoOp(“SIP/9429992200-b7812bc8”, “REALCALLERIDNUM is 9429581599”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “AMPUSER=”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “AMPUSERCIDNAME=”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “1?report”) in new stack
– Goto (macro-user-callerid,s,11)
– Executing NoOp(“SIP/9429992200-b7812bc8”, “TTL: 64 ARG1: SKIPTTL”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,21)
– Executing NoOp(“SIP/9429992200-b7812bc8”, "Using CallerID “CELLULAR CALL " <9429581599>”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “VMGAIN=”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “1?s-CONGESTION|1”) in new stack
– Goto (macro-vm,s-CONGESTION,1)
– Executing Macro(“SIP/9429992200-b7812bc8”, “get-vmcontext|1758”) in new stack
– Executing Set(“SIP/9429992200-b7812bc8”, “VMCONTEXT=default”) in new stack
– Executing GotoIf(“SIP/9429992200-b7812bc8”, “0?200:300”) in new stack
– Goto (macro-get-vmcontext,s,300)
– Executing NoOp(“SIP/9429992200-b7812bc8”, “”) in new stack
– Executing VoiceMail(“SIP/9429992200-b7812bc8”, “1758@default|u”) in new stack
– Playing ‘/var/spool/asterisk/voicemail/default/1758/unavail’ (language ‘en’)
== Spawn extension (macro-dialout-trunk, s-NOANSWER, 3) exited non-zero on ‘Local/919429028963@from-internal-2d4c,2’ in macro ‘dialout-trunk’
== Spawn extension (macro-dialout-trunk, s-NOANSWER, 3) exited non-zero on ‘Local/919429028963@from-internal-2d4c,2’
– Executing Macro(“Local/919429028963@from-internal-2d4c,2”, “hangupcall”) in new stack
– Executing ResetCDR(“Local/919429028963@from-internal-2d4c,2”, “w”) in new stack
– Executing NoCDR(“Local/919429028963@from-internal-2d4c,2”, “”) in new stack
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing GotoIf(“Local/919429028963@from-internal-2d4c,2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing Wait(“Local/919429028963@from-internal-2d4c,2”, “5”) in new stack
== Spawn extension (macro-vm, s-CONGESTION, 2) exited non-zero on ‘SIP/9429992200-b7812bc8’ in macro ‘vm’
== Spawn extension (macro-vm, s-CONGESTION, 2) exited non-zero on ‘SIP/9429992200-b7812bc8’ in macro ‘exten-vm’
== Spawn extension (macro-vm, s-CONGESTION, 2) exited non-zero on ‘SIP/9429992200-b7812bc8’
– Executing Hangup(“Local/919429028963@from-internal-2d4c,2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on ‘Local/919429028963@from-internal-2d4c,2’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on 'Local/919429028963@from-internal-2d4c,2’
asterisk1*CLI>
Sorry for such a long post. Thanks for your help!