5 thoughts on - block all numbers begin by 00 and 1

  • I haven’t used this function that much, but I’m pretty sure this will work out for you

    exten => s,n,GotoIF( $[ “${REGEX(“[06]*” ${VARIABLE})}” != “1” ] ?INVALID_EXTENSION,1)

    That should do the work. Spend some time reading the function documentation and eventually you should get it right.

    This would send whoever ${VARIABLE} to INVALID_EXTENSION, priority 1 if the dialed number does not begin with 06. But I can’t be 100% sure since I can’t test this right now.

  • All you have to do is, just make sure that there is no extension in the
    default context which matches _00. or _1. — or, if there is one, it contains
    something other than Dial(${EXTEN}) …..

  • thanks A J stiles and thanks Marcelo for your help and support

    i have remove 1 extension begin by _00 and _1 and all function without
    issue 🙂

    thanks and regards.

    2011/8/9 Marcelo Ellmann Clemente