external IVR extensions direct to voicemail

Discussion in 'Ideas' started by RossPCS, May 23, 2017.

external IVR extensions direct to voicemail 5 5 1votes
5/5, 1 vote

  1. RossPCS

    Joined:
    May 11, 2017
    Messages:
    8
    Likes Received:
    1
    I am looking to deploy 3cx for a k-12 school system and one of the major issues I am having is external calls to classrooms. In school we need the feature that parents can call in and leave a message to the teacher's extension but not ring the classroom. But internal calls need to go directly through. I hope this makes sense. I have tried IVRDONOTCALL parameter and it doesn't work in 15. If this feature worked it would allow me to deploy this to our district and possibly recommend it to others.
     
  2. Schrodz

    Joined:
    Apr 21, 2017
    Messages:
    91
    Likes Received:
    9
    How do you have your IVR Setup? Is each each teacher a different key on an IVR? or do you say enter the extension now then transfers
     
  3. RossPCS

    Joined:
    May 11, 2017
    Messages:
    8
    Likes Received:
    1
    The extension is tied to the classroom number. So if they know the number or the extension then they can just enter 1203 for room 203 and it will ring. I was planning dial by name as well and I would like them to also go directly to voicemail when entered. But if that wasn't possible at least not allowing external numbers to ring directly to the extension. I hope this make sense. Basically we don't want external calls to ring directly to classroom phones. We want it to go to the voicemail. This could be done with IVRDONOTCALL or a setting in extension that say go directly to voicemail from the extension forwarding rules.
     
  4. TC-MagazineK12

    Joined:
    Jul 22, 2017
    Messages:
    7
    Likes Received:
    5
    I wanted the same thing and found a fix :) I am also in a K12 school district environment.

    The IVRDONOTCALL parameter does not work with V15+. I had issues with people having the ability to call in to paging groups or extensions such as classrooms... Not cool. Additionally 3CX wanted more money just for tech support. But a little detective work and recognition of regular expressions yielded a fix/solution.

    Ready for something that does fix this issue? IVR_DIRECT_DIALING_GRAMMAR is simply a regular expression. Adjust that parameter to suit your needs and restart the services, or easier just restart the server.

    As an example the below regular expression, aka what is set for IVR_DIRECT_DIALING_GRAMMAR, disables the ability to dial extensions 2400 and 2500 while still recognizing four digit extensions:

    ((?!2400|2500)[0-9]{4})

    Another example if you want to disable all direct dialing all together use the below to recognize only one digit between zero and nine :

    [0-9]{1}
     
    #4 TC-MagazineK12, Jul 22, 2017
    Last edited: Jul 22, 2017
  5. Mario_cli

    Joined:
    Jul 24, 2017
    Messages:
    2
    Likes Received:
    0
    Hi All,
    I'm new on this forum. I'd like to set up that parameters to exlude all my extension, except a few. Basically I want to allowd only 2 extension to be contacted. I've tryed with a string like this:

    ((?!200|201|202|203|205|206|207|208|209|210|211|212|213|214|215|216|217|218|219|220|221|222|223|224|225|226|227|228|229|230|231|232|234|235|236|237|238|239|240|241|242|243|244|245|246|247|248|249|250|251|252|253|254|255|256|257|258|259|260|261|262|263|264|265|266|267|268|269|270|271|272|273|274|275|276|277|278|279|280|281|282|283|284|285|286|287|288|289|290|291|292|293|294|295|296|297|298[0-9]{3}) so all excluded 204 and 233. But it is not working. Any Ideas?
     
  6. TC-MagazineK12

    Joined:
    Jul 22, 2017
    Messages:
    7
    Likes Received:
    5
    The below will work :) Take note of the added closing parenthesis that's bold and red :)...

    ((?!200|201|202|203|205|206|207|208|209|210|211|212|213|214|215|216|217|218|219|220|221|222|223|224|225|226|227|228|229|230|231|232|234|235|236|237|238|239|240|241|242|243|244|245|246|247|248|249|250|251|252|253|254|255|256|257|258|259|260|261|262|263|264|265|266|267|268|269|270|271|272|273|274|275|276|277|278|279|280|281|282|283|284|285|286|287|288|289|290|291|292|293|294|295|296|297|298)[0-9]{3})

    OR if you want to make it really short...:

    ((?!20[0-3]|20[5-9]|2[1-4][0-9]|25[0-4]|25[6-9]|2[6-9][0-9])[0-9]{3})

    Add either of those to your parameters and restart/reboot :) You can test regular expressions on the Regex101 website.
     
  7. Mario_cli

    Joined:
    Jul 24, 2017
    Messages:
    2
    Likes Received:
    0
    It worked Great! Thank you so much guys!