I am trying to allow eavesdrop to specific extension only for privacy reason.
I have found this info but it don't work. Any suggestion.
You can specify a "group" to limit the channels that an eavesdrop applies to. This may be useful for privacy reasons.
For example, if you only want to eavesdrop on incoming sales calls, you could set the "eavesdrop_group" variable on the original incoming channel:
Then create an eavesdrop command that only affects that "sales_call_eavesdrop" group:
I have found this info but it don't work. Any suggestion.
Specifying a group
You can specify a "group" to limit the channels that an eavesdrop applies to. This may be useful for privacy reasons.
For example, if you only want to eavesdrop on incoming sales calls, you could set the "eavesdrop_group" variable on the original incoming channel:
<action application="set" data="eavesdrop_group=sales_call_eavesdrop"/> |
<extension name="eavesdrop"> <condition field="destination_number" expression="^779$"> <action application="answer"/> <action application="set" data="eavesdrop_require_group=sales_call_eavesdrop"/> <action application="eavesdrop" data="all"/> </condition> </extension> |