Let asume that the extension you are trying to call is 100.

exten => 100,1,noop(Calls from ${CALLERIDNUM} to ${EXTEN})
exten => 100,2,GotoIF($["${CALLERIDNUM}" = ""]?3:6)
exten => 100,3,noop(Call to voicemail - no answer: ${EXTEN})
exten => 100,4,VoiceMail(u${EXTEN})
exten => 100,5,Hangup
exten => 100,6,answer()

If the CALLRDIDNUM is empty the it jumps to 3 where it goes of to voicemail
if not - then it goes to 6 where you have the normal processing

--On Thursday, November 10, 2005 10:52:50 AM -0700 Rene Nelson <[EMAIL PROTECTED]> wrote:

Does anyone know how to ignore/send straight to voicemail all calls with
invalid or no CID?

Thanks




--
+-------------------------------------------------------------------
! Irial / YASK AB
! Att: Jan Saell
! Box 59, S-692 21 KUMLA, SWEDEN
! Tel: 019-58 25 15     Int +46-19 58 25 15     Fax +46-19 58 38 05
! E-mail: [EMAIL PROTECTED]
! PGP Fingerprint: E957 23C8 9F51 0958 B9AD  7F18 404A 5DA1 F944 A08B

Attachment: pgpElxzPE2Jlf.pgp
Description: PGP signature

_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to