Community discussions

MikroTik App
 
User avatar
warwick09
Member Candidate
Member Candidate
Topic Author
Posts: 190
Joined: Mon Aug 07, 2006 1:34 pm
Location: The Bahamas / Florida

At wits end... need help (Asterisk/trixbox)

Sun Oct 08, 2006 9:19 am

(Sighs)...where to begin.

Scenerio..

Asterisk box on pulbic ip

Sip client within mikrotik natted network.

Apparently im unable to register via the sip protocol to my * box, Ive tried every possible /dst-nat/src-nat technique available but to no avail.... Any insight would be greatly appreciated.


(ps. Iax protocol works without any configuration....)

Details of network topology can be provided without hesitation....



:?
 
cabana
Frequent Visitor
Frequent Visitor
Posts: 71
Joined: Fri Feb 18, 2005 9:18 pm

Sun Oct 08, 2006 11:21 am

I have had no problems with that. I have an trixbox (asterisk) server on a public IP and have no problems connecting behind a Mikrotik.

Silly question, but did you enable the nat setting for your peers?

http://www.voip-forum.com/?p=131&more=1
 
User avatar
warwick09
Member Candidate
Member Candidate
Topic Author
Posts: 190
Joined: Mon Aug 07, 2006 1:34 pm
Location: The Bahamas / Florida

Sun Oct 08, 2006 1:54 pm

ah, finally got it sorted out..... (sniffed through modem's config....found the bastard snmp rule......)


nonetheless; much thanks to all that replied..... :)

8)
 
User avatar
warwick09
Member Candidate
Member Candidate
Topic Author
Posts: 190
Joined: Mon Aug 07, 2006 1:34 pm
Location: The Bahamas / Florida

Mon Oct 09, 2006 5:03 am

figured Id add this to aid those in need.....

When setting up an asterisk box that is outside the natted network it is imperative to add firewall rules that permit inbound/outbound traffic on udp ports 4000-5082 alonside udp ports 10000-50000, the latter is used for the voice stream whereas the initial is used for sip messaging (call signalling).....

Also it would be handy to add dst-nat/src-nat routes that point the aforementioned ports to the asterisk box.......


(my box setup)

3 nics (2 gig, 1 a/b/g card)

Nic one wan ( 30mbit outside connection *cable*)
Nic two: Lan (192.168.2.0/24....-254. Gateway 192.168.2.1, Dns 192.168.2.1 ....

Nic three wifi (192.168.5.0/24....-254. Gateway 192.168.2.1 Dns..192.168.2.1.....

Well the above are candid versions of the setup but I suppose you get the picture....

Another time saver would be to ensure the nat option in the sip.conf or sip_additonal.conf is set to either 1, or yes. I.e nat=yes. be sure to save, it doesnt occur automatically....
 
matt
Member Candidate
Member Candidate
Posts: 127
Joined: Thu Jan 27, 2005 9:29 am
Location: Canterbury, New Zealand
Contact:

Thu Oct 26, 2006 2:52 pm

Thank you warwick

Running TrixBox on External IP at the moment testing. It is so eazy and fun.

Just found your comment about setting nat=yes

SIP account had problem with receiving audio and connecting. Solved the issue.

Not really about MikroTik, about to put it behind firewall next.

Anyone should be able to install and run X-Lite softphone within 1 hr.

I dear you to...

http://asterisktutorials.com/showproduc ... roductID=5


Matt


PS: I do not know or associate with anyone marketing Trixbox etc
 
User avatar
eugenevdm
Member Candidate
Member Candidate
Posts: 208
Joined: Tue Jun 01, 2004 12:23 pm
Location: Stellenbosch, South Africa
Contact:

Wed May 09, 2007 12:38 am

Version 3 has SIP traversal and Mangle capabilities, this post is answered.