<div dir="ltr">Hi Saumar,<br><br><div>Can you please file a JIRA?</div><div><br></div><div>Attach your dialplan example, FreeSWITCH debug logs with siptrace enabled.</div><div><br></div><div>I&#39;ll try to replicate it.</div><br><div class="gmail_quote">On Thu, Apr 23, 2015 at 1:42 PM Saumar Hajjar &lt;<a href="mailto:saumar@uol.com.br" target="_blank">saumar@uol.com.br</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">(Reposting: the 1st &quot;version&quot; didn&#39;t reach the list for some reason)<br>
<br>
After a mod_callcenter member hangs up, its channel is still present in<br>
the system, and its uuid is unkillable.<br>
I believe FS team calls it a &quot;stale channel&quot;.<br>
The uuid-standby agent won&#39;t receive any more calls, until he/she hangs<br>
up - what would make uuid-standby a &quot;agent hangup and call again&quot; mode.<br>
<br>
What I&#39;m trying to do, is nothing fancy. Basically I&#39;m following the<br>
mod_callcenter documentation without much tweaking.<br>
Here&#39;s the test case setup:<br>
<br>
- Freeswitch with default config, mod_callcenter enabled also with<br>
default config<br>
Tested with the following versions:<br>
1.4.18+git~20150312T185523Z~4eed221b69~64bit (git 4eed221 2015-03-12<br>
18:55:23Z 64bit)<br>
1.5.15b+git~20150117T062211Z~46cf8a4dce~64bit (git 46cf8a4 2015-01-17<br>
06:22:11Z 64bit)<br>
1.5.15b+git~20150421T235828Z~a4d877c189~64bit (git a4d877c 2015-04-21<br>
23:58:28Z 64bit)<br>
<br>
- Dialplan mod_callcenter entries:<br>
&lt;!-- Member dials *91 to enter queue support@default --&gt;<br>
&lt;extension&gt;<br>
     &lt;condition field=&quot;destination_number&quot; expression=&quot;^\*91$&quot;&gt;<br>
         &lt;action application=&quot;callcenter&quot; data=&quot;support@default&quot;/&gt;<br>
     &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
&lt;!-- Agent dials 4099 to wait for uuid-standby calls --&gt;<br>
&lt;extension&gt;<br>
     &lt;condition field=&quot;destination_number&quot; expression=&quot;^(4099)$&quot;&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;transfer_after_bridge=4099&quot;/&gt;<br>
&lt;!-- Remove this if you just want to get a single call --&gt;<br>
         &lt;action application=&quot;sleep&quot; data=&quot;300&quot;/&gt; &lt;!-- Small delay for<br>
safety needs --&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;res=${callcenter_config(agent<br>
set uuid ${caller_id_number}@default &#39;${uuid}&#39;)}&quot; /&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;res=${callcenter_config(agent<br>
set type ${caller_id_number}@default &#39;uuid-standby&#39;)}&quot; /&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;res=${callcenter_config(agent<br>
set status ${caller_id_number}@default &#39;Available (On Demand)&#39;)}&quot; /&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;res=${callcenter_config(agent<br>
set state ${caller_id_number}@default &#39;Waiting&#39;)}&quot; /&gt;<br>
         &lt;action application=&quot;set&quot;<br>
data=&quot;cc_warning_tone=tone_stream://%(200,0,500,600,700)&quot;/&gt;<br>
         &lt;action application=&quot;answer&quot; /&gt;<br>
         &lt;action application=&quot;playback&quot; data=&quot;$${hold_music}&quot;/&gt;<br>
     &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
- Start FS and add a test agent:<br>
callcenter_config agent add 1002@default uuid-standby<br>
<br>
- Agent (extension 1002) dials 4099:<br>
The agent starts hearing music on hold.<br>
<br>
show channels<br>
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num,initial_cid_name,initial_cid_num,initial_ip_addr,initial_dest,initial_dialplan,initial_context<br>
a1c9b1a4-7926-4da9-9041-100df3d1bbbb,inbound,2015-04-22<br>
18:01:46,1429736506,sofia/internal/<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,CS_EXECUTE,1002,1002,192.168.0.103,4099,playback,local_stream://moh,XML,default,PCMU,8000,64000,PCMU,8000,64000,,hajjar-notebook,<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,,ACTIVE,,,,,,,1002,1002,192.168.0.103,4099,XML,default<br>
<br>
callcenter_config agent list<br>
name|system|uuid|type|contact|status|state|max_no_answer|wrap_up_time|reject_delay_time|busy_delay_time|no_answer_delay_time|last_bridge_start|last_bridge_end|last_offered_call|last_status_change|no_answer_count|calls_answered|talk_time|ready_time<br>
1002@default|single_box|a1c9b1a4-7926-4da9-9041-100df3d1bbbb|uuid-standby||Available<br>
(On<br>
Demand)|Waiting|1|5|0|5|5|1429734669|1429735319|1429734669|1429736506|0|0|0|0<br>
<br>
- Member (extension 1000) dials *91:<br>
The member gets bridged to the uuid-stand by agent. Great.<br>
<br>
show channels<br>
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num,initial_cid_name,initial_cid_num,initial_ip_addr,initial_dest,initial_dialplan,initial_context<br>
a1c9b1a4-7926-4da9-9041-100df3d1bbbb,inbound,2015-04-22<br>
18:01:46,1429736506,sofia/internal/<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,CS_EXCHANGE_MEDIA,1000,1000,192.168.0.103,4099,uuid_bridge,d298fa41-b855-4027-ba4a-ac112df641d5,XML,default,PCMU,8000,64000,PCMU,8000,64000,,hajjar-notebook,<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,,ACTIVE,1002,1002,SEND,d298fa41-b855-4027-ba4a-ac112df641d5,1000,1000,1002,1002,192.168.0.103,4099,XML,default<br>
d298fa41-b855-4027-ba4a-ac112df641d5,inbound,2015-04-22<br>
18:04:47,1429736687,sofia/internal/<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a>,CS_SOFT_EXECUTE,1000,1000,192.168.0.120,*91,uuid_bridge,a1c9b1a4-7926-4da9-9041-100df3d1bbbb,XML,default,PCMU,8000,64000,PCMU,8000,64000,,hajjar-notebook,<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a>,,ACTIVE,1002,1002,SEND,d298fa41-b855-4027-ba4a-ac112df641d5,1002,1002,1000,1000,192.168.0.120,*91,XML,default<br>
<br>
2 total.<br>
<br>
show calls<br>
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,hostname,sent_callee_name,sent_callee_num,b_uuid,b_direction,b_created,b_created_epoch,b_name,b_state,b_cid_name,b_cid_num,b_ip_addr,b_dest,b_presence_id,b_presence_data,b_callstate,b_callee_name,b_callee_num,b_callee_direction,b_sent_callee_name,b_sent_callee_num,call_created_epoch<br>
d298fa41-b855-4027-ba4a-ac112df641d5,inbound,2015-04-22<br>
18:04:47,1429736687,sofia/internal/<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a>,CS_SOFT_EXECUTE,1000,1000,192.168.0.120,*91,<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a>,,ACTIVE,1002,1002,SEND,d298fa41-b855-4027-ba4a-ac112df641d5,hajjar-notebook,1002,1002,a1c9b1a4-7926-4da9-9041-100df3d1bbbb,inbound,2015-04-22<br>
18:01:46,1429736506,sofia/internal/<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,CS_EXCHANGE_MEDIA,1000,1000,192.168.0.103,4099,<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,,ACTIVE,1002,1002,SEND,1000,1000,1429736687<br>
<br>
1 total.<br>
<br>
callcenter_config agent list<br>
name|system|uuid|type|contact|status|state|max_no_answer|wrap_up_time|reject_delay_time|busy_delay_time|no_answer_delay_time|last_bridge_start|last_bridge_end|last_offered_call|last_status_change|no_answer_count|calls_answered|talk_time|ready_time<br>
1002@default|single_box|a1c9b1a4-7926-4da9-9041-100df3d1bbbb|uuid-standby||Available<br>
(On Demand)|In a queue<br>
call|1|5|0|5|5|1429736687|1429735319|1429736687|1429736506|0|1|0|0<br>
<br>
- Member hangs up<br>
show channels<br>
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num,initial_cid_name,initial_cid_num,initial_ip_addr,initial_dest,initial_dialplan,initial_context<br>
a1c9b1a4-7926-4da9-9041-100df3d1bbbb,inbound,2015-04-22<br>
18:01:46,1429736506,sofia/internal/<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,CS_EXECUTE,1002,1002,192.168.0.103,4099,playback,local_stream://moh,XML,default,PCMU,8000,64000,PCMU,8000,64000,,hajjar-notebook,<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,,ACTIVE,1000,1000,RECV,d298fa41-b855-4027-ba4a-ac112df641d5,,,1002,1002,192.168.0.103,4099,XML,default<br>
d298fa41-b855-4027-ba4a-ac112df641d5,inbound,2015-04-22<br>
18:04:47,1429736687,sofia/internal/<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a>,CS_SOFT_EXECUTE,1000,1000,192.168.0.120,*91,uuid_bridge,a1c9b1a4-7926-4da9-9041-100df3d1bbbb,XML,default,PCMU,8000,64000,PCMU,8000,64000,,hajjar-notebook,<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a>,,ACTIVE,1002,1002,SEND,d298fa41-b855-4027-ba4a-ac112df641d5,1002,1002,1000,1000,192.168.0.120,*91,XML,default<br>
<br>
2 total.<br>
<br>
show calls<br>
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,hostname,sent_callee_name,sent_callee_num,b_uuid,b_direction,b_created,b_created_epoch,b_name,b_state,b_cid_name,b_cid_num,b_ip_addr,b_dest,b_presence_id,b_presence_data,b_callstate,b_callee_name,b_callee_num,b_callee_direction,b_sent_callee_name,b_sent_callee_num,call_created_epoch<br>
d298fa41-b855-4027-ba4a-ac112df641d5,inbound,2015-04-22<br>
18:04:47,1429736687,sofia/internal/<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a>,CS_SOFT_EXECUTE,1000,1000,192.168.0.120,*91,<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a>,,ACTIVE,1002,1002,SEND,d298fa41-b855-4027-ba4a-ac112df641d5,hajjar-notebook,1002,1002,a1c9b1a4-7926-4da9-9041-100df3d1bbbb,inbound,2015-04-22<br>
18:01:46,1429736506,sofia/internal/<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,CS_EXECUTE,1002,1002,192.168.0.103,4099,<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>,,ACTIVE,1000,1000,RECV,,,1429736687<br>
<br>
1 total.<br>
<br>
callcenter_config agent list<br>
name|system|uuid|type|contact|status|state|max_no_answer|wrap_up_time|reject_delay_time|busy_delay_time|no_answer_delay_time|last_bridge_start|last_bridge_end|last_offered_call|last_status_change|no_answer_count|calls_answered|talk_time|ready_time<br>
1002@default|single_box|a1c9b1a4-7926-4da9-9041-100df3d1bbbb|uuid-standby||Available<br>
(On<br>
Demand)|Waiting|1|5|0|5|5|1429736687|1429735319|1429736687|1429736990|0|1|0|0<br>
<br>
Here the agent gets transfered back to uuid-standby extension and<br>
restarts hearing moh.<br>
Its state is &quot;Waiting&quot; - but he/she won&#39;t answer new calls. But the<br>
state is &quot;Waiting&quot; only because it got overridden by the dialplan.<br>
In my tests, removing the callcenter_config(agent set state..) from<br>
dialplan (and controlling agent state via CLI), I&#39;ve noticed that the<br>
agent state never gets back to &quot;Idle&quot; (if On Demand) or &quot;Waiting&quot;. It<br>
gets stuck in &quot;In a queue call&quot;.<br>
<br>
Trying to uuid_kill the member uuid, results in -ERR No such channel!<br>
<br>
- When agent finally hangs up:<br>
2015-04-22 18:21:56.804183 [NOTICE] sofia.c:952 Hangup<br>
sofia/internal/<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>
2015-04-22 18:21:56.824219 [NOTICE] switch_core_session.c:1641 Session 6<br>
(sofia/internal/<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a>) Ended<br>
2015-04-22 18:21:56.824219 [NOTICE] switch_core_session.c:1645 Close<br>
Channel sofia/internal/<a href="mailto:1000@192.168.0.136" target="_blank">1000@192.168.0.136</a> [CS_DESTROY]<br>
2015-04-22 18:21:57.104198 [NOTICE] switch_core_session.c:1641 Session 4<br>
(sofia/internal/<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a>) Ended<br>
2015-04-22 18:21:57.104198 [NOTICE] switch_core_session.c:1645 Close<br>
Channel sofia/internal/<a href="mailto:1002@192.168.0.136" target="_blank">1002@192.168.0.136</a> [CS_DESTROY]<br>
<br>
show channels, show calls return 0<br>
<br>
If callcenter_config(agent set state...) is commented out in dialplan,<br>
callcenter_config agent list shows the agent as &quot;Idle&quot;. Meaning<br>
mod_callcenter only perceives the call has been disconnected, after the<br>
agent hangs up...<br>
<br>
I&#39;m not blaming mod_callcenter - maybe it&#39;s related to<br>
transfer_after_bridge.<br>
I already tried using exec_after_bridge_app/arg to a script that sleeps<br>
and transfer back to 4099. I also tried increasing the dialplan sleep.<br>
I&#39;d appreciate any advice on how to make uuid-standby work.<br>
<br>
Thanks in advance,<br>
<br>
Saumar<br>
<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div></div>