Dialstatus in NOANSWER scenario

I could still not fix the issue. Please post if any of you have any ideas.

As shown in my dialplan. The extension “outbound” switches to extension “outbound-handler” from which when the call is picked the control should go to “macro-outbound-connect”. But instead the control again goes to extension “outbound” and dialstatus is “NOANSWER”.

Asterisk cli extract is as shown:

-- Attempting call on Local/outbound@dialout for outbound-handler@dialout:1 (Retry 1) -- Executing [outbound@dialout:1] Answer("Local/outbound@dialout-9f78,2", "") in new stack -- Executing [outbound@dialout:2] Wait("Local/outbound@dialout-9f78,2", "40") in new stack -- Executing [outbound-handler@dialout:1] Dial("Local/outbound@dialout-9f78,1", "SIP/011919960466622@proxy.xxxx.com|90|gM(outbound-connect^agi://10.1.1.68/ivr/speak^---+%0Aname%3A+sanchu%0Aid%3A+1%0A^)") in new stack -- Called 011919960466622@proxy.xxxx.com -- SIP/proxy1.bandtel.com-084b0d70 is making progress passing it to Local/outbound@dialout-9f78,1 -- Executing [outbound@dialout:3] NoOp("Local/outbound@dialout-9f78,2", "") in new stack -- Executing [outbound@dialout:4] AGI("Local/outbound@dialout-9f78,2", "agi://10.1.1.68/ivr/speak") in new stack -- AGI Script Executing Application: (AGI) Options: (swift.agi|Hi Bhaskar, Welcome to the IVR world. sample Message. This is a reminder on your appointment with Dr. John on wednesday 23rd November) -- Launched AGI Script /var/lib/asterisk/agi-bin/swift.agi /var/lib/asterisk/agi-bin/swift.agi: eval: line 10: unexpected EOF while looking for matching `"' /var/lib/asterisk/agi-bin/swift.agi: eval: line 11: syntax error: unexpected end of file -- Playing '/tmp/1195853347.30' (escape_digits=#) (sample_offset 0) -- AGI Script swift.agi completed, returning 0 -- No one is available to answer at this time (1:0/0/0) -- Executing [outbound-handler@dialout:2] GotoIf("Local/outbound@dialout-9f78,1", "0?105") in new stack -- Executing [outbound-handler@dialout:3] NoOp("Local/outbound@dialout-9f78,1", "status=NOANSWER| DIALEDTIME=|ANSWEREDTIME=") in new stack -- Executing [outbound-handler@dialout:4] GotoIf("Local/outbound@dialout-9f78,1", "0?107") in new stack -- Executing [outbound-handler@dialout:5] GotoIf("Local/outbound@dialout-9f78,1", "0?101") in new stack -- Executing [outbound-handler@dialout:6] Set("Local/outbound@dialout-9f78,1", "CallInitiate_hashdata=---+%0Aname%3A+sanchu%0Aid%3A+1%0A") in new stack -- Executing [outbound-handler@dialout:7] Goto("Local/outbound@dialout-9f78,1", "104") in new stack -- Goto (dialout,outbound-handler,104) -- Executing [outbound-handler@dialout:104] Hangup("Local/outbound@dialout-9f78,1", "") in new stack == Spawn extension (dialout, outbound-handler, 104) exited non-zero on 'Local/outbound@dialout-9f78,1' [Nov 23 15:30:22] NOTICE[26524]: pbx_spool.c:351 attempt_thread: Call completed to Local/outbound@dialout