[Freeswitch-users] group call pickup
Miha
miha at softnet.si
Wed Aug 29 17:27:49 MSD 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120829/202e9910/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list