We are building a system
- One pair of kamailio as SIP Proxy (active/standby). Kamailio distributes the call to asterisk by round-robin
- 6 asterisk GWs configured as cluster
- Using realtime DB
- We did configure the Device state sync: Exchanging Device and Mailbox State Using PJSIP - Asterisk Project - Asterisk Project Wiki
- Make an incoming call.
Issue#1. Please see the result of queue show below, the call is being distributed to Asterisk#01, the Device state (Ringing or Not in use) are updated properly on both asterisk GWs
However looking at Asterisk#02, line 9003, you can see âlast was 19 secs agoâ there but not on the line 9003 under queue show of Asterisk#01.
This âlast was 19 secs agoâ state reports how long this line has ide from last call.
This leads an issue âLeastrecent strategy works incorrectly in asterisk clusterâ, becasue state of line 9003 is NOT updated to Asterisk#01 as shown below, Asterisk#01 doesnât know when is last call on the line 9003 and how long it has idl.
Issue#2. You can see the Asterisk#01 shows â1. PJSIP/9000@2.collabos.com-00000000 (wait: 0:07, prio: 0)â, but not under Asterisk#02
This leads to an issue âQUEUE_WAITING_COUNT works incorrectly in asterisk clusterâ. since Asterisk#02 doesnât realize that there is a wait call being processed in Asterisk#01.
Question:
Is this Asteriskâs behavior or I am wrong at some configurations (step 4 above) for Device state sync ?
Any advice/recommendation you could provide would be high appreciated
Many thanks for your help.
Asterisk#01
ip-172-31-47-139*CLI> queue show 8888
8888 has 1 calls (max unlimited) in ârrmemoryâ strategy (0s holdtime, 0s talktime), W:0, C:0, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
9002 (PJSIP/9002@2.collabos.com) (ringinuse disabled) (realtime) (Ringing) has taken no calls yet
9003 (PJSIP/9003@2.collabos.com) (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
9004 (PJSIP/9004@2.collabos.com) (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
Callers:
1. PJSIP/9000@2.collabos.com-00000000 (wait: 0:07, prio: 0)
Asterisk#02
ip-172-31-40-250*CLI> queue show 8888
8888 has 0 calls (max unlimited) in ârrmemoryâ strategy (5s holdtime, 1s talktime), W:0, C:1, A:1, SL:0.0%, SL2:0.0% within 0s
Members:
9002 (PJSIP/9002@2.collabos.com) (ringinuse disabled) (realtime) (Ringing) has taken no calls yet
9003 (PJSIP/9003@2.collabos.com) (ringinuse disabled) (realtime) (Not in use) has taken 1 calls (last was 19 secs ago)
9004 (PJSIP/9004@2.collabos.com) (ringinuse disabled) (realtime) (Not in use) has taken no calls yet
No Callers