Call flow with normal Group Pickup Here: - UA1 call to UA2; - UA2 - ringing 180; - UA3 (Intercepter) - send INVITE with replaces to Freeswitch - to intercept UA2; - dialog established with UA1 & UA3; - UA2 - was CANCELED; - Result: successful Gr. Pickup; UA1 Freeswitch UA2 ──────────┬───────── ──────────┬───────── ──────────┬───────── │ INVITE (SDP) │ │ │ ──────────────────────────> │ │ │ 100 Trying │ │ │ <────────────────────────── │ │ │ 100 trying -- your call is │ │ │ <────────────────────────── │ │ │ │ INVITE (SDP) │ │ │ ──────────────────────────> │ │ │ 100 trying -- your call is │ │ │ <────────────────────────── │ │ │ 180 Ringing │ │ │ <────────────────────────── │ │ 180 Ringing │ │ │ <────────────────────────── │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ UA3 (Intercepter) │ │ ──────────┬─────── │ │ INVITE (replaces UA2) │ │ │ <─────────────────────────────────────────────────────── | │ │ 200 OK (SDP) │ │ │ ───────────────────────────────────────────────────────> | │ │ │ │ │ │ │ 200 OK (SDP) │ │ <────────────────────────── │ │ │ ACK │ │ │ ──────────────────────────> │ CANCEL │ │ │ ──────────────────────────> │ │ │ 200 canceling │ │ │ <────────────────────────── │ │ │ 487 Request Terminated │ │ │ <────────────────────────── │ │ │ ACK │ │ │ ──────────────────────────> │ │ │ │ │ Call flow with Group Pickup in Queues (mod_callcenter) Here: - UA1 call to Queue some number, the Queue has 2 agents. The Queue is based on mod_callcenter; - Queue Agent 1 & Queue Agent 2 - are ringing; - UA3 (Intercepter) - send INVITE with replaces to Freeswitch - to intercept Queue Agent 1; - for both queue agents are sent CANCEL. To UA3 (Intercepter) sent "502 Bad Gateway"; - In Freeswitch console logs: "Reason: Q.850;cause=27;text="DESTINATION_OUT_OF_ORDER"; - Result: Gr. Pickup failed; UA1 Freeswitch (Queue mod_callcenter) Queue Agent 1 Queue Agent 2 ──────────┬───────── ──────────┬───────── ──────────┬───────── ──────────┬───────── │ INVITE (SDP) │ │ │ │ ──────────────────────────> │ │ │ │ 100 Trying │ │ │ │ <────────────────────────── │ │ │ │ 100 trying -- your call is │ │ │ │ <────────────────────────── │ │ │ │ │ INVITE (SDP) │ │ │ │ ──────────────────────────> │ │ │ │ │ │ │ 180 Ringing │ 180/183 Session Progress │ │ │ <────────────────────────── │ <────────────────────────── │ │ │ │ │ │ │ │ │ │ │ 200 OK (SDP) │ │ │ │ <────────────────────────── │ │ │ │ ACK │ │ │ ──────────────────────────> │ INVITE (SDP) │ │ │ <──────────────────────────────────────────────────── | │ │ 180/183 Session Progress │ │ │ ────────────────────────────────────────────────────> | │ │ CANCEL │ │ │ ────────────────────────────────────────────────────> │ │ │ 200 canceling │ │ │ ────────────────────────────────────────────────────> │ │ │ │ │ │ │ │ │ │ │ │ CANCEL │ │ │ ──────────────────────────> │ │ │ 200 canceling │ │ │ <────────────────────────── │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ UA3 (Intercepter) │ │ ──────────┬─────── │ │ INVITE (replaces Queue Agent 1) │ │ │ <─────────────────────────────────────────────────────────────────────────────────── │ │ | 100 Trying │ │ | ───────────────────────────────────────────────────────────────────────────────────> │ │ 502 Bad Gateway │ │ ───────────────────────────────────────────────────────────────────────────────────> │ │ ACK │ │ ───────────────────────────────────────────────────────────────────────────────────> │ │ │ │ │ │