[asterisk-users] Wait command

René Christensen g.christ at hotmail.com
Mon Dec 18 07:52:22 MST 2006


Hi

I've got a script like this

exten => 
s,1,SetVar(CALLFILENAME=/var/www/recordings/${TIMESTAMP:0:8:7}/${UNIQUEID})
exten => s,2,AGI(recordstart.py,${ARG1},${CALLERIDNUM},${CALLFILENAME},Ind)
exten => s,3,DIAL(ZAP/g2/${ARG1},70)
exten => 
s,4,AGI(logerror.py,${ARG1},${CALLERIDNUM},${CHANNEL},${DIALSTATUS},${DATETIME}, 
${CAUSECODE})
exten => s,5,hangup
exten => 
s,104,AGI(logerror.py,${ARG1},${CALLERIDNUM},${CHANNEL},${DIALSTATUS},${DATETIME}, 
${CAUSECODE})
exten => h,1,stopmonitor
exten => h,2,SetVar(CALLFILEDIR=/var/www/recordings/${TIMESTAMP:0:8:7})
exten => h,3,System(/etc/asterisk/agi-bin/filexfer ${CALLFILENAME} 
${CALLFILEDIR})

It causes me some problems occausionsly and I want to pause the scipt by 
wait in 5 s.

exten => 
s,1,SetVar(CALLFILENAME=/var/www/recordings/${TIMESTAMP:0:8:7}/${UNIQUEID})
exten => s,2,AGI(recordstart.py,${ARG1},${CALLERIDNUM},${CALLFILENAME},Ind)
exten => s,3,DIAL(ZAP/g2/${ARG1},70)
exten => 
s,4,AGI(logerror.py,${ARG1},${CALLERIDNUM},${CHANNEL},${DIALSTATUS},${DATETIME}, 
${CAUSECODE})
exten => s,5,hangup
exten => 
s,104,AGI(logerror.py,${ARG1},${CALLERIDNUM},${CHANNEL},${DIALSTATUS},${DATETIME}, 
${CAUSECODE})
exten => h,1,stopmonitor
exten => h,2,wait(5)
exten => h,3,SetVar(CALLFILEDIR=/var/www/recordings/${TIMESTAMP:0:8:7})
exten => h,4,System(/etc/asterisk/agi-bin/filexfer ${CALLFILENAME} 
${CALLFILEDIR})

but it doesn't work h,1 and h,2 is OK, but then it stops, any goood 
suggetions
/RC

_________________________________________________________________
Få 250 MB gratis lagerplads på MSN Hotmail:  http://www.hotmail.com



More information about the asterisk-users mailing list