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
<neririn@gmail.com> 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: jan@irial.com
! PGP Fingerprint: E957 23C8 9F51 0958 B9AD 7F18 404A 5DA1 F944 A08B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :
http://lists.digium.com/pipermail/asterisk-users/attachments/20051111/cd472d35/attachment.pgp