[asterisk-bugs] [JIRA] (ASTERISK-27325) Asterisk Community Queue member stays “In Use” after parking a call

Andres Miedzowicz (JIRA) noreply at issues.asterisk.org
Sun Oct 8 17:59:39 CDT 2017


Andres Miedzowicz created ASTERISK-27325:
--------------------------------------------

             Summary: Asterisk Community  Queue member stays “In Use” after parking a call
                 Key: ASTERISK-27325
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27325
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Applications/app_parkandannounce
    Affects Versions: 13.17.0
         Environment: OS: CentOS 6.7
Kernel: 2.6.32-573.22.1.el6.x86_64
Asterisk version: 13.17.0
Hardware: Dell PE R200
            Reporter: Andres Miedzowicz


Call parking is configurated in Asterisk 13.17.0 (using PJSIP) using the default settings in res_parking.conf and features.conf. When a call enters a queue and the agent that picked up the call parks it, the status of that agent stays "In Use" until the call ends even though the agent is no longer involved in the call at all.

For example, a call from Alice gets into a queue and gets answered by Bob. Bob parks the call and gets removed from the bridge. After that, Charlie picks up the parked call and talks to Alice normally. During this call, the status of Bob is "In Use" which doesn't allow him to get new calls. Only when the call between Alice and Charlie ends does Bob become available again.

Example: Extension 681 calls the queue and it’s picked up by extension 687. The call is then parked by 687 and picked up by extension 689.

My configuration is the following:

extenensions.conf

include => parkedcalls

[myqueue]
exten => s,1,Verbose(“Entering the Queue”)
same => n,Queue(myqueue,k,30)
same => n, Hangup()

queues.conf

[myqueue]
member => PJSIP/111,Agent Name

features.conf

[featuremap]
parkcall => #7

res_parking.conf

[default]
parkext => 700
parkpos => 701-705
context => parkedcalls
parkingtime => 120

Before placing the call:

asterisk-lab*CLI> queue show test
test has 0 calls (max unlimited) in ‘ringall’ strategy (0s holdtime, 52s talktime), W:0, C:7, A:0, SL:14.3% within 0s
Members:
PJSIP/687 (ringinuse enabled) (Not in use) has taken 5 calls (last was 121 secs ago)
No Callers

asterisk-lab*CLI> parking show

Parking General Options
Dynamic Parking : no

Parking Lot: default
Parking Extension : 700
Parking Context : parkedcalls
Parking Spaces : 701-705
Parking Time : 45 sec
Comeback to Origin : yes
Comeback Context : parkedcallstimeout (comebacktoorigin=yes, not used)
Comeback Dial Time : 30 sec
MusicOnHold Class :
Enabled : yes
Dynamic : no

asterisk-lab*CLI> core show channels
Channel Location State Application(Data)
0 active channels
0 active calls
21 calls processed

After the call was placed to the queue and it was answered by the agent:

asterisk-lab*CLI> queue show test
test has 0 calls (max unlimited) in ‘ringall’ strategy (0s holdtime, 52s talktime), W:0, C:7, A:0, SL:14.3% within 0s
Members:
PJSIP/687 (ringinuse enabled) (in call) (In use) has taken 5 calls (last was 146 secs ago)
No Callers

asterisk-lab*CLI> parking show

Parking General Options
Dynamic Parking : no

Parking Lot: default
Parking Extension : 700
Parking Context : parkedcalls
Parking Spaces : 701-705
Parking Time : 45 sec
Comeback to Origin : yes
Comeback Context : parkedcallstimeout (comebacktoorigin=yes, not used)
Comeback Dial Time : 30 sec
MusicOnHold Class :
Enabled : yes
Dynamic : no

asterisk-lab*CLI> core show channels
Channel Location State Application(Data)
PJSIP/681-00000019 8011 at staff:2 Up Queue(test,k)
PJSIP/687-0000001a 8011 at staff:1 Up AppQueue((Outgoing Line))
2 active channels
1 active call
22 calls processed

After the call was parked:

asterisk-lab*CLI> queue show test
test has 0 calls (max unlimited) in ‘ringall’ strategy (0s holdtime, 52s talktime), W:0, C:7, A:0, SL:14.3% within 0s
Members:
PJSIP/687 (ringinuse enabled) (in call) (In use) has taken 5 calls (last was 158 secs ago)
No Callers

asterisk-lab*CLI> parking show default

Parking Lot: default
Parking Extension : 700
Parking Context : parkedcalls
Parking Spaces : 701-705
Parking Time : 45 sec
Comeback to Origin : yes
Comeback Context : parkedcallstimeout (comebacktoorigin=yes, not used)
Comeback Dial Time : 30 sec
MusicOnHold Class :
Enabled : yes
Dynamic : no

Parked Calls
Space : 701
Channel : PJSIP/681-00000019
Parker Dial String : PJSIP/687

asterisk-lab*CLI> core show channels
Channel Location State Application(Data)
PJSIP/681-00000019 8011 at staff:2 Up Queue(test,k)
PJSIP/687-0000001a 8011 at staff:1 Up AppQueue((Outgoing Line))
1 active channel
1 active call
23 calls processed

After the parked call was picked up by another agent:

asterisk-lab*CLI> queue show test
test has 0 calls (max unlimited) in ‘ringall’ strategy (0s holdtime, 52s talktime), W:0, C:7, A:0, SL:14.3% within 0s
Members:
PJSIP/687 (ringinuse enabled) (in call) (In use) has taken 5 calls (last was 184 secs ago)
No Callers

asterisk-lab*CLI> parking show default

Parking Lot: default
Parking Extension : 700
Parking Context : parkedcalls
Parking Spaces : 701-705
Parking Time : 45 sec
Comeback to Origin : yes
Comeback Context : parkedcallstimeout (comebacktoorigin=yes, not used)
Comeback Dial Time : 30 sec
MusicOnHold Class :
Enabled : yes
Dynamic : no

Parked Calls
(none)

asterisk-lab*CLI> core show channels
Channel Location State Application(Data)
PJSIP/681-00000019 8011 at staff:2 Up Queue(test,k)
PJSIP/687-0000001a 8011 at staff:1 Up AppQueue((Outgoing Line))
PJSIP/689-0000001b 701 at staff:1 Up ParkedCall(default,701)
2 active channels
2 active calls
24 calls processed

After the call ended:

asterisk-lab*CLI> queue show test
test has 0 calls (max unlimited) in ‘ringall’ strategy (0s holdtime, 66s talktime), W:0, C:8, A:0, SL:12.5% within 0s
Members:
PJSIP/687 (ringinuse enabled) (Not in use) has taken 6 calls (last was 4 secs ago)
No Callers

asterisk-lab*CLI> parking show default

Parking Lot: default
Parking Extension : 700
Parking Context : parkedcalls
Parking Spaces : 701-705
Parking Time : 45 sec
Comeback to Origin : yes
Comeback Context : parkedcallstimeout (comebacktoorigin=yes, not used)
Comeback Dial Time : 30 sec
MusicOnHold Class :
Enabled : yes
Dynamic : no

Parked Calls
(none)

asterisk-lab*CLI> core show channels
Channel Location State Application(Data)
0 active channels
0 active calls
24 calls processed

Finally, here’s the log:

[Aug 20 11:10:01] VERBOSE[30569][C-00000015] pbx.c: Executing [8011 at staff:1] Verbose(“PJSIP/681-00000019”, ““Enter test queue””) in new stack
[Aug 20 11:10:01] VERBOSE[30569][C-00000015] app_verbose.c: Enter test queue
[Aug 20 11:10:01] VERBOSE[30569][C-00000015] pbx.c: Executing [8011 at staff:2] Queue(“PJSIP/681-00000019”, “test,k”) in new stack
[Aug 20 11:10:01] WARNING[30569][C-00000015] res_musiconhold.c: Music on Hold class ‘streaming’ not found in memory. Verify your configuration.
[Aug 20 11:10:01] VERBOSE[30569][C-00000015] res_musiconhold.c: Started music on hold, class ‘default’, on channel ‘PJSIP/681-00000019’
[Aug 20 11:10:01] VERBOSE[30569][C-00000015] app_queue.c: Called PJSIP/687
[Aug 20 11:10:01] VERBOSE[30569][C-00000015] app_queue.c: PJSIP/687-0000001a connected line has changed. Saving it until answer for PJSIP/681-00000019
[Aug 20 11:10:01] VERBOSE[30569][C-00000015] app_queue.c: PJSIP/687-0000001a is ringing
[Aug 20 11:10:04] VERBOSE[30569][C-00000015] app_queue.c: PJSIP/687-0000001a answered PJSIP/681-00000019
[Aug 20 11:10:04] VERBOSE[30569][C-00000015] res_musiconhold.c: Stopped music on hold on PJSIP/681-00000019
[Aug 20 11:10:04] VERBOSE[30569][C-00000015] app_verbose.c: Member interface is PJSIP/687
[Aug 20 11:10:04] VERBOSE[30572][C-00000015] bridge_channel.c: Channel PJSIP/687-0000001a joined ‘simple_bridge’ basic-bridge
[Aug 20 11:10:04] VERBOSE[30569][C-00000015] bridge_channel.c: Channel PJSIP/681-00000019 joined ‘simple_bridge’ basic-bridge
[Aug 20 11:10:19] VERBOSE[30569][C-00000015] bridge_channel.c: Channel PJSIP/681-00000019 left ‘simple_bridge’ basic-bridge
[Aug 20 11:10:19] VERBOSE[30569][C-00000015] parking/parking_bridge.c: Parking ‘PJSIP/681-00000019’ in ‘default’ at space 701
[Aug 20 11:10:19] VERBOSE[30569][C-00000015] bridge_channel.c: Channel PJSIP/681-00000019 joined ‘holding_bridge’ parking-bridge <5b262c5f-1812-40c6-a53e-7d04b3c9dd3c>
[Aug 20 11:10:19] VERBOSE[30569][C-00000015] res_musiconhold.c: Started music on hold, class ‘default’, on channel ‘PJSIP/681-00000019’
[Aug 20 11:10:19] VERBOSE[30572][C-00000015] file.c: <PJSIP/687-0000001a> Playing ‘digits/7.g722’ (language ‘en’)
[Aug 20 11:10:20] VERBOSE[30572][C-00000015] file.c: <PJSIP/687-0000001a> Playing ‘digits/0.g722’ (language ‘en’)
[Aug 20 11:10:21] VERBOSE[30572][C-00000015] file.c: <PJSIP/687-0000001a> Playing ‘digits/1.g722’ (language ‘en’)
[Aug 20 11:10:22] VERBOSE[30572][C-00000015] bridge_channel.c: Channel PJSIP/687-0000001a left ‘simple_bridge’ basic-bridge
[Aug 20 11:10:43] VERBOSE[30581][C-00000017] pbx.c: Executing [701 at staff:1] ParkedCall(“PJSIP/689-0000001b”, “default,701”) in new stack
[Aug 20 11:10:43] VERBOSE[30581][C-00000017] bridge_channel.c: Channel PJSIP/681-00000019 left ‘holding_bridge’ parking-bridge <5b262c5f-1812-40c6-a53e-7d04b3c9dd3c>
[Aug 20 11:10:43] VERBOSE[30581][C-00000017] res_musiconhold.c: Stopped music on hold on PJSIP/681-00000019
[Aug 20 11:10:43] VERBOSE[30581][C-00000017] bridge_channel.c: Channel PJSIP/681-00000019 joined ‘simple_bridge’ basic-bridge <177c3ea0-2510-49cf-ab86-de6dc4ce9ec8>
[Aug 20 11:10:43] VERBOSE[30581][C-00000017] bridge_channel.c: Channel PJSIP/689-0000001b joined ‘simple_bridge’ basic-bridge <177c3ea0-2510-49cf-ab86-de6dc4ce9ec8>
[Aug 20 11:11:10] VERBOSE[30569][C-00000015] bridge_channel.c: Channel PJSIP/681-00000019 left ‘native_rtp’ basic-bridge <177c3ea0-2510-49cf-ab86-de6dc4ce9ec8>
[Aug 20 11:11:10] VERBOSE[30581][C-00000017] bridge_channel.c: Channel PJSIP/689-0000001b left ‘native_rtp’ basic-bridge <177c3ea0-2510-49cf-ab86-de6dc4ce9ec8>
[Aug 20 11:11:10] VERBOSE[30581][C-00000017] pbx.c: Spawn extension (staff, 701, 1) exited non-zero on ‘PJSIP/689-0000001b’
[Aug 20 11:11:10] VERBOSE[30569][C-00000015] pbx.c: Spawn extension (staff, 8011, 2) exited non-zero on ‘PJSIP/681-00000019’



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list