[Freeswitch-users] call barging

Sam u2nsam at gmail.com
Fri Jan 21 13:25:56 MSK 2011


The second condition option is good one !

regds
Sam

On Fri, Jan 21, 2011 at 2:13 PM, Steven Ayre <steveayre at gmail.com> wrote:

> You mean so that only he can dial 666?
>
> There're a few ways. You can create a 2nd context, set it in the user's
> directory config and only place eavesdrop in that context.
>
> You can also add a 2nd <condition> to the extension that checks either the
> username or a variable set in the user's directory config.
>
> -Steve
>
>
>
>
> On 21 January 2011 08:36, Sam <u2nsam at gmail.com> wrote:
>
>> Is there a method to make a evesdrop master such that only he can use the
>> aplication and no one else ?
>>
>> Regds
>> Sam
>>
>>   On Fri, Jan 21, 2011 at 1:24 PM, Steven Ayre <steveayre at gmail.com>wrote:
>>
>>>  Eavesdropping on a call requires transcoding. If you're using g729
>>> you'll need a licensed version.
>>>
>>> Steve on iPhone
>>>
>>> On 21 Jan 2011, at 06:46, Sam <u2nsam at gmail.com> wrote:
>>>
>>>   But i gives error for g729 codec !
>>>
>>> 2011-01-21 12:04:44.817605 [ERR] mod_g729.c:102 This codec is only usable
>>> in passthrough mode!
>>> 2011-01-21 12:04:44.817605 [ERR] switch_core_io.c:1042 Codec RAW Signed
>>> Linear (16 bit) encoder error!
>>> 2011-01-21 12:04:44.838101 [ERR] mod_g729.c:102 This codec is only usable
>>> in passthrough mode!
>>> 2011-01-21 12:04:44.838101 [ERR] switch_core_io.c:1042 Codec RAW Signed
>>> Linear (16 bit) encoder error!
>>> 2011-01-21 12:04:44.858131 [ERR] mod_g729.c:145 This codec is only usable
>>> in passthrough mode!
>>> 2011-01-21 12:04:44.858131 [ERR] switch_core_io.c:433 Codec RAW Signed
>>> Linear (16 bit) decoder error!
>>>
>>> Regds
>>> Sam
>>>
>>> On Fri, Jan 21, 2011 at 10:37 AM, Sam < <u2nsam at gmail.com>
>>> u2nsam at gmail.com> wrote:
>>>
>>>> kool, it works.
>>>>
>>>> Regds
>>>> Sam
>>>>
>>>> On 1/20/11, Steven Ayre < <steveayre at gmail.com>steveayre at gmail.com>
>>>> wrote:
>>>> > Yes, that will work. You can set the group either within the extension
>>>> or in
>>>> > the user config.
>>>> >
>>>> > For example:
>>>> >
>>>> >  <extension name="bridge">
>>>> >      <condition field="destination_number" expression="^9(\d+)$">
>>>> >        <action application="set" data="eavesdrop_group=spy1"/>
>>>> >        <action application="bridge" data="sofia/gateway/gw1/$1"/>
>>>> >      </condition>
>>>> >    </extension>
>>>> >   <extension name="eavesdrop">
>>>> >      <condition field="destination_number" expression="^666$">
>>>> >        <action application="answer"/>
>>>> >        <action application="set" data="eavesdrop_require_group=spy1"/>
>>>> >        <action application="eavesdrop" data="all"/>
>>>> >      </condition>
>>>> >    </extension>
>>>> >
>>>> >
>>>> > -Steve
>>>> >
>>>> >
>>>> > On 20 January 2011 10:11, Sam < <u2nsam at gmail.com>u2nsam at gmail.com>
>>>> wrote:
>>>> >
>>>> >> If i use
>>>> >>
>>>> >> <variable name="eavesdrop_group" value="spy1"/>
>>>> >>
>>>> >> at the user config, will the  dialplan barge the above extension
>>>> where the
>>>> >> statement is stated ?
>>>> >>
>>>> >> <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>
>>>> >>
>>>> >>
>>>> >> Regds
>>>> >> Sam
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >> On Thu, Jan 20, 2011 at 3:13 PM, Sam < <u2nsam at gmail.com>
>>>> u2nsam at gmail.com> wrote:
>>>> >>
>>>> >>> hello ,
>>>> >>>
>>>> >>> I am using,
>>>> >>>
>>>> >>> <extension name="global" continue="true">
>>>> >>>      <condition>
>>>> >>>        <action application="info"/>
>>>> >>>        <action application="db"
>>>> >>> data="insert/spymap/${caller_id_number}/${uuid}"/>
>>>> >>>
>>>> >>>
>>>> >>>        <action application="db"
>>>> >>> data="insert/last_dial/${caller_id_number}/${destination_number}"/>
>>>> >>>        <action application="db"
>>>> data="insert/last_dial/global/${uuid}"/>
>>>> >>>
>>>> >>>
>>>> >>>      </condition>
>>>> >>>    </extension>
>>>> >>>
>>>> >>>    <extension name="eavesdrop">
>>>> >>>
>>>> >>>
>>>> >>>      <condition field="destination_number"
>>>> >>> expression="^88(.*)$|^\*0(.*)$">
>>>> >>>        <action application="answer"/>
>>>> >>>        <action application="eavesdrop"
>>>> data="${db(select/spymap/$1)}"/>
>>>> >>>
>>>> >>>
>>>> >>>      </condition>
>>>> >>>    </extension>
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>> i am getting the below error:-
>>>> >>>
>>>> >>> 2011-01-20 14:54:01.581151 [NOTICE] mod_dptools.c:920 Channel
>>>> >>> [sofia/internal/ <7006 at 192.168.2.190>7006 at 192.168.2.190] has been
>>>> answered
>>>> >>> 2011-01-20 14:54:01.581151 [DEBUG] sofia.c:4646 Channel
>>>> sofia/internal/
>>>> >>> <7006 at 192.168.2.190>7006 at 192.168.2.190 entering state
>>>> [completed][200]
>>>> >>> EXECUTE sofia/internal/ <7006 at 192.168.2.190>7006 at 192.168.2.190eavesdrop()
>>>> >>> 2011-01-20 14:54:01.582119 [ERR] mod_dptools.c:529 Usage: [all |
>>>> <uuid>]
>>>> >>> 2011-01-20 14:54:01.582119 [NOTICE] switch_core_state_machine.c:189
>>>> >>> sofia/internal/ <7006 at 192.168.2.190>7006 at 192.168.2.190 has executed
>>>> the last dialplan
>>>> >>> instruction, hanging up.
>>>> >>> 2011-01-20 14:54:01.582119 [DEBUG] switch_channel.c:2535
>>>> (sofia/internal/
>>>> >>> <7006 at 192.168.2.190>7006 at 192.168.2.190) Callstate Change ACTIVE ->
>>>> HANGUP
>>>> >>> 2011-01-20 14:54:01.582119 [NOTICE] switch_core_state_machine.c:191
>>>> >>> Hangup
>>>> >>> sofia/internal/ <7006 at 192.168.2.190>7006 at 192.168.2.190 [CS_EXECUTE]
>>>> [NORMAL_CLEARING]
>>>> >>>
>>>> >>>
>>>> >>> <http://pastebin.freeswitch.org/15076>
>>>> http://pastebin.freeswitch.org/15076
>>>> >>>
>>>> >>>
>>>> >>> Regds
>>>> >>> Sam
>>>> >>>
>>>> >>
>>>> >>
>>>> >> _______________________________________________
>>>> >> FreeSWITCH-users mailing list
>>>> >> <FreeSWITCH-users at lists.freeswitch.org>
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> >> <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> >> UNSUBSCRIBE:<http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> >> <http://www.freeswitch.org/>http://www.freeswitch.org
>>>> >>
>>>> >>
>>>> >
>>>>
>>>
>>>  _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110121/6698fed2/attachment-0001.html 


More information about the FreeSWITCH-users mailing list