HI Vik,
I did as you said, just replace $1 with 1 and still the same... I am
using FS 1.2 rc2. Does any one know what I am missing?
2012-08-31 10:24:57.049318 [DEBUG] sofia.c:6274
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State Change
CS_NEW -> CS_INIT
2012-08-31 10:24:57.049318 [DEBUG] switch_core_session.c:1229 Send
signal sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx [BREAK]
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:385
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) Running State
Change CS_INIT
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:424
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State INIT
2012-08-31 10:24:57.049318 [DEBUG] mod_sofia.c:85
sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx SOFIA INIT
2012-08-31 10:24:57.049318 [DEBUG] mod_sofia.c:125
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State Change
CS_INIT -> CS_ROUTING
2012-08-31 10:24:57.049318 [DEBUG] switch_core_session.c:1229 Send
signal sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx [BREAK]
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:424
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State INIT going
to sleep
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:385
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) Running State
Change CS_ROUTING
2012-08-31 10:24:57.049318 [DEBUG] switch_channel.c:1934
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) Callstate Change
DOWN -> RINGING
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:433
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State ROUTING
2012-08-31 10:24:57.049318 [DEBUG] mod_sofia.c:148
sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx SOFIA ROUTING
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:104
sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Standard ROUTING
2012-08-31 10:24:57.049318 [INFO] mod_dialplan_xml.c:485 Processing
018108753 <018108753.enterprise>->*572 in context xxx.xxx.xxx.xxx
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx parsing
[xxx.xxx.xxx.xxx->group-intercept-number] continue=false
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Regex
(FAIL) [group-intercept-number] destination_number(*572) =~ /^\*6(\d+)$/
break=on-false
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx parsing
[xxx.xxx.xxx.xxx->group-intercept] continue=false
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Regex
(PASS) [group-intercept] destination_number(*572) =~ /^\*57(\d+)$/
break=on-false
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Action
pickup(1)
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:154
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State Change
CS_ROUTING -> CS_EXECUTE
2012-08-31 10:24:57.049318 [DEBUG] switch_core_session.c:1229 Send
signal sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx [BREAK]
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:433
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State ROUTING
going to sleep
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:385
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) Running State
Change CS_EXECUTE
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:440
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State EXECUTE
2012-08-31 10:24:57.049318 [DEBUG] mod_sofia.c:241
sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx SOFIA EXECUTE
2012-08-31 10:24:57.049318 [DEBUG] switch_core_state_machine.c:196
sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Standard EXECUTE
EXECUTE sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx pickup(1)
2012-08-31 10:24:57.049318 [NOTICE] switch_core_state_machine.c:249
sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx has executed the
last dialplan instruction, hanging up.
2012-08-31 10:24:57.049318 [DEBUG] switch_channel.c:2914
(sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) Callstate Change
RINGING -> HANGUP
2012-08-31 10:24:57.049318 [NOTICE] switch_core_state_machine.c:251
Hangup sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx [CS_EXECUTE]
[NORMAL_CLEARING]
2012-08-31 10:24:57.049318 [DEBUG] switch_channel.c:2937 Send signal
sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx [KILL]
2012-08-31 10:24:57.049318 [DEBUG] switch_core_session.c:1229 Send
signal sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx [BREAK]
Thanks!
Miha
Post by Vik Killa<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/1"/>
<extension name="group_pickup">
<condition field="destination_number" expression="^\*57(\d+)$">
<action application="pickup" data="1"/>
</condition>
</extension>
Post by MihaHi,
I also tried like it is written on wiki, with numberic groups. But still
group pickup/call intercept do not work for me.
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/1"/>
<extension name="group_pickup">
<condition field="destination_number" expression="^\*57(\d+)$">
<action application="pickup" data="$1"/>
</condition>
</extension>
2012-08-30 10:16:56.189010 [INFO] mod_dialplan_xml.c:485 Processing 018108753 <018108753.enterprise>->*571 in context xxx.xxx.xxx.xxx
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx parsing [xxx.xxx.xxx.xxx->group-intercept-number] continue=false
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Regex (FAIL) [group-intercept-number] destination_number(*571) =~ /^\*6(\d+)$/ break=on-false
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx parsing [xxx.xxx.xxx.xxx->group-intercept] continue=false
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Regex (PASS) [group-intercept] destination_number(*571) =~ /^\*57(\d+)$/ break=on-false
Dialplan: sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Action pickup(1)
2012-08-30 10:16:56.189010 [DEBUG] switch_core_state_machine.c:154 (sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State Change CS_ROUTING -> CS_EXECUTE
2012-08-30 10:16:56.189010 [DEBUG] switch_core_session.c:1229 Send signal sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx [BREAK]
2012-08-30 10:16:56.189010 [DEBUG] switch_core_state_machine.c:433 (sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State ROUTING going to sleep
2012-08-30 10:16:56.189010 [DEBUG] switch_core_state_machine.c:385 (sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) Running State Change CS_EXECUTE
2012-08-30 10:16:56.189010 [DEBUG] switch_core_state_machine.c:440 (sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx) State EXECUTE
2012-08-30 10:16:56.189010 [DEBUG] mod_sofia.c:241 sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx SOFIA EXECUTE
2012-08-30 10:16:56.189010 [DEBUG] switch_core_state_machine.c:196 sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx Standard EXECUTE
EXECUTE sofia/internal/018108753.enterprise at xxx.xxx.xxx.xxx pickup(1)
Post by Miha@Vik,
sorry for my stupid questions...
It is matched. As I am trying with account that are in the same callgroup.
EXECUTE
sofia/internal/018108754.enterprise at xxx.xxx.xxx.xxxbridge([leg_timeout=30]user/018108755.enterprise at xxx.xxx.xxx.xxx|user/.enterprise at xxx.xxx.xxx.xxx,
pickup/test)
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
Post by Vik Killapickup/XXXX only needs to match here
<action application="pickup" data="XXXX"/>
You can use whatever variable as long as those two match.
Post by MihaI am having problem with understanding how this works. After I bridge
<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
}"/>
<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
Post by Vik Killahttp://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_pickup
Post by MihaHi,
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
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
<action application="set"
data="called_party_callgroup=${user_data(${destination_number}.enterprise at xxx.xxx.xxx.xxx
var callgroup)}"/>
<action application="hash"
data="insert/${destination_number}/${called_party_callgroup}/${uuid}"/>
<action application="hash"
data="insert/last_dial/${called_party_callgroup}/${uuid}"/>
<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
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.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
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.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
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.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
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.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
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.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
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.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
_________________________________________________________________________
consulting at freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120831/c57259a7/attachment-0001.html