[Freeswitch-users] group call pickup

Miha miha at softnet.si
Wed Aug 29 19:22:42 MSD 2012


@Vik,

sorry for my stupid questions...

It is matched. As I am trying with account that are in the same callgroup.

log:

EXECUTE 
sofia/internal/018108754.enterprise at xxx.xxx.xxx.xxxbridge([leg_timeout=30]user/018108755.enterprise at enterprise.fs2.softnet.si|user/.enterprise at xxx.xxx.xxx.xxx, 
pickup/test)

afer *5:

Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Action 
pickup(${callgroup})

EXECUTE sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx pickup(test)

thanks!

Miha

On 8/29/2012 5:02 PM, Vik Killa wrote:
> pickup/XXXX only needs to match here
> <action application="pickup" data="XXXX"/>
>
> You can use whatever variable as long as those two match.
>
> On Wed, Aug 29, 2012 at 10:45 AM, Miha <miha at softnet.si> wrote:
>> Hi @Vik,
>>
>> I am having problem with understanding how this works. After I bridge
>> data I put like this:
>>
>>    <anti-action application="bridge"
>> data="[leg_timeout=30]user/${sip_to_user}.enterprise at xxx.xxx.xxx.xxx|user/${call_forwarding_number__nore}.enterprise at xxx.xxx.xxx.xxx,
>> pickup/${callgroup
>> }"/>
>>
>> To do pickup I am doing:
>>
>>
>> <extension name="group-intercept">
>>         <condition field="destination_number" expression="^\*5$">
>> <action application="pickup" data="${groupcall}"/>
>>            </condition>
>>       </extension>
>>
>>
>> What I am doing wrong or what I am missing?
>>
>> Thanks!
>>
>> Miha
>> On 8/29/2012 3:49 PM, Vik Killa wrote:
>>> That method of call pickup is out-dated, try using this, it works great:
>>> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pickup
>>>
>>> On Wed, Aug 29, 2012 at 9:27 AM, Miha <miha at softnet.si> wrote:
>>>> Hi,
>>>>
>>>> I have implemented call pickup, which is not working as it should.
>>>>
>>>> When call comes in, user from same group can pick it up, but problem appears
>>>> in this scenario:
>>>>
>>>> A calls B. C do call pickup with *5 (in dialplan). OK this works (A is
>>>> talking with C). But when D is calling E, if someone from same group pick
>>>> this call, it do not pick D, it picks call A. Why? What I am doing wrong?
>>>>
>>>> I hope you understand what I mean:D
>>>>
>>>> my dialplan:
>>>>
>>>>    <action application="set"
>>>> data="called_party_callgroup=${user_data(${destination_number}.enterprise at enterprise.fs2.softnet.si
>>>> var callgroup)}"/>
>>>>                   <action application="hash"
>>>> data="insert/${destination_number}/${called_party_callgroup}/${uuid}"/>
>>>>                   <action application="hash"
>>>> data="insert/last_dial/${called_party_callgroup}/${uuid}"/>
>>>>
>>>>
>>>> intercept:
>>>>
>>>>
>>>>          <extension name="group-intercept">
>>>>         <condition field="destination_number" expression="^\*5$">
>>>>           <action application="answer"/>
>>>>            <action application="intercept"
>>>> data="${hash(select/last_dial/${callgroup})}"/>
>>>>
>>>>           <action application="sleep" data="2000"/>
>>>>         </condition>
>>>>       </extension>
>>>>
>>>> Thanks!
>>>> Miha
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> 
>>>> 
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> 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
>>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> 
>>> 
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 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
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list