Dunamic agents in state invalid and receive no calls

Hi,

I’ve a queue with static members and is working properly:

[ccenter_cp]
;strategy=rrmemory
strategy=ringall
music=default
musiconhold=default
timeout=15
retry=2
wrapuptime=5
maxlen = 1
memberdelay=0
announce-frequency = 30
announce-holdtime = yes
queue-thankyou=queue
queue-youarenext=queue
periodic-announce-frequency=30
joinempty=yes
leavewhenempty=no
periodic-announce=queue/cp_hold
queue-callswaiting=queue/cp_hold
announce-holdtime = no
member => SIP/61160
member => SIP/61161
member => SIP/61162
member => SIP/61163
member => SIP/61164
member => SIP/61165
member => SIP/61166
member => SIP/61167
member => SIP/61168
member => SIP/61169

In extensions.conf:

But I also need dýnamic members and I tried unsucessfully this procedure:

;Dynamic Login/Logout Agents
exten => 901,1,Addqueuemember(ccenter_cp,SIP/${CALLERID(num)})
exten => 901,n,Playback(agent-loginok)
exten => 901,n,Hangup

exten => 902,1,Removequeuemember(ccenter_cp,SIP/${CALLERID(num)})
exten => 902,n,Playback(agent-loggedoff)
exten => 902,n,Hangup

But it doesn’ work…

viriato*CLI> queue show ccenter_cp
ccenter_cp has 0 calls (max 1) in ‘ringall’ strategy (0s holdtime, 0s talktime), W:0, C:0, A:7, SL:0.0% within 0s
Members:
SIP/24061 (ringinuse enabled) (dynamic) (Invalid) has taken no calls yet
Agent/24061 (ringinuse enabled) (Invalid) has taken no calls yet
SIP/61169 (ringinuse enabled) (Not in use) has taken no calls yet

Why it appears invalid?

Also in agents.conf:

[general]

[agents]
autologoff=15
ackcall=yes
wrapuptime=5000
musiconhold => default
acceptdtmf=##

24061
fullname=cp1

Can you hel please?

I don’t know the version of Asterisk that you re using, but related to the agent state invalid there is bug affecting some versions of Asterisk [ASTERISK-28681] Agent can login queue, but this queue member status is "Invalid" - Digium/Asterisk JIRA

Hi, the version is Asterisk 13.10.0.

Even 13.38.3 is only 11 days from final end of life and has been only receiving security fixes for almost a year. 13.10.0 will have many known, bugs, although people probably won’t remember which those are.

so there is no possibility to have dynamic agents in this version?

No. I’m saying that no-one is realistically going to be able to answer the question for such an old version as they simply won’t remember what has changed. Also, if it is supposed to support your usage, but doesn’t, no Asterisk version 13.x will get fixed to do so.

Also, you haven’t provided the expected result, or explained how an agent channel was added, so I stopped looking at that point when you originally asked this. I’ve no idea what 24061 represents.

24061 is a normal SIP account.

[24061]
type=friend
callerid=“SBC_Humberto” <24061>
context=incoming-H
secret=***
host=dynamic
dtmfmode=inband
;dtmfmode=rfc2833
username=924061
progressinband=yes
directmedia=yes
directrtpsetup=yes
;promiscredir=yes
canreinvite=no
qualify=no

But how does it relate to your scenario, and what about the agent channel with the same name?

Not relevant to your problem: directrtpsetup has never been supported and you use it at your own risk. username should be defaultuser and probably doesn’t do you you think it does. type should be peer unless there are very specific reasons to the contrary. canreinvite is the old name for directmedia. Setting it differently from an explicit directmedia makes no sense at all (I think the physically last one will take precedence).

Hi, Now it´s like this:

[924061]
type=peer
callerid=“Humberto” <24061>
secret=***
host=dynamic
dtmfmode=inband
username=924061
progressinband=yes
directmedia=yes
qualify=no

I simply want any extension that appears in the sip.conf, can, by dialing the code 901 or 902, can enter or leave the members of this queue, respectively… in a dynamic way…

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