Community discussions

MikroTik App
 
-headstrong-
Member
Member
Topic Author
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Routing SIP over separate ADSL line

Wed Oct 06, 2010 1:01 am

Hi Guys

I’m struggling to get SIP handsets to route via a separate ADSL line. I only want the SIP traffic to go over this specific ADSL Line

My client has a few SIP phones which authenticates directly to their upstream provider's SIP server.

The below is what I tried with no success:

/ip firewall mangle
add action=mark-connection chain=prerouting comment="SIP Connection" \
disabled=no dst-port=5060,16000-32000 new-connection-mark=SIP_CONNECTION \
passthrough=yes protocol=udp

add action=mark-routing chain=prerouting comment="SIP Route" connection-mark=\
SIP_CONNECTION disabled=no dst-port=5060,16000-32000 new-routing-mark=\
SIP_ROUTE passthrough=no protocol=udp

/ip firewall service-port
set ftp disabled=no ports=21
set tftp disabled=no ports=69
set irc disabled=no ports=6667
set h323 disabled=no
set sip disabled=no ports=5060,5061
set pptp disabled=no

I then routed over the respective ADSL account using the routing-mark=SIP_ROUTE

However, the above broke the VOIP

Where am I going wrong?

Thanks
 
rodolfo
Long time Member
Long time Member
Posts: 553
Joined: Sat Jul 05, 2008 11:50 am

Re: Routing SIP over separate ADSL line

Thu Oct 07, 2010 10:39 pm

you could use this:

/ip firewall mangle
add action=mark-routing chain=prerouting comment="SIP Route" \
disabled=no dst-port=5060,16000-32000 new-routing-mark=\
SIP_ROUTE passthrough=no protocol=udp
# why does you mark connections?

/ip firewall service-port
set sip disabled=yes
#dont use this helper: I had only problems

The main problem is that sip registration surely use tcp. with you config you register sip clients using gateway1 then the udp traffic use gateway2...
you need to mark routing also for this traffic
 
-headstrong-
Member
Member
Topic Author
Posts: 377
Joined: Thu Jun 05, 2008 8:04 pm
Location: South Africa

Re: Routing SIP over separate ADSL line

Sat Oct 09, 2010 12:20 pm

Thanks rodolfo

So you are saying that I do not need to mark connections first? Just mark routing immediately?

Why does the SIP NAT helper break the SIP?

Thanks
 
infidel
Frequent Visitor
Frequent Visitor
Posts: 83
Joined: Wed Oct 07, 2009 5:30 pm

Re: Routing SIP over separate ADSL line

Fri Nov 05, 2010 9:14 pm

Not exactly on topic but, couldn't you just get the sip server's ip and forward ALL trafic to that destination ip through the desired dsl connection?

Who is online

Users browsing this forum: tuiespacecorp and 4 guests