QueueMetrics forum

QueueMetrics => General Asterisk configuration => Topic started by: gb_delti on December 17, 2008, 10:53:13

Title: File permissions in /var/spool/asterisk/outgoing/
Post by: gb_delti on December 17, 2008, 10:53:13
Hello,

I'm trying to get the agent login working, but since QueueMetrics runs as a different user than Asterisk, Asterisk can't read the *.call files generated by QM in /var/spool/asterisk/outgoing/
This generates error messages like

Unable to open /var/spool/asterisk/outgoing/QM-3711628163.call: Permission denied, deleting

What can I do to make the files readable for Asterisk?

Title: Re: File permissions in /var/spool/asterisk/outgoing/
Post by: QueueMetrics on December 17, 2008, 14:43:45
I think the easiest way is to skip call files at all and use a Manager connection by setting:

Code: [Select]
callfile.dir=tcp:dial:bingo@10.10.3.100
This will connect to the Manager port of an Asterisk on 10.10.3.100 with user "dial" password "bingo". You of course have to set the relevant manager.conf settings right.
Title: Re: File permissions in /var/spool/asterisk/outgoing/
Post by: gb_delti on April 15, 2009, 17:45:12
Thank you, this solution works fine.

Is there any way to connect on a non-standard port? I have astmanproxy  (http://github.com/davetroy/astmanproxy/tree/master)running on port 21234 and would like to use it. I've tried the line

Code: [Select]
callfile.dir=tcp:dial:bingo@10.10.3.100:21234
but that didn't work.

Running the original manager interface on another port and astmanproxy on 5038 would be too much hassle - several other services already use the astmanproxy port.
Title: Re: File permissions in /var/spool/asterisk/outgoing/
Post by: QueueMetrics on April 15, 2009, 18:32:44
That's exactly the required syntax - do you get any error?
Title: Re: File permissions in /var/spool/asterisk/outgoing/
Post by: gb_delti on April 16, 2009, 13:59:40
I get the red error message "You do not have the rights to perform the requested action." in QM when I try to change a call outcome. When I have a closer look at the data exchange between QM and the proxy I can see that no data is sent after the TCP connection is established and the proxy prints "Asterisk Call Manager Proxy/1.21" instead of "Asterisk Call Manager/1.0". Could it be that QueueMetrics insists on the "greeting message" being "Asterisk Call Manager/1.0"?
Title: Re: File permissions in /var/spool/asterisk/outgoing/
Post by: QueueMetrics on April 16, 2009, 15:47:27
Yes that's exactly so. Isnt't there a way for Astmanproxy to override the default greeting?
Title: Re: File permissions in /var/spool/asterisk/outgoing/
Post by: gb_delti on April 16, 2009, 16:16:09
Not an easy one. It's doable but I would have to change it in the source code and recompile it.

Apart from that - if you are using the standard Java Asterisk library it probably won't work:

http://www.mail-archive.com/asterisk-users@lists.digium.com/msg174656.html
http://www.mail-archive.com/asterisk-users@lists.digium.com/msg174782.html