QueueMetrics forum
QueueMetrics => General Asterisk configuration => Topic started 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?
-
I think the easiest way is to skip call files at all and use a Manager connection by setting:
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.
-
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
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.
-
That's exactly the required syntax - do you get any error?
-
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"?
-
Yes that's exactly so. Isnt't there a way for Astmanproxy to override the default greeting?
-
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