[asterisk-bugs] [JIRA] (ASTERISK-28354) app_queue: Call to Unavailable member

Vyrva Igor (JIRA) noreply at issues.asterisk.org
Tue Apr 2 02:03:47 CDT 2019


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246739#comment-246739 ] 

Vyrva Igor commented on ASTERISK-28354:
---------------------------------------

pjsip.conf:
[system]
 type=system
 timer_t1 = 500
 timer_b = 32000
 compact_headers = no
[global]
 type = global
 debug = no
[transport-udp]
 type = transport
 protocol = udp
 allow_reload = yes
 bind = 0.0.0.0
 symmetric_transport = yes

[phone-endpoint](!)
 type = endpoint
 context = local
 disallow = all
 allow = ulaw,alaw
 dtmf_mode = rfc4733
 direct_media = no
 rtp_symmetric = yes
[phone-auth](!)
 type = auth
 auth_type = userpass
 password = Pa$$w0rd
[phone-aor](!)
 type = aor
 max_contacts = 1
 default_expiration=600
 qualify_frequency=150
 authenticate_qualify=yes

[115](phone-endpoint)
 auth = 115
  aors = 115
[115](phone-auth)
 username = 115
[115](phone-aor)

[423](phone-endpoint)
 auth = 423
  aors = 423
[423](phone-auth)
 username = 423
[423](phone-aor)

[666](phone-endpoint)
 auth = 666
  aors = 666
[666](phone-auth)
 username = 666
[666](phone-aor)

queue.conf
[general]
persistentmembers = yes
autofill = yes
monitor-type = MixMonitor
shared_lastcall = no

[test]
setqueuevar = yes
ringinuse = yes
member => PJSIP/666,1,Test User

queuerules.conf / pjsip_notify.conf / pjsip_wizard.conf - defaults

115 added to queue by command from CLI:
CLI> queue add member PJSIP/115 to test penalty 1


> app_queue: Call to Unavailable member
> -------------------------------------
>
>                 Key: ASTERISK-28354
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28354
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 16.2.0
>         Environment: Asterisk 16.2.0
> PJSIP
> CentOS 7
>            Reporter: Vyrva Igor
>            Assignee: Vyrva Igor
>              Labels: pjsip
>
> If the Queue parameters are set to ringinuse=yes, then the call occurs including on the Members with the status "unavailable". 
> This leads to Errors in the CLI / logs with the content that these Membranes have the wrong contact
> For example:
> queue.conf:
> [test]
> ringinuse=yes
> member => PJSIP/666,1,Test User
> test extenion
> exten => *666,1,NoOp(Test call)
>  same => n,Queue(test,ct,,,15)
>  same => n,NoOp(${QUEUESTATUS})
>  same => n,Hangup()
> queue show test
> test has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0%, SL2:0.0% within 0s
>    Members: 
>       PJSIP/115 with penalty 1 (ringinuse enabled) (dynamic) (Not in use) has taken no calls yet
>       Test User (PJSIP/666) with penalty 1 (ringinuse enabled) (Unavailable) has taken no calls yet
>    No Callers
> Call
>    -- Executing [*666 at local:1] NoOp("PJSIP/423-00000000", "Test call") in new stack
>     -- Executing [*666 at local:2] Queue("PJSIP/423-00000000", "test,ct,,,15") in new stack
>     -- Started music on hold, class 'default', on channel 'PJSIP/423-00000000'
> [2019-03-27 14:50:52] ERROR[24233]: res_pjsip.c:3500 ast_sip_create_dialog_uac: Endpoint '666': Could not create dialog to invalid URI '666'.  Is endpoint registered and reachable?
> [2019-03-27 14:50:52] ERROR[24233]: chan_pjsip.c:2498 request: Failed to create outgoing session to endpoint '666'
>     -- Called PJSIP/115
> However, if all Members in the Queue are not available, the call is not assigned.
> queue show test
> test has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:1, SL:0.0%, SL2:0.0% within 0s
>    Members: 
>       PJSIP/115 with penalty 1 (ringinuse enabled) (dynamic) (Unavailable) has taken no calls yet
>       Test User (PJSIP/666) with penalty 1 (ringinuse enabled) (Unavailable) has taken no calls yet
>    No Callers
> Call:
>     -- Executing [*666 at local:1] NoOp("PJSIP/423-00000002", "Test call") in new stack
>     -- Executing [*666 at local:2] Queue("PJSIP/423-00000002", "test,ct,,,15") in new stack
>     -- Started music on hold, class 'default', on channel 'PJSIP/423-00000002'
>     -- Stopped music on hold on PJSIP/423-00000002
>     -- Executing [*666 at local:3] NoOp("PJSIP/423-00000002", "TIMEOUT") in new stack
>     -- Executing [*666 at local:4] Hangup("PJSIP/423-00000002", "") in new stack
> In queue_log:
> '2019-03-27 14:50:52.942106', '1553687452.0', 'test', 'NONE', 'ENTERQUEUE', NULL, '', '423', '1', '', ''
> '2019-03-27 14:50:58.066067', '1553687452.0', 'test', 'PJSIP/115', 'RINGCANCELED', NULL, '5121', '', '', '', ''
> '2019-03-27 14:50:58.067558', '1553687452.0', 'test', 'NONE', 'ABANDON', NULL, '1', '1', '6', '', ''
> '2019-03-27 15:02:53.852089', '1553688173.2', 'test', 'NONE', 'ENTERQUEUE', NULL, '', '423', '1', '', ''
> '2019-03-27 15:03:08.867865', '1553688173.2', 'test', 'NONE', 'EXITWITHTIMEOUT', NULL, '1', '1', '15', '', ''
> Although in normal operation we need to only call on those Members that have a status other than "unavailable."
> If you remove ringinuse=yes then the call to the Members with the status "unavailable" is not made. But at the same time the call of Members with the status "in use" is also not made.



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



More information about the asterisk-bugs mailing list