Dear,
Experts I need your helps to reach my goal… below I share my dialing plan
[AmdStart]
exten => _X.,1,Ringing()
same => n,Dial(SIP/${EXTEN}@VerifySIP,30,U(checkAMD^s^1^${EXTEN}))
same => n,Hangup
[checkAMD]
exten => s,1,Progress
same => n,Set(DialNo=${ARG3})
same => n,Background(en/silence/1)
same => n,AMD
same => n,NoOP(The Answering Machine status is ${AMDSTATUS})
same => n,GotoIf($["${AMDSTATUS}" = "HUMAN"]?NextDP:Unverified)
same => n,Hangup()
same => n(NextDP),NoOp(Your Call Is sending to next route)
same => n,Goto(NextRoute,${DialNo},1)
same => n,Hangup()
same => n(Unverified),NoOp(Your Call Was Not Reaching Or Received By Machine.)
same => n,Background(telemarketercalling)
same => n,Hangup()
[NextRoute]
exten => _X.,1,Progress()
exten => _X.,n,Dial(SIP/${EXTEN}@CN_NCLI,60)
exten => _X.,n,Hangup()
I want to test/verify first callee/outbound/B Party LEG is real human or machine by using AMD & ones its verified it will redirect to another route/trunk by hanging/redirect AMD or previous channel, by above dialplan its verifying perfectly,
AMD_Verify*CLI> core show channels
Channel Location State Application(Data)
SIP/testpin-0000003f 8601818103900@AmdSta Ring Dial(SIP/8601818103900@VerifySIP
SIP/VerifySIP-0 s@checkAMD:4 Up AMD()
2 active channels
1 active call
but issue is its not hanging up or redirect previous dial, its started another dial like below.
After verify when channel go to next dialing plan channel is like below.
AMD_Verify*CLI> core show channels
Channel Location State Application(Data)
SIP/testpin-0000003f 8601818103900@AmdSta Ring Dial(SIP/8601818103900@VerifySIP
SIP/VerifySIP-0 8801818103900@NextRo Up Dial(SIP/8601818103900@CN_NCLI
2 active channels
1 active call
I want that it will hanging up or redirect previous channel & dial channel like below
AMD_Verify*CLI> core show channels
Channel Location State Application(Data)
SIP/testpin-0000003f 8601818103900@AmdSta Ring Dial(SIP/8601818103900@CN_NCLI
1 active channel
1 active call
I hope I make clear my question & understandable, Thanks for your attention. Waiting for your feedback.