Koozali.org: home of the SME Server

Asterisk@ Home behind SME with Port forwards, help ?

Offline Drifting

  • *****
  • 431
  • +0/-0
Asterisk@ Home behind SME with Port forwards, help ?
« on: January 07, 2006, 12:29:28 PM »
Below are the ports I have forward to my A@H box, all I am trying to achive at the moment is to get a remote extension to talk back over the net. I have managed to initiate an outgoing call, they can hear me, but I don't hear a word from them!

I assume that I may have something missing, but no idea, trying to track down exactly what is not working is driving me nuts. I have made entries for NAT and local lan on the A@H box as suggested in the Wiki for A@H in sip.conf but am getting nowhere.

I am not a wizz on Linux, and have been reading up on Nmap, so far it seems that the port 5060 is not open on my box? but is this dynamic? or have I just not understood Nmap.

Protocol Source Port(s) Destination Host IP Address Destination Port(s) Action
UDP 5004-5082 10.0.0.123 5004-5082  
UDP 8000-8003 10.0.0.123 8000-8003  
UDP 4569 10.0.0.123 4569  
UDP 10000-20000 10.0.0.123 10000-20000  
UDP 2000-3000 10.0.0.123 2000-3000
Infamy, Infamy, they all have it in for me!

Offline Drifting

  • *****
  • 431
  • +0/-0
Asterisk@ Home behind SME with Port forwards, help ?
« Reply #1 on: January 07, 2006, 01:08:45 PM »
Found the following:-
http://siproxd.sourceforge.net/

Would this solve the problems?
Infamy, Infamy, they all have it in for me!

Offline RvLardin

  • ****
  • 82
  • +0/-0
    • http://sme.firewall-services.com
Asterisk@ Home behind SME with Port forwards, help ?
« Reply #2 on: January 07, 2006, 01:17:51 PM »
The reason of your pb is that the SIP protocol can't be natted nor portforwarded, you must use a 'SIP proxy' as a gateway for your lan. The WRT54G with the adequate firmware could be a good idea, placing your SME Se'rver&Gateway behind, in 'DMZ', as your A@H server.

The other solution, is to use our A@H contrib for SME, that you can find at http://firewall-services.com. It's designed for the SME7 version.

We won't refuse a little help for documentation, fine tuning, test of different phone service provider's ...

At least, installing our contrib will transform your SME to a SIP proxy, convenient for your existing A@H box.

The other solution is to use the AIX protocol wich is ok for natting & portforwarding.

Hope this helps,
RV.[/b]
----
"Those who are willing to lose some of their essential liberties in favour of security deserve neither and will lose both."
- Thomas Jefferson .

Offline Drifting

  • *****
  • 431
  • +0/-0
Asterisk@ Home behind SME with Port forwards, help ?
« Reply #3 on: January 07, 2006, 03:37:34 PM »
Thanks ever so much, I will go off and get SME7 and try your Contrib. Mor e than happy to help any way I can.

Regards Paul.
Infamy, Infamy, they all have it in for me!

Offline Drifting

  • *****
  • 431
  • +0/-0
WEll the install of SME Asterisk failed?
« Reply #4 on: January 07, 2006, 06:37:51 PM »
Here is a snip fo the logs that I managed to catch

/var/lib/asterisk/sounds/ha/amps.gsm
/var/lib/asterisk/sounds/ha/foyer.gsm
/var/lib/asterisk/sounds/ha/security-system.gsm
/var/lib/asterisk/sounds/ha/quiet-mode.gsm
/var/lib/asterisk/sounds/ha/doors.gsm
/var/lib/asterisk/sounds/ha/down.gsm
/var/lib/asterisk/sounds/ha/heating.gsm
/var/lib/asterisk/sounds/ha/basement.gsm
/var/lib/asterisk/sounds/ha/unlocking.gsm
/var/lib/asterisk/sounds/ha/rooms.gsm
/var/lib/asterisk/sounds/ha/second-floor.gsm
/var/lib/asterisk/sounds/ha/has-been-left.gsm
/var/lib/asterisk/sounds/ha/for-wx-report.gsm
/var/lib/asterisk/sounds/ha/volts.gsm
/var/lib/asterisk/sounds/ha/ohm.gsm
/var/lib/asterisk/sounds/ha/farad.gsm
/var/lib/asterisk/sounds/ha/master.gsm
/var/lib/asterisk/sounds/ha/well-pump.gsm
/var/lib/asterisk/sounds/ha/still.gsm
/var/lib/asterisk/sounds/ha/degree.gsm
/var/lib/asterisk/sounds/ha/pool.gsm
/var/lib/asterisk/sounds/ha/baby-sleeping-mode.gsm
/var/lib/asterisk/sounds/ha/door.gsm
/var/lib/asterisk/sounds/ha/guest-room.gsm
/var/lib/asterisk/sounds/ha/up.gsm
/var/lib/asterisk/sounds/ha/great-room.gsm
/var/lib/asterisk/sounds/ha/window.gsm
/var/lib/asterisk/sounds/ha/bright.gsm
/var/lib/asterisk/sounds/ha/xmas-tree.gsm
/var/lib/asterisk/sounds/ha/lamp.gsm
/var/lib/asterisk/sounds/ha/callerid.gsm
/var/lib/asterisk/sounds/ha/power-failure.gsm
/var/lib/asterisk/sounds/ha/to-control-environ-sys.gsm
/var/lib/asterisk/sounds/ha/ac.gsm
/var/lib/asterisk/sounds/ha/set.gsm
/var/lib/asterisk/sounds/ha/deck.gsm
/var/lib/asterisk/sounds/ha/carport.gsm
/var/lib/asterisk/sounds/ha/yard.gsm
/var/lib/asterisk/sounds/ha/system.gsm
/var/lib/asterisk/sounds/ha/thermostat.gsm
/var/lib/asterisk/sounds/ha/open.gsm
/var/lib/asterisk/sounds/ha/bedroom.gsm
/var/lib/asterisk/sounds/ha/unlocked.gsm
/var/lib/asterisk/sounds/ha/decibels.gsm
/var/lib/asterisk/sounds/ha/mailbox.gsm
/var/lib/asterisk/sounds/ha/dim.gsm
/var/lib/asterisk/sounds/ha/office.gsm
/var/lib/asterisk/sounds/ha/fan.gsm
/var/lib/asterisk/sounds/ha/driveway.gsm
/var/lib/asterisk/sounds/ha/room.gsm
/var/lib/asterisk/sounds/ha/water-heater.gsm
/var/lib/asterisk/sounds/ha/dryer.gsm
/var/lib/asterisk/sounds/ha/amp.gsm
/var/lib/asterisk/sounds/ha/psi.gsm
/var/lib/asterisk/sounds/ha/attic.gsm
/var/lib/asterisk/sounds/ha/dining-room.gsm
/var/lib/asterisk/sounds/ha/air-conditioner.gsm
/var/lib/asterisk/sounds/ha/kelvin.gsm
/var/lib/asterisk/sounds/ha/phone.gsm
/var/lib/asterisk/sounds/ha/washing-machine.gsm
/var/lib/asterisk/sounds/ha/den.gsm
/var/lib/asterisk/sounds/ha/systems.gsm
/var/lib/asterisk/sounds/ha/kitchen.gsm
/var/lib/asterisk/sounds/ha/xmas-lights.gsm
/var/lib/asterisk/sounds/ha/front.gsm
/var/lib/asterisk/sounds/ha/fountain.gsm
/var/lib/asterisk/sounds/ha/to-control-lights-appl.gsm
/var/lib/asterisk/sounds/ha/library.gsm
/var/lib/asterisk/sounds/ha/heat-pump.gsm
/var/lib/asterisk/sounds/ha/degrees.gsm
/var/lib/asterisk/sounds/ha/coffee-pot.gsm
/var/lib/asterisk/sounds/ha/back.gsm
/var/lib/asterisk/sounds/ha/sprinklers.gsm
/var/lib/asterisk/sounds/ha/closet.gsm
/var/lib/asterisk/sounds/ha/sump-pump.gsm
/var/lib/asterisk/sounds/ha/reset.gsm
/var/lib/asterisk/sounds/ha/floors.gsm
/var/lib/asterisk/sounds/ha/bathroom.gsm
/var/lib/asterisk/sounds/ha/lights.gsm
/var/lib/asterisk/sounds/ha/secure.gsm
/var/lib/asterisk/sounds/ha/decibel.gsm
/var/lib/asterisk/sounds/ha/furnace.gsm
/var/lib/asterisk/sounds/ha/for-quick-status-report.gsm
/var/lib/asterisk/sounds/ha/first-floor.gsm
/var/lib/asterisk/sounds/chris.gsm
/var/lib/asterisk/sounds/queue-holdtime.gsm
/var/lib/asterisk/sounds/twentieth.gsm
/var/lib/asterisk/sounds/time.gsm
/var/lib/asterisk/sounds/sixtieth.gsm
/var/lib/asterisk/sounds/otherwise-press.gsm
/var/lib/asterisk/sounds/to-call-this-number.gsm
/var/lib/asterisk/sounds/good.gsm
/var/lib/asterisk/sounds/say-temp-msg-prs-pound.gsm
/var/lib/asterisk/sounds/seventh.gsm
/var/lib/asterisk/sounds/dash.gsm
/var/lib/asterisk/sounds/misty.gsm
/var/lib/asterisk/sounds/perhaps-we-are.gsm
/var/lib/asterisk/sounds/thirteenth.gsm
/var/lib/asterisk/sounds/knots.gsm
/var/lib/asterisk/sounds/to-hear-menu-again.gsm
/var/lib/asterisk/sounds/quote.gsm
/var/lib/asterisk/sounds/in-the-line.gsm
/var/lib/asterisk/sounds/hurricane.gsm
/var/lib/asterisk/sounds/letters/
/var/lib/asterisk/sounds/letters/x.gsm
/var/lib/asterisk/sounds/letters/a.gsm
/var/lib/asterisk/sounds/letters/c.gsm
/var/lib/asterisk/sounds/letters/t.gsm
/var/lib/asterisk/sounds/letters/e.gsm
/var/lib/asterisk/sounds/letters/o.gsm
/var/lib/asterisk/sounds/letters/h.gsm
/var/lib/asterisk/sounds/letters/u.gsm
/var/lib/asterisk/sounds/letters/j.gsm
/var/lib/asterisk/sounds/letters/z.gsm
/var/lib/asterisk/sounds/letters/k.gsm
/var/lib/asterisk/sounds/letters/s.gsm
/var/lib/asterisk/sounds/letters/r.gsm
/var/lib/asterisk/sounds/letters/y.gsm
/var/lib/asterisk/sounds/letters/m.gsm
/var/lib/asterisk/sounds/letters/f.gsm
/var/lib/asterisk/sounds/letters/b.gsm
/var/lib/asterisk/sounds/letters/d.gsm
/var/lib/asterisk/sounds/letters/g.gsm
/var/lib/asterisk/sounds/letters/n.gsm
/var/lib/asterisk/sounds/letters/i.gsm
/var/lib/asterisk/sounds/letters/v.gsm
/var/lib/asterisk/sounds/letters/l.gsm
/var/lib/asterisk/sounds/letters/zed.gsm
/var/lib/asterisk/sounds/letters/q.gsm
/var/lib/asterisk/sounds/letters/p.gsm
/var/lib/asterisk/sounds/letters/w.gsm
/var/lib/asterisk/sounds/eighteenth.gsm
/var/lib/asterisk/sounds/close-parenthesis.gsm
/var/lib/asterisk/sounds/weather-station.gsm
/var/lib/asterisk/sounds/conditions.gsm
/var/lib/asterisk/sounds/busy-pls-hold.gsm
/var/lib/asterisk/sounds/ed.gsm
/var/lib/asterisk/sounds/away-naughty-boy.gsm
/var/lib/asterisk/sounds/is-not-set.gsm
/var/lib/asterisk/sounds/watch.gsm
/var/lib/asterisk/sounds/to-cancel-this-msg.gsm
/var/lib/asterisk/sounds/twelveth.gsm
/var/lib/asterisk/sounds/the-monkeys-twice.gsm
/var/lib/asterisk/sounds/warning.gsm
/var/lib/asterisk/sounds/central.gsm
/var/lib/asterisk/moh-native/
/var/lib/asterisk/moh-native/fpm-world-mix.pcm
/var/lib/asterisk/moh-native/fpm-sunshine.pcm
/var/lib/asterisk/moh-native/fpm-calm-river.pcm
/var/lib/asterisk/.bash_profile
/var/lib/asterisk/bin/
/var/lib/asterisk/bin/archive_recordings
/var/lib/asterisk/bin/php-asmanager.php
/var/lib/asterisk/bin/ampbackup.pl
/var/lib/asterisk/bin/retrieve_backup_cron_from_mysql.pl
/var/lib/asterisk/mohmp3/
/var/lib/asterisk/mohmp3/QuajiroPromo.mp3
/var/lib/asterisk/mohmp3/TristeAlegriaPromo.mp3
/var/spool/asterisk/
/var/spool/asterisk/fax/
/var/spool/asterisk/fax/fax.call
/var/spool/asterisk/monitor/
/var/spool/asterisk/monitor/.wav
tar: /var/lib/asterisk/sounds/custom/*: Cannot stat: No such file or directory
/var/www/html/panel/op_astdb.cfg
/var/www/html/panel/op_buttons_additional.cfg
/var/www/html/panel/op_buttons.cfg
/var/www/html/panel/op_buttons_custom.cfg
/var/www/html/panel/op_lang_de.cfg
/var/www/html/panel/op_lang_en.cfg
/var/www/html/panel/op_lang_es.cfg
/var/www/html/panel/op_lang_it.cfg
/var/www/html/panel/op_server.cfg
/var/www/html/panel/op_style.cfg
/tmp/backup.sql
tar: Error exit delayed from previous errors
Done.
-------------------------------------------
Auto-config Hardware
-------------------------------------------


STOPPING ASTERISK

STOPPING FOP SERVER
Generating  '/etc/zaptel.conf'
Generating  '/etc/asterisk/zapata-auto.conf'
mv: cannot stat /etc/asterisk/zapata-auto.conf': No such file or directory
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'

1 error(s) detected

Unloading zaptel hardware drivers:.
Removing zaptel module:  ERROR: Module zaptel does not exist in /proc/modules
                                                           [FAILED]
Loading zaptel framework:  FATAL: Module zaptel not found.
                                                           [FAILED]
Waiting for zap to come online...Error: missing /dev/zap!

SETTING FILE PERMISSIONS
chown: cannot access /var/log/asterisk': No such file or directory
chown: cannot access /dev/zap': No such file or directory
Permissions OK

STARTING ASTERISK
/usr/sbin/amportal: line 82: /usr/sbin/safe_asterisk: No such file or directory
safe_asterisk: no process killed
mpg123: no process killed

-----------------------------------------------------
Asterisk could not start!
Use 'tail /var/log/asterisk/full' to find out why.
-----------------------------------------------------
/usr/local/sbin/ast-cmd: line 111: /usr/sbin/asterisk: No such file or directory
** Cleanup done.
-------------------------------------------
Installation done.
Infamy, Infamy, they all have it in for me!

Offline Drifting

  • *****
  • 431
  • +0/-0
ARGH !! Just found the other thread!
« Reply #5 on: January 07, 2006, 07:31:57 PM »
So i take it that it that the SME / A@H can only be used in server only mode? Or has that changed? Could not find any documentation on requirements. I see little point of the contrib for me in this instance as I wanted the thing behind a firewall.

Oh well looks like another format and clean install of A@H on it's own, without SME. Shame as this seemed to me an ideal solution.

Paul.
Infamy, Infamy, they all have it in for me!

Offline arne

  • *****
  • 1,116
  • +0/-4
Asterisk@ Home behind SME with Port forwards, help ?
« Reply #6 on: January 09, 2006, 01:09:17 PM »
"The reason of your pb is that the SIP protocol can't be natted nor portforwarded, you must use a 'SIP proxy' as a gateway for your lan. "


OH, yes it can.

I use a Asterisk server behind a nat router. Both the sip and the iax protocol works fine trough the nat router.

It also works ok with two nat routers, one in each end, with both the sip client and the sip server behind a nat router.

Not all routers support sip telephony. Most new nat routers does.

A standard Linux gateway with the correct forwarding will normally support sip telephony (at least this is true for the Centos 4 gateway I just set up at a place just reasently.)
......

Offline arne

  • *****
  • 1,116
  • +0/-4
Asterisk@ Home behind SME with Port forwards, help ?
« Reply #7 on: January 09, 2006, 01:31:42 PM »
I did some testing on a@H@SME and it worked wery well. I think I did run it in gateway mode and as server only for testing purposes, but I can not remeber that for sure. (But I'm reasonable sure I did).

Problem: The a@h@sme is a very complicated server installation. (But with exelent properties and functionalyties when it works.)

When A@H and the SME 7.x i changing revisions quicly, it will be very difficult to keep a track on all those changes, without conflicts.

I hope the A@H@SME will come more strong back again when things have more stabilised.
......