Orginate w/o going to voice mail

I’m trying to do click-to-dial functionality by using the following:

action: originate
channel: sip/101@internal
context: internal
priority: 1
exten: 3018393453
timeout: 30000

The issue is the internal extension (101) will get call first and if the person at the extension doesn’t pick up the call and voicemail answered, the external phone number still get dial. How can I prevent the external number from being dial if the internal number went to voicemail and didn’t get pick up first? Thanks for helping.

I’m trying to do the same thing and also need to solve this issue.

I have tried to send a hangup command (to both the internal and outside channel), but it seems to have no effect.