Error messages in QUEUE call with PJSIP members

Hi.
My Asterisk ver. 20.5.0

queue:

[day]
strategy = ringall
ringinuse = yes
member => PJSIP/701
member => PJSIP/702
member => PJSIP/703
member => PJSIP/704

queue show day:

day has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime, 0s talktime), W:0, C:0, A:14, SL:0.0%, SL2:0.0% within 0s
   Members:
      PJSIP/704 (ringinuse enabled) (Not in use) has taken no calls yet (login was 2 secs ago)
      PJSIP/703 (ringinuse enabled) (Unavailable) has taken no calls yet (login was 2 secs ago)
      PJSIP/702 (ringinuse enabled) (Unavailable) has taken no calls yet (login was 2 secs ago)
      PJSIP/701 (ringinuse enabled) (Unavailable) has taken no calls yet (login was 2 secs ago)

When I call this queue all works well but I get:

ERROR[3398]: res_pjsip.c:993 ast_sip_create_dialog_uac: Endpoint '701': Could not create dialog to invalid URI '701'.  Is endpoint registered and reachable?
ERROR[3398]: chan_pjsip.c:2698 request: Failed to create outgoing session to endpoint '701'
ERROR[3398]: res_pjsip.c:993 ast_sip_create_dialog_uac: Endpoint '702': Could not create dialog to invalid URI '702'.  Is endpoint registered and reachable?
ERROR[3398]: chan_pjsip.c:2698 request: Failed to create outgoing session to endpoint '702'
ERROR[3398]: res_pjsip.c:993 ast_sip_create_dialog_uac: Endpoint '703': Could not create dialog to invalid URI '703'.  Is endpoint registered and reachable?
ERROR[3398]: chan_pjsip.c:2698 request: Failed to create outgoing session to endpoint '703'

So calling “Unavailable” or “Invalid” members gives an Error. Why?
Is this a bug or do I need to make some additional settings?

When I used chan_sip before I didn’t get any errors.

Interestingly, when ringinuse = no, there are no such errors with PJSIP members.

Thanks for your help.

Per the message, are those endpoints registered and reachable?

Only 704 endpoint is registered. 701, 702, 703 are unregistered (Unavailable).

 Endpoint:  701                                                  Unavailable   0 of inf
     InAuth:  701-iauth/701
        Aor:  701                                               10

 Endpoint:  702                                                  Unavailable   0 of inf
     InAuth:  702-iauth/702
        Aor:  702                                               10

 Endpoint:  703                                                  Unavailable   0 of inf
     InAuth:  703-iauth/703
        Aor:  703                                               10

 Endpoint:  704                                                  Not in use    0 of inf
     InAuth:  704-iauth/704
        Aor:  704                                               10
      Contact:  704/sip:704@192.168.25.100                 3f28836486 Avail         3.530

Right, so calling them would fail. Is your question actually “why are unavailable agents being called”?

  1. How I can disable calls to unavailable members with parameter ringinuse = yes ?
  2. Why with chan_sip same situation not get an error?

Maybe somebody can help me with the first question?

As far as I understand, this cannot be done with parameters joinempty and leavewhenempty. Or is it possible?
I need option ringinuse = yes because calls go to multi-channel softphones.
So how set up so that the queue will call only to members with “Not in use”, “inuse”, “ringing” statuses?

Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.