ftocc

Interesting behavior on FreePBX "Apply Config"

SkykingOH
Posts: 3942
Member Since:
2007-12-17

Ok, all this talk about the .conf file caused me to start testing something.

I have an IAX2 trunk configuration working with a bare bones Asterisk build. I wanted to duplicate the configuration using FreePBX. The configuration uses registrations and dyamic hosts. I was trying to understand exactly what FreePBX was generating.

I was making rapid fire changes and deleted a registration string.

The string was gone from the iax_registrations.conf

Watching the remote server I was getting "no authority" errors from IAX. The registration was "stuck" in the message.

I had to start and stop Asterisk to clear this up. A simple iax2 reload did not work.

On another note, this is clearly my fault. After service asterisk stop and start I was unable to get to the asterisk cli. Asterisk -r returned:

Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

I tried amportal chown this did not fix it

I had to hard restart the box.

Interesting....

Scott

--

Scott

aka "Skyking"



ja133
Posts: 2186
Member Since:
2006-11-26
service asterisk restart

service asterisk restart does the same to me. What will work sometimes is this:

service asterisk restart
service zaptel restart
amportal restart

And then try asterisk -r. Worked for me a couple of times. Other than that, what happened to you is normal behavior



SkykingOH
Posts: 3942
Member Since:
2007-12-17
Quote: what happened to you
Quote:
what happened to you is normal behavior

Hopefully one of the Link guru's will give an explanation of why this happens. This would be a huge problem on a production box.

Scott

--

Scott

aka "Skyking"



ja133
Posts: 2186
Member Since:
2006-11-26
It's a big problem. But you

It's a big problem. But you know what, even though you can't do asterisk -r, asterisk and everything still works. So at the end of the day you can just reboot the server.
But this is what I do for now.

I'm away and I'm doing all this from my phone, so if you're a member of asterisk forums, can you put this in a trouble ticket? Otherwise I'll do it when I get back.



SkykingOH
Posts: 3942
Member Since:
2007-12-17
I can submit it however if

I can submit it however if you look at the history on the error if you even mention trix or FreePBX you usually don't get any traction.

If I can replicate the problem on an Asterisk only install then I can post over at Digium.

Scott

--

Scott

aka "Skyking"



ja133
Posts: 2186
Member Since:
2006-11-26
Let's work together on this

Let's work together on this issue. If I have time I'll set up a virtual machine and see what happens.
Please email me if you get anywhere before I do.



SkykingOH
Posts: 3942
Member Since:
2007-12-17
I am going to load Asterisk

I am going to load Asterisk on a running ubuntu box and see if it does the same thing.

Thanks for the help.

Scott

--

Scott

aka "Skyking"



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.