DISA Call Recording

[Disa-dialing]
exten => s,1,Playback(disa-predialtone)
exten => s,n,Transfer(SIP/1999)
exten => s,n,GotoIf($["${TRANSFERSTATUS}" = “UNSUPPORTED”]?lbl_Startup_0:)
exten => s,n,Playback(disa-welcome)
exten => s,n(lbl_Startup_1),Hangup()
exten => s,n(lbl_Startup_0),Playback(invalid)
exten => s,n,Goto(lbl_Startup_1)

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 [s@DisaEmail links icon-MainMenu:4] GotoIf(“SIP/1001-00001dbd”, “1?Disa-dialing,s,1:Disa-MainMenu,s,5”) in new stack
– Goto (Disa-dialing,s,1)
– Executing [s@DisaEmail links icon-dialing:1] Playback(“SIP/1001-00001dbd”, “disa-predialtone”) in new stack
– Playing ‘disa-predialtone.slin’ (language ‘en’)

– Executing [s@DisaEmail links icon-dialing:2] Transfer(“SIP/1001-00001dbd”, “sip/1999”) in new stack

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

___________ the logs for not working call from landline to 1996
localhostCLI> – Executing [s@DisaEmail links icon-MainMenu: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 [s@DisaEmail links icon-dialing:1] Playback(“SIP/mppl-pri-00001dc1”, “disa-predialtone”) in new stack
localhost
CLI> – Playing ‘disa-predialtone.slin’ (language ‘en’)

localhostCLI> – Executing [s@DisaEmail links icon-dialing:2] Transfer(“SIP/mppl-pri-00001dc1”, “sip/1999”) in new stack
localhost
CLI> – Executing [s@DisaEmail links icon-dialing: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 [h@macroEmail links icon-dialout-trunk:1] Macro(“SIP/1001-00001dbf”, “hangupcall,”) in new stack
localhostCLI> – Executing [s@macroEmail links icon-hangupcall:1] GotoIf(“SIP/1001-00001dbf”, “1endmixmoncheck”) in new stack
localhost
CLI> – Goto (macro-hangupcall,s,9)
localhostCLI> – Executing [s@macroEmail links icon-hangupcall:9] NoOp(“SIP/1001-00001dbf”, “End of MIXMON check”) in new stack
localhost
CLI> – Executing [s@macroEmail links icon-hangupcall:10] GotoIf(“SIP/1001-00001dbf”, “1nomeetmemon”) in new stack
localhost*CLI> – Goto (macro-hangupcall,s,28)