Call Forward on Busy question

How exactly does this functionality work? I wasn’t able to find anything on it. Are you able to call forward to an external number?

I used a cell phone (951436XXXX) to call my Asterisk extension (113). It is set to forward to my cell if no answer at 865405XXXX. During the process of the call, when it should be ringing my cell the line is disconnected.

Here’s a call trace:
http://www.pastebin.be/4166

Any help is much appreciated!

Bump, any suggestions?

you may want to try putting that paste in here - or on a different pastebin server, that link doesn’t work (at the time of trying it).

Ah, looks like the site is having problems. Here it is (only changes are to replace last 4 digits on numbers with XXXX)

-- Accepting call from '951436XXXX' to '113' on channel 0/1, span 1
-- Executing Set("Zap/1-1", "__FROM_DID=113") in new stack
-- Executing Goto("Zap/1-1", "from-did-direct|113|1") in new stack
-- Goto (from-did-direct,113,1)
-- Executing Macro("Zap/1-1", "exten-vm|113|113") in new stack
-- Executing Macro("Zap/1-1", "user-callerid") in new stack
-- Executing NoOp("Zap/1-1", "user-callerid WIRELESS CALLER 951436XXXX") in new stack
-- Executing GotoIf("Zap/1-1", "0?report") in new stack
-- Executing GotoIf("Zap/1-1", "0?start") in new stack
-- Executing Set("Zap/1-1", "REALCALLERIDNUM=951436XXXX") in new stack
-- Executing NoOp("Zap/1-1", "REALCALLERIDNUM is 951436XXXX") in new stack
-- Executing Set("Zap/1-1", "AMPUSER=") in new stack
-- Executing Set("Zap/1-1", "AMPUSERCIDNAME=") in new stack
-- Executing GotoIf("Zap/1-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,11)
-- Executing NoOp("Zap/1-1", "TTL  ARG1 113") in new stack
-- Executing GotoIf("Zap/1-1", "0?continue") in new stack
-- Executing Set("Zap/1-1", "__TTL=64") in new stack
-- Executing GotoIf("Zap/1-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("Zap/1-1", "Using CallerID "WIRELESS CALLER" <951436XXXX>") in new stack
-- Executing Set("Zap/1-1", "FROMCONTEXT=exten-vm") in new stack
-- Executing Set("Zap/1-1", "VMBOX=113") in new stack
-- Executing Set("Zap/1-1", "EXTTOCALL=113") in new stack
-- Executing Set("Zap/1-1", "CFUEXT=865405XXXX") in new stack
-- Executing Set("Zap/1-1", "CFBEXT=") in new stack
-- Executing Set("Zap/1-1", "RT=15") in new stack
-- Executing Macro("Zap/1-1", "record-enable|113|IN") in new stack
-- Executing GotoIf("Zap/1-1", "0?24") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing DeadAGI("Zap/1-1", "recordingcheck|20070727-094444|1185543884.9929") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck

recordingcheck|20070727-094444|1185543884.9929 Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Zap/1-1”, “No recording needed”) in new stack
– Executing Macro(“Zap/1-1”, “dial|15|tr|113”) in new stack
– Executing DeadAGI(“Zap/1-1”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi Starting New Dialparties.agi
== Parsing ‘/etc/asterisk/manager.conf’ Found
== Parsing ‘/etc/asterisk/manager_custom.conf’ Found
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi priority is 1
dialparties.agi Caller ID name is ‘WIRELESS CALLER’ number is '951436XXXX’
dialparties.agi Methodology of ring is ‘none’
> dialparties.agi USE_CONFIRMATION ‘FALSE’
> dialparties.agi RINGGROUP_INDEX ‘’
– dialparties.agi Added extension 113 to extension map
– dialparties.agi Extension 113 cf is disabled
– dialparties.agi Extension 113 do not disturb is disabled
> dialparties.agi extnum 113
> dialparties.agi exthascw 1
> dialparties.agi exthascfb 0
> dialparties.agi extcfb
> dialparties.agi exthascfu 1
> dialparties.agi extcfu 865405XXXX
> dialparties.agi ExtensionState 0
dialparties.agi Extension 113 has ExtensionState 0
dialparties.agi Extension 113 is available
– dialparties.agi dbset CALLTRACE/113 to 951436XXXX
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“Zap/1-1”, “SIP/113|15|tr”) in new stack
– Called 113
– SIP/113-0a158290 is ringing
– Nobody picked up in 15000 ms
– Executing Set(“Zap/1-1”, “SV_DIALSTATUS=NOANSWER”) in new stack
– Executing GosubIf(“Zap/1-1”, “1?docfu|1”) in new stack
– Executing Set(“Zap/1-1”, “RTCFU=15”) in new stack
– Executing Dial(“Zap/1-1”, “Local/[email protected]/n|15|tr”) in new stack
– Called [email protected]/n
– Executing Macro(“Local/[email protected],2”, “dialout-trunk|1|4050102||”) in new stack
– Executing Set(“Local/[email protected],2”, “DIAL_TRUNK=1”) in new stack
– Executing Set(“Local/[email protected],2”, “_NODEST=”) in new stack
– Executing Set(“Local/[email protected],2”, “DIAL_NUMBER=4050102”) in new stack
– Executing Set(“Local/[email protected],2”, “ROUTE_PASSWD=”) in new stack
– Executing Set(“Local/[email protected],2”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,8)
– Executing Set(“Local/[email protected],2”, “GROUP()=OUT_1”) in new stack
– Executing Macro(“Local/[email protected],2”, “user-callerid|SKIPTTL”) in new stack
– Executing NoOp(“Local/[email protected],2”, “user-callerid WIRELESS CALLER 951436XXXX”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,11)
– Executing NoOp(“Local/[email protected],2”, “TTL 64 ARG1 SKIPTTL”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,21)
– Executing NoOp(“Local/[email protected],2”, “Using CallerID “WIRELESS CALLER” <951436XXXX>”) in new stack
– Executing Macro(“Local/[email protected],2”, “record-enable|951436XXXX|OUT”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?24”) in new stack
– Goto (macro-record-enable,s,4)
– Executing DeadAGI(“Local/[email protected],2”, “recordingcheck|20070727-094501|1185543901.9932”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070727-094501|1185543901.9932 No AMPUSER db entry for 951436XXXX. Not recording
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Local/[email protected],2”, “No recording needed”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?skipoutcid”) in new stack
– Executing Set(“Local/[email protected],2”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing Macro(“Local/[email protected],2”, “outbound-callerid|1”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?start”) in new stack
– Executing Set(“Local/[email protected],2”, “REALCALLERIDNUM=951436XXXX”) in new stack
– Executing NoOp(“Local/[email protected],2”, “REALCALLERIDNUM is 951436XXXX”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?normcid”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?normcid”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?normcid”) in new stack
– Executing Set(“Local/[email protected],2”, “USEROUTCID=951436XXXX”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?bypassnormcid”) in new stack
– Goto (macro-outbound-callerid,s,10)
– Executing Set(“Local/[email protected],2”, “EMERGENCYCID=”) in new stack
– Executing Set(“Local/[email protected],2”, “TRUNKOUTCID=“New Horizons” <8656911515>”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing GotoIf(“Local/[email protected],2”, “0?usercid”) in new stack
– Executing Set(“Local/[email protected],2”, “CALLERID(all)=“New Horizons” <8656911515>”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?report”) in new stack
– Executing Set(“Local/[email protected],2”, “CALLERID(all)=951436XXXX”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?reporthidecid”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing NoOp(“Local/[email protected],2”, “CallerID set to “” <951436XXXX>”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?nomax”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?chanfull”) in new stack
– Executing DeadAGI(“Local/[email protected],2”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix Using pattern 1+NXXNXXXXXX
– AGI Script fixlocalprefix completed, returning 0
– Executing Set(“Local/[email protected],2”, “OUTNUM=4050102”) in new stack
– Executing Set(“Local/[email protected],2”, “custom=ZAP/g0”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “0?customtrunk”) in new stack
– Executing Dial(“Local/[email protected],2”, “ZAP/g0/4050102|300|”) in new stack
– Requested transfer capability 0x00 - SPEECH
– Called g0/4050102
– Zap/2-1 is proceeding passing it to Local/[email protected],2
– Local/[email protected],1 is proceeding passing it to Zap/1-1
– Zap/2-1 answered Local/[email protected],2
– Local/[email protected],1 answered Zap/1-1
– Channel 0/1, span 1 got hangup request
== Spawn extension (macro-exten-vm, docfu, 2) exited non-zero on ‘Zap/1-1’ in macro ‘exten-vm’
== Spawn extension (macro-exten-vm, docfu, 2) exited non-zero on ‘Zap/1-1’
– Hungup ‘Zap/2-1’
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on ‘Local/[email protected],2’ in macro ‘dialout-trunk’
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on ‘Local/[email protected],2’
– Executing Macro(“Local/[email protected],2”, “hangupcall”) in new stack
– Executing ResetCDR(“Local/[email protected],2”, “w”) in new stack
– Hungup ‘Zap/1-1’
– Executing NoCDR(“Local/[email protected],2”, “”) in new stack
– Executing GotoIf(“Local/[email protected],2”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing GotoIf(“Local/[email protected],2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing Wait(“Local/[email protected],2”, “5”) in new stack
– Executing Hangup(“Local/[email protected],2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on ‘Local/[email protected],2’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on 'Local/[email protected],2’
asterisk1*CLI>

[code:1] – Called g0/4050102
– Zap/2-1 is proceeding passing it to Local/[email protected],2
– Local/[email protected],1 is proceeding passing it to Zap/1-1
– Zap/2-1 answered Local/[email protected],2
– Local/[email protected],1 answered Zap/1-1
– Channel 0/1, span 1 got hangup request [/code:1]
The call appears to be forwarding but you are getting a hangup request after the fact. May want to check the log to see if there is any more info.

[quote=“p_lindheimer”][code:1] – Called g0/4050102
– Zap/2-1 is proceeding passing it to Local/[email protected],2
– Local/[email protected],1 is proceeding passing it to Zap/1-1
– Zap/2-1 answered Local/[email protected],2
– Local/[email protected],1 answered Zap/1-1
– Channel 0/1, span 1 got hangup request [/code:1]
The call appears to be forwarding but you are getting a hangup request after the fact. May want to check the log to see if there is any more info.[/quote]

Interesting note - I set “never override callerid” on the g0 trunk and that seemed to take care of the problems.

it would appear your provider rejects DIDs that you don’t own.