[Asterisk-Users] How to use the Return Code???

James Gardiner asterisk at crafted.com.au
Mon Aug 16 21:05:57 MST 2004


Can sone one please explain to me..

I have been doing some extensions.conf programming to refine my abilities,
however,
I did one test where I wanted to use the following..

exten => 1501,1,Wait(1)
exten => 1501,2,Playback(voicemail/default/${CALLERIDNUM}/greet)
exten => 1501,3,VoicemailMain(${CALLERIDNUM})
exten => 1501,4,Hangup
exten => 1501,103,SayDigits(${CALLERIDNUM})
exten => 1501,104,VoicemailMain(${CALLERIDNUM})
exten => 1501,105,Hangup

Where if you recorded your name, it would say it before asking for
password..

However, if it does not exist, I could branch and say the extension number
before asking for password..

An example on how to use RETURN coded would be great.

I looked all over the wiki, but could not figure it out.

Help appriciated.
James Gardiner

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
 




More information about the asterisk-users mailing list