Call Transfer error

I build an IVR app at extension 1996, in extensions_custom.conf which I can call by dialing from my extension 1001, at last IVR transfer the call to virtual extension 1999 which is follow me on DISA… scenario working fine…

But now I am making call from trunk side by dialing real telephone number, the transfer to virtual ext failing…

please guide what I have wrong, following is logs for both working and not working scenario.

___________ the logs for working call from ext 1001 to 1996

– Executing [[email protected]:4] GotoIf(“SIP/1001-00001dbd”, “1?Disa-dialing,s,1:Disa-MainMenu,s,5”) in new stack
– Goto (Disa-dialing,s,1)
– Executing [[email protected]:1] Playback(“SIP/1001-00001dbd”, “disa-predialtone”) in new stack
– <SIP/1001-00001dbd> Playing ‘disa-predialtone.slin’ (language ‘en’)

-- Executing [[email protected]:2] Transfer("SIP/1001-00001dbd", "sip/1999") in new stack

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] GotoIf(“SIP/1001-00001dbe”, “0?ext-local,1999,1”) in new stack
– Executing [[email protected]:2] Macro(“SIP/1001-00001dbe”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“SIP/1001-00001dbe”, “AMPUSER=1001”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/1001-00001dbe”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/1001-00001dbe”, “1?Set(REALCALLERIDNUM=1001)”) in new stack
– Executing [[email protected]:4] Set(“SIP/1001-00001dbe”, “AMPUSER=1001”) in new stack
– Executing [[email protected]:5] Set(“SIP/1001-00001dbe”, “AMPUSERCIDNAME=Adeel ur rehman”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/1001-00001dbe”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/1001-00001dbe”, “AMPUSERCID=1001”) in new stack

___________ the logs for not working call from landline to 1996
localhostCLI> – Executing [[email protected]:4] GotoIf(“SIP/mppl-pri-00001dc1”, “1Disa-dialing,s,1:Disa-MainMenu,s,5”) in new stack
localhost
CLI> – Goto (Disa-dialing,s,1)
localhostCLI> – Executing [[email protected]:1] Playback(“SIP/mppl-pri-00001dc1”, “disa-predialtone”) in new stack
localhost
CLI> – <SIP/mppl-pri-00001dc1> Playing ‘disa-predialtone.slin’ (language ‘en’)

localhostCLI> – Executing [[email protected]:2] Transfer(“SIP/mppl-pri-00001dc1”, “sip/1999”) in new stack
localhost
CLI> – Executing [[email protected]:3] GotoIf(“SIP/mppl-pri-00001dc1”, “0lbl_Startup_0:”) in new stack

localhostCLI> – Auto fallthrough, channel ‘SIP/mppl-pri-00001dc1’ status is 'UNKNOWN’
localhost
CLI> – Executing [[email protected]:1] Macro(“SIP/1001-00001dbf”, “hangupcall,”) in new stack
localhostCLI> – Executing [[email protected]:1] GotoIf(“SIP/1001-00001dbf”, “1endmixmoncheck”) in new stack
localhost
CLI> – Goto (macro-hangupcall,s,9)
localhostCLI> – Executing [[email protected]:9] NoOp(“SIP/1001-00001dbf”, “End of MIXMON check”) in new stack
localhost
CLI> – Executing [[email protected]:10] GotoIf(“SIP/1001-00001dbf”, “1nomeetmemon”) in new stack
localhost*CLI> – Goto (macro-hangupcall,s,28)