Smth wrong with Vlan and voip on RB1100

Hello

I have sip phones in office, connected to asterisk server, very basic sip user authentification.
phones directly attached to interface do work fine
phones in Vlan does not (time out while registering)


set [ find default-name=ether1 ] comment=WAN

set [ find default-name=ether6 ] comment=LANS
set [ find default-name=ether7 ] comment=“OFFICE”

/interface vlan

add interface=ether6 l2mtu=1594 name=Staff vlan-id=17
add interface=ether6 l2mtu=1594 name=vlan1 vlan-id=1
/ip pool
add name=VLAN1_0X ranges=192.168.1.30-192.168.1.160

add name=Staff ranges=192.168.20.30-192.168.20.40

/ip dhcp-server

add address-pool=Staff disabled=no interface=Staff lease-time=12h10m name=
Staff

/ip address
add address=192.168.1.254/24 interface=vlan1 network=192.168.1.0
add address=192.168.10.254/24 interface=ether7 network=192.168.10.0
add address=192.168.20.254/24 interface=Staff network=192.168.20.0

/ip dhcp-server network
add address=192.168.0.0/24 dns-server=192.168.0.202,8.8.8.8 gateway=
192.168.0.254
add address=192.168.1.0/24 dns-server=
192.168.0.202,213.157.196.132,87.253.32.131 gateway=192.168.1.254
add address=192.168.10.0/24 dns-server=
192.168.0.202,213.157.196.132,87.253.32.131 gateway=192.168.10.254
add address=192.168.20.0/24 dns-server=
192.168.0.202,213.157.196.132,87.253.32.131 gateway=192.168.20.254

/ip firewall filter
add chain=input
add chain=output log=yes log-prefix=-88
/ip firewall nat
add action=masquerade chain=srcnat

/ip route
add check-gateway=ping distance=1 gateway=WAN GW


whats wrong with it?

Have you set the VLAN id on the phones?

hello,

no I dont, because it goes via HP switch which handles vlans, (I do not separate voice and data vlans)

so, problem is somehow to phones attached through vlan-switch

the prones attached to non vlan interface work fine

Phones attached to non vlan? Do you mean directly to the RB1100??

OK, more clarification, my fault

Its a rb 2011, 5gb ports, 5 100mb ports.

so, I have 1 trunk port with vlans going to HP switch and connected to pc-s and phones.
I have other ether ports on Router connected to dumb switch and then phones on it

Phones without vlan switch (e.g. connected to non vlan port) works fine

softphones on PCs, connected to vlan network work fine
phones on vlan network, gets IP, works web fine but timeout on registering.


checked not problem of phones hardware or sip/password or any other 3rd party thing