dougbtv / docker-asterisk

Some dockerfiles for whipping up an asterisk server
283 stars 135 forks source link

Are there any way to expose SIP ports #60

Closed byteshiva closed 7 years ago

byteshiva commented 7 years ago

Are there any way to expose SIP ports for asterisk docker.

>     -p "11000:10000" \
>     -p "11000:10000/udp" \
>     -p "16384-16484:16384-16484/udp" \
>     -p "8021:8021" \
>     -p "8031:8031" \
dougbtv commented 7 years ago

you mean like -p 5060:5060/udp that should do it.

or --net=host to "expose everything"

byteshiva commented 7 years ago

I think --net=host will suffice my requirement

byteshiva commented 7 years ago

I did execute the following command ... but its not exposing port 5080 Instead I see port 8088 opened.

8088/tcp open  radan-http
docker run --name somename-asterisk1 --net=host -d -t dougbtv/asterisk14:latest
byteshiva commented 7 years ago

I'm not able to open web interface via por 8088

image

dougbtv commented 7 years ago

8088 is used in this context for push configuration using sourcery

On Fri, Mar 17, 2017, 2:54 PM Siva notifications@github.com wrote:

I'm not able to open web interface via por 8088

[image: image] https://cloud.githubusercontent.com/assets/10637299/24058484/330077e0-0b71-11e7-84fa-3c62f9b33ca0.png

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/dougbtv/docker-asterisk/issues/60#issuecomment-287442073, or mute the thread https://github.com/notifications/unsubscribe-auth/AFN_vSz2_Af63eVanebqIEXJODAibOaNks5rmtb6gaJpZM4Mg5vL .

dougbtv commented 7 years ago

see http.conf in /etc/asterisk

On Fri, Mar 17, 2017, 3:32 PM Doug Smith douglaskippsmith@gmail.com wrote:

8088 is used in this context for push configuration using sourcery

On Fri, Mar 17, 2017, 2:54 PM Siva notifications@github.com wrote:

I'm not able to open web interface via por 8088

[image: image] https://cloud.githubusercontent.com/assets/10637299/24058484/330077e0-0b71-11e7-84fa-3c62f9b33ca0.png

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/dougbtv/docker-asterisk/issues/60#issuecomment-287442073, or mute the thread https://github.com/notifications/unsubscribe-auth/AFN_vSz2_Af63eVanebqIEXJODAibOaNks5rmtb6gaJpZM4Mg5vL .

byteshiva commented 7 years ago

how do i open port 5060 in docker-asterisks, are there any configuration that I need to enable?

dougbtv commented 7 years ago

Read the .travis.yml to see exactly how it's tested (it makes a test call over port 5060). Host networking will do it as mentioned earlier.

On Sat, Mar 18, 2017, 2:36 PM Siva notifications@github.com wrote:

how do i open port 5060 in docker-asterisks, are there any configuration that I need to enable?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/dougbtv/docker-asterisk/issues/60#issuecomment-287565723, or mute the thread https://github.com/notifications/unsubscribe-auth/AFN_va_f2hU2jDreHV95aD3cCQ9pODx1ks5rnCQ-gaJpZM4Mg5vL .