eavesdrop specific extention only

Status
Not open for further replies.

Architect

New Member
Jun 1, 2021
26
4
3
53
I use the following within the eavesdrop dialplan to prevent access to specific extensions...
  • destination_number ^\*33(?!525)(\d{3,4})$
In this example the ?! before the extension number 525 prevents permission to 525. If you have multiple extensions just add those references...
  • destination_number ^\*33(?!452)(?!524)(?!525)(?!530)(\d{3,4})$
 

jeetz

Member
Oct 15, 2019
84
2
8
41
I use the following within the eavesdrop dialplan to prevent access to specific extensions...
  • destination_number ^\*33(?!525)(\d{3,4})$
In this example the ?! before the extension number 525 prevents permission to 525. If you have multiple extensions just add those references...
  • destination_number ^\*33(?!452)(?!524)(?!525)(?!530)(\d{3,4})$
Hi, but this does not include the eavsdrop.lua to keep the session live, i really need that :(
 

Architect

New Member
Jun 1, 2021
26
4
3
53
Here’s my complete dialplan for this...
Screen Shot 2021-06-18 at 08.44.46.png
I added the stop_record_session action to prevent the person eavesdropping from being added to the recording of the call they are eavesdropping on.

Let me know if this helps :)
 

jeetz

Member
Oct 15, 2019
84
2
8
41
Hi, thanks for the reply, but the call drops, if the extension is not online or idle....

1624021940516.png
 

jeetz

Member
Oct 15, 2019
84
2
8
41
ye, but iam looking for a session that is kept alive (may be MOH), and as the callee gets a call then eavedrop on the call, and repeat the process, till the agent (using eavesdrop) drop hangup the call
 
Status
Not open for further replies.