Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] Reload problems with 1.8.27 and 11.9.0 - Someone else ?

Goto page Previous  1, 2
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
asterisk.org at sedwar...
Guest





PostPosted: Tue May 06, 2014 6:28 pm    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

On Thu, May 1, 2014 at 11:08 AM, Administrator TOOTAI <admin@tootai.net>
wrote:

Quote:
<snip>

Quote:
Quote:
As explained in one on my previous message, it's a bug, easily
reproducible: take a queues.conf (or sip.conf or iax.conf or
voicemail.conf or ...) like this (what is important is the #include):

Quote:
<snip>

Quote:
Quote:
NOTICE[3346]: app_queue.c:6811 reload_queue_rules: queuerules.conf has
not changed since it was last loaded. Not taking any action.

On Tue, 6 May 2014, Rusty Newton wrote:

Quote:
However I'm still confused as to how you are seeing the behavior you are
seeing.

Any chance the OP is including files from a file system that isn't
maintaining atime/ctime/mtime/etc as expected, like NFS?

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

--
_____________________________________________________________________
-- 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
admin at tootai.net
Guest





PostPosted: Wed May 07, 2014 2:19 am    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

Le 07/05/2014 00:57, Rusty Newton a écrit :
Quote:
On Thu, May 1, 2014 at 11:08 AM, Administrator TOOTAI <admin@tootai.net> wrote:
<snip>
Quote:
As explained in one on my previous message, it's a bug, easily reproducible:
take a queues.conf (or sip.conf or iax.conf or voicemail.conf or ...) like
this (what is important is the #include):
<snip>
Quote:
NOTICE[3346]: app_queue.c:6811 reload_queue_rules: queuerules.conf has not
changed since it was last loaded. Not taking any action.

despite the fact that modification was done in a .conf file. I took this
example as with module reload app_queue the above message appears. For sip,
iax, voicemail, aso there is no message, just "SIP reload" or ...

To make asterisk take the modification in account, you have to open
/etc/asterisk/[sip|iax|voicemail|queue|..].conf and save it without making
any change. After this the command will be execute. It you run it a second
time in a raw, you will see that the false behavior appears again till you
again open/save the original file.
Hi!

Hello

Quote:

I tried to reproduce using your description here and could not
reproduce the issue.

I tried with both sip.conf and queues.conf.

Making a change in an included .conf file, but NOT the parent .conf
file and then reloading that module from the CLI results in:

centosclean*CLI> module reload app_queue.so
-- Reloading module 'app_queue.so' (True Call Queueing)
[May 6 17:51:39] NOTICE[16211]: app_queue.c:7765 reload_queue_rules:
queuerules.conf has not changed since it was last loaded. Not taking
any action.
== Parsing '/etc/asterisk/queues.conf': Found
== Parsing '/etc/asterisk/queue_include_1.conf': Found
== Parsing '/tmp/queue_include_2.conf': Found

I get the same behavior with sip.conf, it appears to work fine,
whether I'm making only changes in the parent .conf or the included
children. I even tried with two different included files in each
sip.conf and queues.conf, one in /tmp and one in /etc/asterisk. Same
working behavior.

Ok, let's explain our files conf.

/etc/asterisk/<all asterisk original conf files>

/etc/asterisk/local/[additional_sip-general|additional_iax-general|...].conf
/etc/asterisk/local/[extensions.d|sip.d|iax.d|queues.d|voicemail.d|...]/<local
conf files>.conf

The local directory and all his subdirectories are owned by a normal
user with 755 rights

Configuration set sample with sip.conf:

In /etc/asterisk/sip.conf, we have #include
local/additionnal_sip-general.conf in one place in the file and at the
end of the file we have #include local/sip.d/*.conf

This setup is the same since ages and was working well. Remember that
switching back to previous version 1.8.26.1 or 11.8.1 make this setup
working again.

We have this proplem on all servers we upgraded to last asterisk version

Quote:
I used SVN-branch-11-r413305, so you might want to test there.
However I'm still confused as to how you are seeing the behavior you
are seeing.

Servers are in production.

Thanks for your support

--
Daniel

--
_____________________________________________________________________
-- 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
admin at tootai.net
Guest





PostPosted: Wed May 07, 2014 2:20 am    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

Le 07/05/2014 01:28, Steve Edwards a écrit :
Quote:
On Thu, May 1, 2014 at 11:08 AM, Administrator TOOTAI
<admin@tootai.net> wrote:

Quote:
<snip>

Quote:
Quote:
As explained in one on my previous message, it's a bug, easily
reproducible: take a queues.conf (or sip.conf or iax.conf or
voicemail.conf or ...) like this (what is important is the #include):

Quote:
<snip>

Quote:
Quote:
NOTICE[3346]: app_queue.c:6811 reload_queue_rules: queuerules.conf
has not changed since it was last loaded. Not taking any action.

On Tue, 6 May 2014, Rusty Newton wrote:

Quote:
However I'm still confused as to how you are seeing the behavior you
are seeing.

Any chance the OP is including files from a file system that isn't
maintaining atime/ctime/mtime/etc as expected, like NFS?


No Smile See my previous answer.

--
Daniel

--
_____________________________________________________________________
-- 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
admin at tootai.net
Guest





PostPosted: Wed May 07, 2014 2:46 am    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

Le 07/05/2014 00:57, Rusty Newton a écrit :
Quote:
[...]

I tried to reproduce using your description here and could not
reproduce the issue.

I tried with both sip.conf and queues.conf.

Making a change in an included .conf file, but NOT the parent .conf
file and then reloading that module from the CLI results in:

centosclean*CLI> module reload app_queue.so
-- Reloading module 'app_queue.so' (True Call Queueing)
[May 6 17:51:39] NOTICE[16211]: app_queue.c:7765 reload_queue_rules:
queuerules.conf has not changed since it was last loaded. Not taking
any action.
== Parsing '/etc/asterisk/queues.conf': Found
== Parsing '/etc/asterisk/queue_include_1.conf': Found
== Parsing '/tmp/queue_include_2.conf': Found

I get the same behavior with sip.conf, it appears to work fine,
whether I'm making only changes in the parent .conf or the included
children. I even tried with two different included files in each
sip.conf and queues.conf, one in /tmp and one in /etc/asterisk. Same
working behavior.

I got it: if the filename is given in totality it's working (as you do it).

It's the #include </path to directorie>/*.conf which is not taking in
account (here *.conf description)

--
Daniel

--
_____________________________________________________________________
-- 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
rnewton at digium.com
Guest





PostPosted: Wed May 07, 2014 9:50 am    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

On Wed, May 7, 2014 at 2:46 AM, Administrator TOOTAI <admin@tootai.net> wrote:
Quote:


I got it: if the filename is given in totality it's working (as you do it).

It's the #include </path to directorie>/*.conf which is not taking in
account (here *.conf description)

That still works for me as well.

I switched to Asterisk 11.9.0 built fresh from a tarball with default
compilation options.

I contructed a basic sip.conf, and added this line to the end:

#include /etc/asterisk/sip_includes/*.conf

I then edited /etc/asterisk/sip_includes/sip_included.conf to add a SIP peer.

Started Asterisk.

Then edited only the sip_included.conf file to change the peer name.

Connected to Asterisk console, performed 'sip show peers', 'sip
reload', 'sip show peers'.

Everything worked as expected: here is a pastebin: http://pastebin.com/XGKKu4x9

That is, when using a wildcard in the file path in an include inside
sip.conf, Asterisk correctly detects a change in the included conf
file upon a sip reload.


You might try reproducing the issue on a fresh install, on your
non-production system to see if you can narrow down where the
difference is.

--
Rusty Newton
Digium, Inc. | Community Support Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
direct: +1 256 428 6200

Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- 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
admin at tootai.net
Guest





PostPosted: Wed May 07, 2014 10:14 am    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

Le 07/05/2014 16:50, Rusty Newton a écrit :
Quote:
On Wed, May 7, 2014 at 2:46 AM, Administrator TOOTAI <admin@tootai.net> wrote:
Quote:

I got it: if the filename is given in totality it's working (as you do it).

It's the #include </path to directorie>/*.conf which is not taking in
account (here *.conf description)
That still works for me as well.

I switched to Asterisk 11.9.0 built fresh from a tarball with default
compilation options.

I contructed a basic sip.conf, and added this line to the end:

#include /etc/asterisk/sip_includes/*.conf

Here is the point. Modify it the way explained in previous message, like

#include sip_includes/*.conf

You should face the problem. And if you run it twice in a raw, it will
do nothing the second time.

Quote:

I then edited /etc/asterisk/sip_includes/sip_included.conf to add a SIP peer.

Started Asterisk.

Then edited only the sip_included.conf file to change the peer name.

Connected to Asterisk console, performed 'sip show peers', 'sip
reload', 'sip show peers'.

sip show peers was always working, only reload (remember, not only sip
stuff) did nothing.

Quote:
Everything worked as expected: here is a pastebin: http://pastebin.com/XGKKu4x9

That is, when using a wildcard in the file path in an include inside
sip.conf, Asterisk correctly detects a change in the included conf
file upon a sip reload.


You might try reproducing the issue on a fresh install, on your
non-production system to see if you can narrow down where the
difference is.

I reinstall our test server from scratch before opening the bug. As I
also told, reinstalling previous versions solve the problem.

--
Daniel

--
_____________________________________________________________________
-- 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
jcolp at digium.com
Guest





PostPosted: Wed May 07, 2014 10:22 am    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

Administrator TOOTAI wrote:
Quote:
Le 07/05/2014 16:50, Rusty Newton a écrit :
Quote:
On Wed, May 7, 2014 at 2:46 AM, Administrator TOOTAI
<admin@tootai.net> wrote:
Quote:

I got it: if the filename is given in totality it's working (as you
do it).

It's the #include </path to directorie>/*.conf which is not taking in
account (here *.conf description)
That still works for me as well.

I switched to Asterisk 11.9.0 built fresh from a tarball with default
compilation options.

I contructed a basic sip.conf, and added this line to the end:

#include /etc/asterisk/sip_includes/*.conf

Here is the point. Modify it the way explained in previous message, like

#include sip_includes/*.conf

You should face the problem. And if you run it twice in a raw, it will
do nothing the second time.

Can you clarify this specific point? It's actually expected that if
nothing changes and you do a reload that nothing will happen. Just so
we're on the same page here...

#1 Do you mean that you make a change, do a reload, and nothing happens.

OR

#2 That you make a change, do two reloads, and the second one does nothing.

I was under the impression that #1 was going on.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- 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
admin at tootai.net
Guest





PostPosted: Wed May 07, 2014 10:50 am    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

Le 07/05/2014 17:22, Joshua Colp a écrit :
Quote:
Administrator TOOTAI wrote:
Quote:
Le 07/05/2014 16:50, Rusty Newton a écrit :
Quote:
On Wed, May 7, 2014 at 2:46 AM, Administrator TOOTAI
<admin@tootai.net> wrote:
Quote:

I got it: if the filename is given in totality it's working (as you
do it).

It's the #include </path to directorie>/*.conf which is not taking in
account (here *.conf description)
That still works for me as well.

I switched to Asterisk 11.9.0 built fresh from a tarball with default
compilation options.

I contructed a basic sip.conf, and added this line to the end:

#include /etc/asterisk/sip_includes/*.conf

Here is the point. Modify it the way explained in previous message, like

#include sip_includes/*.conf

You should face the problem. And if you run it twice in a raw, it will
do nothing the second time.

Can you clarify this specific point? It's actually expected that if
nothing changes and you do a reload that nothing will happen. Just so
we're on the same page here...

It's 1.8.27 and 11.9.0 specific? I have in mind that if you do a reload
even without any change the reload will going on. Anyway, it make sense
to do nothing when there is no change. Please forget the "if you run it
twice in a raw" I wrote above.

Quote:

#1 Do you mean that you make a change, do a reload, and nothing happens.

OR

#2 That you make a change, do two reloads, and the second one does
nothing.

I was under the impression that #1 was going on.


#1 is the result of the bug related to the #include path
#2 you explain me that it's expected behavior, I don't have to focuse on it

--
Daniel

--
_____________________________________________________________________
-- 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
rnewton at digium.com
Guest





PostPosted: Wed May 07, 2014 11:54 am    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

On Wed, May 7, 2014 at 10:14 AM, Administrator TOOTAI <admin@tootai.net> wrote:
Quote:
Le 07/05/2014 16:50, Rusty Newton a écrit :

Quote:

I contructed a basic sip.conf, and added this line to the end:

#include /etc/asterisk/sip_includes/*.conf


Here is the point. Modify it the way explained in previous message, like

#include sip_includes/*.conf

You should face the problem. And if you run it twice in a raw, it will do
nothing the second time.

Unfortunately, no. I went ahead and tried this as well. I still get
working behavior even when using

#include sip_includes/*.conf


--
Rusty Newton
Digium, Inc. | Community Support Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
direct: +1 256 428 6200

Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- 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
admin at tootai.net
Guest





PostPosted: Wed May 07, 2014 1:00 pm    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

Le 07/05/2014 18:53, Rusty Newton a écrit :
Quote:
On Wed, May 7, 2014 at 10:14 AM, Administrator TOOTAI <admin@tootai.net> wrote:
Quote:
Le 07/05/2014 16:50, Rusty Newton a écrit :

Quote:
I contructed a basic sip.conf, and added this line to the end:

#include /etc/asterisk/sip_includes/*.conf

Here is the point. Modify it the way explained in previous message, like

#include sip_includes/*.conf

You should face the problem. And if you run it twice in a raw, it will do
nothing the second time.
Unfortunately, no. I went ahead and tried this as well. I still get
working behavior even when using

#include sip_includes/*.conf

Please try the includes *exactly* as I have them in sip.conf (same
directories name and subdirectories) knowing that local is in /etc/asterisk

sip.conf

[general]
context=default-SIP ; Default context for incoming calls
allowoverlap=no ; Disable overlap dialing support.
(Default is yes)
realm=sip2.tootai.net ; Realm for digest authentication
udpbindaddr=0.0.0.0 ; IP address to bind UDP listen socket
to (0.0.0.0 binds to all)
transport=udp
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
disallow=all ; First disallow all codecs
allow=g722 ; Allow codecs in order of preference
allow=ulaw
allow=alaw
allow=h264
allow=h263p
allow=h263
language=fr ; Default language setting for all
users/peers
useragent=TOOTAiAudio ; Allows you to change the user agent string
sdpsession=TOOTAiAudio PBX
videosupport=yes ; Turn on support for SIP video. You
need to turn this
alwaysauthreject = yes ; When an incoming INVITE or REGISTER is
to be rejected,
registerattempts=0 ; try for ever (default=10)
registertimeout=20 ; default

#include local/additional_sip-general.conf
#include local/additional_sip-register.conf

[authentication]

#include local/sip.d/*.conf

--
Daniel

--
_____________________________________________________________________
-- 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
rnewton at digium.com
Guest





PostPosted: Wed May 07, 2014 3:15 pm    Post subject: [asterisk-users] Reload problems with 1.8.27 and 11.9.0 - So Reply with quote

On Wed, May 7, 2014 at 12:59 PM, Administrator TOOTAI <admin@tootai.net> wrote:
Quote:


Please try the includes *exactly* as I have them in sip.conf (same
directories name and subdirectories) knowing that local is in /etc/asterisk


I used your identical config to narrow it down. I re-opened
https://issues.asterisk.org/jira/browse/ASTERISK-23683 and edited the
Summary and Description fields, as well as linked it an issue where
the fix for that issue *may* have introduced the problem you found.

Thanks!

--
Rusty Newton
Digium, Inc. | Community Support Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
direct: +1 256 428 6200

Check us out at: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- 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
Goto page Previous  1, 2
Page 2 of 2

 
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