-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calls drop after 6 seconds #22
Comments
It seems like a problem in SDP connection. Try to use network_mode: host in
docker-compose file, but for this you will have to have all ports free in
your host machine (you said you have already a conflict with 3306 port).
Maybe this is due to NAT conflicts in your own network as well.
Hope this helps you!
Flávio Stutz
…On Thu, Jun 24, 2021 at 11:23 PM Jeff Lehman ***@***.***> wrote:
Hello!
Pretty sure it's a nat issue, but I can't figure out where...
I am spinning this up on Docker CE Version 20.10.7 on Ubuntu Server
20.04.2 LTS with docker-compose version 1.29.2.
I copied the example docker-compose in the readme and made minor tweaks to
fit my system:
version: '3.3'
services:
freepbx:
image: flaviostutz/freepbx:latest
container_name: freepbx
ports:
- 8080:80
- 5060:5060/udp
- 5160:5160/udp
- 3307:3306
- 18000-18100:18000-18100/udp
restart: always
environment:
- ADMIN_PASSWORD=admin1234
- USE_CHAN_SIP=true
- FAIL2BAN_ENABLE=false
- ENABLE_AUTO_RESTORE=true
volumes:
- /root/docker-configs/freepbx/backup:/backup
- /root/docker-configs/freepbx/recordings:/var/spool/asterisk/monitor
I had to bump the 3306:3306 binding to 3307:3306 because I have a MySQL
container already ready on 3306 on this box for the rest of my network and
it conflicted.
I created folder volumes on the drive because of how I have my backup
plans set and other containers needed an actual folder that i have running
so I am not using internal Docker volumes.
So here is what I have happening. Spins up fine. I am able to setup the
server, create extensions and have 2 softphones register to those
extensions.
When I try to make a call, the call just drops after 6 seconds with no
audio.
In the past when I had this issue, it was usually a NAT issue somewhere
so...
I checked the NAT mode settings on the extensions, and they are set to Yes
- (force_rpot,comedia) like i have needed to in the past.
Looked at Settings -> Asterisk SIP Settings - > General Settings:
Allow SIP Guests No
Detect Network Settings Button to get external IP
local networks: Added 10.0.0.0/24 (which is my home network) and
172.0.0.0/24 (the internal network docker created for this stack)
Looked at Settings -> Asterisk SIP Settings - > SIP Legacy Settings:
NAT yes
IP Configuration Static IP
Override External IP is grayed and show my external IP (which it should)
and nothing.... The calls still drop....
Tried to run the container in network_mode: host
the container lasts for about 30 seconds and then tries to restart. More
then likely this is because it's trying to spin up it's internal MySQL
server on 3306 but this is just a guess...
So not sure where to proceed from here. I would love to get this working
since I finally have the hardware to do it and get my existing Home Freepbx
off an Rpi I have had it running on to free it up for another project.
Thanks for any assistance....
Jeff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#22>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3N4XC2ZBDQAYY5M5E2DULTUPSBFANCNFSM47I7535Q>
.
|
OK so I took MySQL down and spun up the FPBX container... It stays alive, but without the 8080 port binding I can't get to the admin screen because I am already running a Web Server on 80 on this box.... At this point, I think I am going to move the whole shooting match to a different box I have sitting here and see if I can get it working there in Docker. I will report back once i have that done and seeing what happens... Thanks for getting back to me! I appreciate it! |
Great!
…Sent from my iPhone
On 25 Jun 2021, at 12:32, Jeff Lehman ***@***.***> wrote:
OK so I took MySQL down and spun up the FPBX container... It stays alive, but without the 8080 port binding I can't get to the admin screen because I am already running a Web Server on 80 on this box....
At this point, I think I am going to move the whole shooting match to a different box I have sitting here and see if I can get it working there in Docker. I will report back once i have that done and seeing what happens...
Thanks for getting back to me! I appreciate it!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
OK I moved it to another box and it works. Calls don't drop and audio passes fine. I have it running on network mode host. Looks like it's something with that box and probably the fact I have MySQL running there too. Either way.. looks good. I can use this box and install other things on it too so.. Thanks again for your help! |
Great to here! Please close the issue if it is ok now!
…Sent from my iPhone
On 25 Jun 2021, at 14:43, Jeff Lehman ***@***.***> wrote:
OK I moved it to another box and it works. Calls don't drop and audio passes fine. I have it running on network mode host. Looks like it's something with that box and probably the fact I have MySQL running there too.
Either way.. looks good. I can use this box and install other things on it too so..
Thanks again for your help!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Oh sorry thought i had... :) Done :) |
Hello!
Pretty sure it's a nat issue, but I can't figure out where...
I am spinning this up on Docker CE Version 20.10.7 on Ubuntu Server 20.04.2 LTS with docker-compose version 1.29.2.
I copied the example docker-compose in the readme and made minor tweaks to fit my system:
version: '3.3'
services:
freepbx:
image: flaviostutz/freepbx:latest
container_name: freepbx
ports:
- 8080:80
- 5060:5060/udp
- 5160:5160/udp
- 3307:3306
- 18000-18100:18000-18100/udp
restart: always
environment:
- ADMIN_PASSWORD=admin1234
- USE_CHAN_SIP=true
- FAIL2BAN_ENABLE=false
- ENABLE_AUTO_RESTORE=true
volumes:
- /root/docker-configs/freepbx/backup:/backup
- /root/docker-configs/freepbx/recordings:/var/spool/asterisk/monitor
I had to bump the 3306:3306 binding to 3307:3306 because I have a MySQL container already ready on 3306 on this box for the rest of my network and it conflicted.
I created folder volumes on the drive because of how I have my backup plans set and other containers needed an actual folder that i have running so I am not using internal Docker volumes.
So here is what I have happening. Spins up fine. I am able to setup the server, create extensions and have 2 softphones register to those extensions.
When I try to make a call, the call just drops after 6 seconds with no audio.
In the past when I had this issue, it was usually a NAT issue somewhere so...
I checked the NAT mode settings on the extensions, and they are set to Yes - (force_rpot,comedia) like i have needed to in the past.
Looked at Settings -> Asterisk SIP Settings - > General Settings:
Allow SIP Guests No
Detect Network Settings Button to get external IP
local networks: Added 10.0.0.0/24 (which is my home network) and 172.0.0.0/24 (the internal network docker created for this stack)
Looked at Settings -> Asterisk SIP Settings - > SIP Legacy Settings:
NAT yes
IP Configuration Static IP
Override External IP is grayed and show my external IP (which it should)
and nothing.... The calls still drop....
Tried to run the container in network_mode: host
the container lasts for about 30 seconds and then tries to restart. More then likely this is because it's trying to spin up it's internal MySQL server on 3306 but this is just a guess...
So not sure where to proceed from here. I would love to get this working since I finally have the hardware to do it and get my existing Home Freepbx off an Rpi I have had it running on to free it up for another project.
Thanks for any assistance....
Jeff
The text was updated successfully, but these errors were encountered: