QueueMetrics forum

QueueMetrics => General Asterisk configuration => Topic started by: torontob on October 25, 2010, 21:22:33

Title: .call file for PAUSE and UNPAUSE is chowned root.root hence it doesn't work - ??
Post by: torontob on October 25, 2010, 21:22:33
Hello,

I see that our extensions_queuemetrics.conf exists and it's included in extensions_custom.conf. When trying to PAUSE and UNPAUSE from agent portal the call file created in /var/spool/asterisk/outgoing is chowned root.root rather than asterisk.asterisk and hence agents can't go on PAUSE or UNPAUSE. We are using PBXinaFLASH.

I remember to have fixed this previously maybe by changeing ${AGENT} to ${LOCAL} or something but now I can't find that post.

Please help.

P.S. how does one debug the java code for the buttons PAUSE and UNPAUSE to find the source of the code as to why the files are chowned with root.root rather than asterisk user.

Thanks
Title: Re: .call file for PAUSE and UNPAUSE is chowned root.root hence it doesn't work - ??
Post by: QueueMetrics on October 26, 2010, 14:08:36
Do not use the callfile, use the tcp:user:pass@server format!
Title: Re: .call file for PAUSE and UNPAUSE is chowned root.root hence it doesn't work - ??
Post by: torontob on October 27, 2010, 01:18:10
Yep, that worked.

If a call is put on PAUSE the "queue show" should show it on PAUSE in Asterisk CLI right? But it doesn't. I think because it uses the ${AGENT} format rather than ${Local).....

Can you please comment on that.

Thanks
Title: Re: .call file for PAUSE and UNPAUSE is chowned root.root hence it doesn't work - ??
Post by: QueueMetrics on October 27, 2010, 09:06:43
Not sure about the CLI, but youu get a PAUSEALL command. If it's written on the log, then it's issued.
Title: Re: .call file for PAUSE and UNPAUSE is chowned root.root hence it doesn't work - ??
Post by: torontob on October 27, 2010, 16:51:20
That is true. The Queue Log does show the PAUSE but would that STOP Asterisk from sending calls to that specific extension?

I think you didn't get my question.

Thanks
Title: Re: .call file for PAUSE and UNPAUSE is chowned root.root hence it doesn't work - ??
Post by: QueueMetrics on October 28, 2010, 09:54:20
Yes it should - we never saw any case where a PAUSEALL would noyt pause the agent in the queue (as long as the channel name is the same, of course).
Title: Re: .call file for PAUSE and UNPAUSE is chowned root.root hence it doesn't work - ??
Post by: torontob on October 28, 2010, 18:41:26
I had to change this to work:

From:
PauseQueueMember(,Local/${AGENTCODE}@from-internal)

To:
PauseQueueMember(,Local/${AGENTCODE}@from-internal/n)


I wish all distros of Asterisk stayed Standard. Digium is partly to blame for the various changes :-(


Title: Re: .call file for PAUSE and UNPAUSE is chowned root.root hence it doesn't work - ??
Post by: QueueMetrics on October 29, 2010, 10:36:47
 8)