<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Ítalo.<br>
    <br>
    I was planning to file a bug report, but tried the list first, just
    in case it was a known issue or just a misinterpretation of the
    documentation.<br>
    I'll collect the traces and submit it.<br>
    <br>
    Thanks.<br>
    <br>
    <div class="moz-cite-prefix">On 23/04/2015 17:15, Ítalo Rossi wrote:<br>
    </div>
    <blockquote
cite="mid:CAJR7f2Hr81W-14pBE2O-5xHGq33Rg3p4BJTnvJPaCCfPGMujfQ@mail.gmail.com"
      type="cite">
      <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'll try to replicate it.</div>
        <br>
        <div class="gmail_quote">On Thu, Apr 23, 2015 at 1:42 PM Saumar
          Hajjar &lt;<a moz-do-not-send="true"
            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 "version" didn'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 "stale channel".<br>
            The uuid-standby agent won't receive any more calls, until
            he/she hangs<br>
            up - what would make uuid-standby a "agent hangup and call
            again" mode.<br>
            <br>
            What I'm trying to do, is nothing fancy. Basically I'm
            following the<br>
            mod_callcenter documentation without much tweaking.<br>
            Here'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="destination_number"
            expression="^\*91$"&gt;<br>
                     &lt;action application="callcenter"
            data="support@default"/&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="destination_number"
            expression="^(4099)$"&gt;<br>
                     &lt;action application="set"
            data="transfer_after_bridge=4099"/&gt;<br>
            &lt;!-- Remove this if you just want to get a single call
            --&gt;<br>
                     &lt;action application="sleep" data="300"/&gt;
            &lt;!-- Small delay for<br>
            safety needs --&gt;<br>
                     &lt;action application="set"
            data="res=${callcenter_config(agent<br>
            set uuid ${caller_id_number}@default '${uuid}')}" /&gt;<br>
                     &lt;action application="set"
            data="res=${callcenter_config(agent<br>
            set type ${caller_id_number}@default 'uuid-standby')}" /&gt;<br>
                     &lt;action application="set"
            data="res=${callcenter_config(agent<br>
            set status ${caller_id_number}@default 'Available (On
            Demand)')}" /&gt;<br>
                     &lt;action application="set"
            data="res=${callcenter_config(agent<br>
            set state ${caller_id_number}@default 'Waiting')}" /&gt;<br>
                     &lt;action application="set"<br>
data="cc_warning_tone=tone_stream://%(200,0,500,600,700)"/&gt;<br>
                     &lt;action application="answer" /&gt;<br>
                     &lt;action application="playback"
            data="$${hold_music}"/&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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 moz-do-not-send="true"
              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
              moz-do-not-send="true" 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 "Waiting" - but he/she won't answer new calls.
            But the<br>
            state is "Waiting" 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've noticed
            that the<br>
            agent state never gets back to "Idle" (if On Demand) or
            "Waiting". It<br>
            gets stuck in "In a queue call".<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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              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 "Idle".
            Meaning<br>
            mod_callcenter only perceives the call has been
            disconnected, after the<br>
            agent hangs up...<br>
            <br>
            I'm not blaming mod_callcenter - maybe it'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'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 moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org"
              target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>