<div dir="ltr">Hi ,<br>I have a problem with "h" and "t" option in asterisk 1.8 .<br>They don't work.<br><br>Option "h" and "t" don't work in following macro and in this macro "DeadAGI" never run ?!<br>
<br>What is problem?!<br>any idea?<br><br><br><br><span style="color:rgb(0,0,153)">[macro-vt-record]<br>include => macro-vt-record-custom<br>exten => s,1,ExecIf(${ARG4} != ""]?SET(TIMEOUT(absolute)=2))<br>
exten => s,n,Set(VTRECORDNAME=/tmp/voiceticket_${CALLERID(num)}-${CUT(UNIQUEID,\.,1)}-${CUT(UNIQUEID,\.,2)})<br>exten => s,n,Set(RECORDTICKET=)<br>exten => s,n,Set(ACTION=${ARG1})<br>exten => s,n,Set(QUEUENUM=${ARG2})<br>
exten => s,n,Set(BEFORERECORDEDTIME=${STRFTIME(${EPOCH}||%Y-%m-%d %H:%M:%S)})<br>exten => s,n,Record(${VTRECORDNAME}:wav)<br>exten => s,n(saveticket),DeadAGI(pp-voiceticket.php,${ACTION},${VTRECORDNAME}.wav,${QUEUENUM},${BEFORERECORDEDTIME})<br>
exten => T,1,Goto(macro-vt-record,s,saveticket)<br>exten => t,1,Goto(macro-vt-record,s,saveticket)<br>exten => t,n,Noop(hangup situation is not work yet)<br>exten => h,1,Goto(macro-vt-record,s,saveticket)</span><br>
<br><br>I saw these log when run this macro and hangup or timeout : <br><br><br><span style="color:rgb(204,0,0)">- Executing [s@voiceticket_customer-1:3] Macro("SIP/102-0000009f", "vt-record,add,0,vt-13-say-q,300,") in new stack<br>
-- Executing [s@macro-vt-record:1] ExecIf("SIP/102-0000009f", "300 != ""]?SET(TIMEOUT(absolute)=2)") in new stack<br>Channel will hangup at 2012-12-30 16:54:13.195 IRST.<br> -- Executing [s@macro-vt-record:2] Set("SIP/102-0000009f", "VTRECORDNAME=/tmp/voiceticket_102-1356873840-195") in new stack<br>
-- Executing [s@macro-vt-record:3] Set("SIP/102-0000009f", "RECORDTICKET=") in new stack<br> -- Executing [s@macro-vt-record:4] Set("SIP/102-0000009f", "ACTION=add") in new stack<br>
-- Executing [s@macro-vt-record:5] Set("SIP/102-0000009f", "QUEUENUM=0") in new stack<br> -- Executing [s@macro-vt-record:6] Set("SIP/102-0000009f", "BEFORERECORDEDTIME=Sun Dec 30 16:54:11 2012") in new stack<br>
-- Executing [s@macro-vt-record:7] Record("SIP/102-0000009f", "/tmp/voiceticket_102-1356873840-195:wav") in new stack<br> -- <SIP/102-0000009f> Playing 'beep.slin' (language 'en')<br>
== Spawn extension (macro-vt-record, s, 7) exited non-zero on 'SIP/102-0000009f' in macro 'vt-record'<br> == Spawn extension (voiceticket_customer-1, s, 3) exited non-zero on 'SIP/102-0000009f'</span><br>
<br><br><br>Thanks,<br><br><br></div>