having problems with this

Comment on Asterisk authenticate using voicemail passwords
vonageref
Joined: Thu 03 of Nov, 2005

having problems with this

Posted:Thu 01 of Dec, 2005 (21:11 UTC)
Hi,
I tried using the agi but it never seems to be able to set the result. hence it always goes to invalid can you please tell me what I'm doing wrong?
see my cli output:
— Executing AGI("Zap/1-1", "chk_vm_pwd.agi|/etc/asterisk/voicemail.conf|70103|1234") in new stack
— Launched AGI Script /var/lib/asterisk/agi-bin/chk_vm_pwd.agi
— AGI Script chk_vm_pwd.agi completed, returning 0
— Executing GotoIf("Zap/1-1", "0?20:30") in new stack


Also my extension.conf is below:

exten => s,5,Read(ext_pwd,vm-password)
exten => s,6,Wait(1)
exten => s,7,agi,chk_vm_pwd.agi|/etc/asterisk/voicemail.conf|${ext_num}|${ext_pwd}
exten => s,8,GotoIf($[${result} : 1]?20:30)


is doesn't seem to parse result back to the extension?
Any help will be appreciated