Dialing a virtual Extention

We have the following:

[user_blocked]
exten => bl,1,Noop(Option for user on client blocked list VM)
 same => n, Dial(PJSIP/8000})

Ext 8000 is a virtual Extension that has voicemail turned on. When we dial 8000 internally we get the message ’ the person at ext 8000 etc etc’ and can leave a voice mail.

However when calling with the above code ( from a key press) we get an engaged tone.

PJSIP/8000 is the actual device. FreePBX uses the term extension for both devices and numbers in the dialplan, although Asterisk only uses the term for the latter. You need the latter interpretation, which will be something like:

Dial(Local/8000@from-internal)

(There may be more appropriate contexts. from-internal will give the caller access to the features that an internal user would have.)

Another note. There isn’t really a need to create a new channel for this. You can use Goto() instead

[user_blocked]
exten => bl,1,Noop(Option for user on client blocked list VM)
 same => n,Goto(from-internal,8000,1)
1 Like

Hi,

we are using

[user_blocked]
exten => bl,1,Noop(Option for user on client blocked list VM)
 same => n,Goto(from-internal,8000,1})

Instead of getting an engaged sound the line drops

That closing curly bracket } after the 1 doesn’t look correct. Am I just being dumb?

My mistake, I corrected the original post

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.