Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] `asterisk -x reload` does not working in `while` expression.


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
dontdieych at gmail.com
Guest





PostPosted: Sun Apr 12, 2015 12:37 am    Post subject: [asterisk-users] `asterisk -x reload` does not working in `w Reply with quote

Hello,

Reload extensions.conf works well both in CLI and excute `asterisk -x
reload` in shell. But it does not working with `while` expression. I
use fish shell but it also does not working in bash.

```
while inotifywait -e MOVE_SELF /etc/asterisk/extensions.conf
asterisk -x 'help core reload'
asterisk -x 'core reload'
asterisk -x 'dialplan reload'
asterisk -x 'module reload'
asterisk -x 'config reload extensions.conf'
sleep 2
end

Setting up watches.
Watches established.
/etc/asterisk/extensions.conf MOVE_SELF
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Usage: core reload
Execute a global reload.
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Dialplan reloaded.
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Setting up watches.
Watches established.
```

You can see `help core reload` working. But any reload command does
not working with changed extensions.conf.

Please anyone can test this? here is bash version,

```
while inotifywait -e MOVE_SELF /etc/asterisk/extensions.conf; do
asterisk -x 'reload'; sleep 2; done

(then edit and save extensions.conf)
```

ubuntu 14.04
asterisk 11.7

Thanks.


--
YCH

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services