Routing SIP over separate ADSL line

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

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

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

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?