Hi,

Is there any way of telling Asteirsk to withhold answer subversion on a
call till I call Answer.

My DP looks like this:

[incoming]
Exten => 18005551212,1,Noop()
 same => n,Answer
 same => n,Mset(__uid=${SIPCALLID})
 same => n,MixMonitor(/tmp/FROM_CALLER_${uid}-${START}.WAV)
 same => n,Dial(Local/1@dial_call_center/n&Local/2@dial_call_center
/n&Local/3@dial_call_center/n&Local/4@dial_call_center
/n&Local/5@dial_call_center/n,,gm)
 same => n,Goto(2)

[dial_call_center]
Exten => _X,1,Set(CALLERID(num)=18005551212)
 same => n,Wait(${RAND(0,1)}.${RAND(10,99)})
 same => n,Set(__uid=${MD5(${SIPCALLID}_${UNIQUEID}_${CHANNEL})})
 same => n,Dial(SIP/${CLIENT}@1.1.1.1:5080,,gU(verify_human))

[verify_human]
Exten => s,1,Noop()
 same => n,MixMonitor(/tmp/TO_CALL_CENTER_${uid}-${EPOCH}_SECOND.WAV)
 same => n,AMD
 same => n,ExecIf($["${AMDSTATUS}" != "FOUND"]?Hangup(16)))
 same => n,DumpChan()
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to