Restrict calls to an Extension to only a single extension (or a number of extensions)

Status
Not open for further replies.

MichaelG

New Member
Mar 28, 2018
3
0
1
29
Hey there,

I have a Fusion install with some speakers that auto answer a SIP Call for paging. This is excellent, however, I do not want just any phone to be able to call the extension and page over the speakers. I'm sure there is a way to use the dialplan to only allow calls to an extension (5700) from certain extensions (5100, 5200, etc), but I'm not what that entry should look like. Any help would be appreciated!
 

ad5ou

Active Member
Jun 12, 2018
892
204
43
build a dial plan to check the caller id number

condition "caller_id_number" expression="^5100|5200|etc$"
 

JamesBorne

Active Member
Jan 24, 2019
294
57
28
Australia
Assuming that's extension to extension, I would copy the `local_extension` dialplan and add a check that:
"destination_number = ^5700$"
and as mentioned, do a condition that:
"${sip_from_user}=^(5100|5200|etc)$"
 
Status
Not open for further replies.