Re: [asterisk-users] extensions.conf asterisk 18.8.0 question

2022-01-10 Thread Antony Stone
On Monday 10 January 2022 at 20:03:55, Jerry Geis wrote:

> I am trying to run this command:
> exten => _4XX,n,System(/usr/bin/rm /tmp/test.incoming.txt)
> 
> From the log:
> Executing [402@smvoice-sip:7] System("SIP/103-0018", "/usr/bin/rm
> /tmp/test.incoming.txt") in new stack
> 
> 
> Is "rm" not an allowed command - the above file is not removed.
> -rw-rw-rw- 1 silentm silentm 3 Jan 10 14:02 /tmp/test.incoming.txt

1. Does your asterisk instance run as user "silentm"?

2. What happens if you add the "-f" parameter to the "rm" command in the 
dialplan?

3. What does "sudo -u asteriskuser rm /tmp/test.incoming.txt" do, if you run 
it as the root user, and substituting whichever user your asterisk instance 
runs as in place of "asteriskuser"?


Antony.

-- 
A user interface is like a joke.
If you have to explain it, it means it doesn't work.

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] extensions.conf asterisk 18.8.0 question

2022-01-10 Thread Jerry Geis
I am trying to run this command:
exten => _4XX,n,System(/usr/bin/rm /tmp/test.incoming.txt)

>From the log:
 Executing [402@smvoice-sip:7] System("SIP/103-0018", "/usr/bin/rm
/tmp/test.incoming.txt") in new stack


Is "rm" not an allowed command - the above file is not removed.
-rw-rw-rw- 1 silentm silentm 3 Jan 10 14:02 /tmp/test.incoming.txt

Thanks!

Jerry
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] problem with asterisk multiple queues and call assigning

2022-01-10 Thread marek

hi,

i have 2 queues

- queue1
- queue2

1 agent is in both queues
queue strategy is rrmemory

i have 2 calls waiting
call from 12:00 in queue1 from number 777
call from 12:05 in queue2 from number 666

at 12:10 agent is free for next call
i have problem in that newer call (call from 12:05) from queue2 is 
assigned to agent. i need assign the longer waiting call from queue1


Asterisk 16

any hints/tips?

Marek



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users