Author Topic: File permissions in /var/spool/asterisk/outgoing/  (Read 10244 times)

gb_delti

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
File permissions in /var/spool/asterisk/outgoing/
« 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?


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: File permissions in /var/spool/asterisk/outgoing/
« Reply #1 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.

gb_delti

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: File permissions in /var/spool/asterisk/outgoing/
« Reply #2 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 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.
« Last Edit: April 15, 2009, 17:49:58 by gb_delti »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: File permissions in /var/spool/asterisk/outgoing/
« Reply #3 on: April 15, 2009, 18:32:44 »
That's exactly the required syntax - do you get any error?

gb_delti

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: File permissions in /var/spool/asterisk/outgoing/
« Reply #4 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"?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: File permissions in /var/spool/asterisk/outgoing/
« Reply #5 on: April 16, 2009, 15:47:27 »
Yes that's exactly so. Isnt't there a way for Astmanproxy to override the default greeting?

gb_delti

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: File permissions in /var/spool/asterisk/outgoing/
« Reply #6 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