Another SIP (Gigaset C610 A IP) is not registering with RB1100AHx2

The base of voip phone is connected to a subnet 192.168.1.0, and his IP is 192.168.1.22

The connection settings for the voip phone are:
https://www.messagenet.com/it/images/voiphw/c450ip_web.gif

In my mikrotik i have tried everything that i have read on this forum about SIP.

I have tried a complicated script for packet mark and prioritizing too… but… my phone not register to the voip provider…

It is so weird that a so simple thing not work!!

I’m inspecting connections, there is a little traffic from the UDP 5060 and 5061 port related to SIP registration… but it fails ever…

I’ve tried to set the voip phone with dynamic ip or static ip too, tried to make static in DHCP Leases, etc etc…

Now i’m desperate!
See here:
sip-mikrotik.PNG
Is it correct that the connection works in this manner?
The ip that start with 77.89.xx.xx is the dedicated IP from internet WAN.

Why ports are changing? Voip provider require 5061 in settings, why i see 5060 in connection?

Please, help a newbie :smiley:

Voip registrations would use very little data. Your phone is sending and receiving on port 5060, voip provider is sending and receiving on port 5061. That’s why you see two ports in the connection info window. That’s ok.

Your settings look correct. Next step in troubleshooting is to go to Tools > Packet Sniffer and capture packets (and save it to a file on the Mikrotik). You can filter by your device IP or voip server ip. After some packets are captured, stop the capture view the capture file in Wireshark. Or post the capture file on this forum. Maybe the server is replying with an error message.

I’d suggest disabling the SIP helper, and as mentioned above grab a packet trace, ideally from the LAN and WAN side of your router.

Im happy to take a look.

Ether3 is the lan port for the subnet 192.168.1.0/24
“LAN” is a bridge.
This is the packet sniff for all interfaces:
packet-sniff-eth.PNG
This is a packet sniff for the ip of gigaset (only ether3)
packet-sniff-all.PNG
I don’t see traffic for the eth1 that is the WAN port, is it normal?

Did you already disable the SIP helper?

Yes, the helper is disabled!

i see this strange thing in packet sniffing with WireShark

26 27.731126 213.174.160.1 192.168.1.22 DNS 139 Standard query response 0x3a5f No such name SRV _sip._tcp.sip.messagenet.it SOA dns1.messagenet.it

Does the mikrotik router have the public IP itself, or is connected to the provider router through a private address WAN on the Mikrotik?

That packet indicates the phone is asking for a SRV type DNS record for _sip._tcp.sip.messagenet.it, which doesn’t exist. These SRV DNS records are often used by SIP equipment for dynamic configuration of sip server ip address and port when “auto” or stun/proxy server settings are used.

Do you control such DNS server?

This query is most likely triggered on the C610 by the proxy setting. Have you tried setting it up for a “direct” connection with no proxy setting, i.e. just the server and port?

Are you using fasttrack?

We have a router from fiber connection provider that we can’t touch, so a lan cable is connected to the mikrotik.

In Mikrotik we have set ip, subnet, gateway and dns that the provider of fiber connection give us.

That packet indicates the phone is asking for a SRV type DNS record for _sip._tcp.sip.messagenet.it, which doesn’t exist. These SRV DNS records are often used by SIP equipment for dynamic configuration of sip server ip address and port when “auto” or stun/proxy server settings are used.

Do you control such DNS server?

messagenet.it is voip provider, and i have a gigaset with this settings
ConnessioniC610A_IP.png
Configurazione-IP_C610A-IP.png

This query is most likely triggered on the C610 by the proxy setting. Have you tried setting it up for a “direct” connection with no proxy setting, i.e. just the server and port?

Are you using fasttrack?

I have tried with proxy outbound on “never”, no luck!

No, i’m not using fasttrack, i don’t know what it is :frowning:

What I am trying to determine is if the C610 → SIP server passes double or multiple NAT stages, as that will give you problems with SIP.

What is the IP of the mikrotik router interface connected to the fiber router?

In this posts you see a little overview of my settings…

http://forum.mikrotik.com/t/rb-1100ahx2-newbie-how-to-access-internet-from-all-eht-ports-i-have-one-wan/95262/1

PS: how can i export from winbox/webfig an overview of my setting, without doing screeshots?

Saw it, but crucial settings are missing, not sure if your WAN is 77.89.x.x is as the in-interface is the LAN bridge…

Is that your public ip? is your fiber router in bridge mode?

To generate an export of the whole config, open a New Terminal and issue:

/export hide-sensitive

So you can copy & paste here into code blocks.

Thanks for the command hint!!

An attachment is good :slight_smile: too much indexable data!

It may cause issues, but the SIP provider should have NAT traversal in place that can work around these issues.

Please can you post a proper .pcap packet capture?

Thanks

@simbus82:

/interface bridge port
add bridge=LAN horizon=1 interface="ether1 - Acantho"
add bridge=LAN horizon=1 interface="ether3 - quantility"
add bridge=LAN horizon=1 interface="ether4 - mido"
add bridge=LAN horizon=1 interface="ether5 - brini"

/ip address
add address=192.168.88.1/24 comment="default configuration" interface="ether2 - admin" network=192.168.88.0
add address=77.89.x.106/30 comment="WAN Acantho" interface="ether1 - Acantho" network=77.89.x.104
add address=192.168.1.1/24 comment="IP Quantility" interface=LAN network=192.168.1.0
add address=192.168.2.1/24 comment="IP mido" interface=LAN network=192.168.2.0
add address=192.168.3.1/24 comment="IP Brini" interface=LAN network=192.168.3.0
add address=192.168.4.1/24 comment="IP Obst" interface=LAN network=192.168.4.0

You have the WAN IP assigned to ether1, and that same interface added to the LAN bridge where you assigned private ips “on top”.

When adding interfaces to bridges, IPs, services, etc should be assigned to the bridge, not to individual interfaces as this can lead to unpredictable behaviour.

On top of that you used same bridge horizon values for the interfaces in the bridge, then used the firewall…

To firewall in Layer3, wan ether port shouldn’t be on the same L2 segment as the LAN ports.

What do you exactly want to achieve with such configuration?

Try removing ether1 from LAN bridge, and reboot. Does the phone register now?

I’d cleanup your configuration following best practices:

1.- Isolate WAN port (remove it form the bridge)
2.- If you want to serve different network segments:

  • delete the LAN bridge
  • Assign IP addresses on each ether port
    3.- Create a multiple DHCP server instances, on top of each interface, so that you can control each dhcp server individually depending on network.
    4.- (If you want all the networks to reach the internet) change the firewall masquerade rule to
/ip firewall nat
add action=masquerade chain=srcnat out-interface="ether1 - Acantho"

More isolated subnets (one for office) that can access internet :slight_smile: you see here what i want to obtain
http://forum.mikrotik.com/t/rb-1100ahx2-newbie-how-to-access-internet-from-all-eht-ports-i-have-one-wan/95262/1

I have only followed pieces of information that i have read in this forum and in the wiki.

Try removing ether1 from LAN bridge, and reboot. Does the phone register now?

Did you mean removing the “port” ether1 from LAN bridge? Right?

I’d cleanup your configuration following best practices:

1.- Isolate WAN port (remove it form the bridge)
2.- If you want to serve different network segments:

  • delete the LAN bridge
  • Assign IP addresses on each ether port
    3.- Create a multiple DHCP server instances, on top of each interface, so that you can control each dhcp server individually depending on network.
    4.- (If you want all the networks to reach the internet) change the firewall masquerade rule to

/ip firewall nat
add action=masquerade chain=srcnat out-interface=“ether1 - Acantho”

>

So, i have do all things wrong :frowning:

I will wait that our office is empty and the i will try!

thanks!!

PS: if in one interface (for example ether3) i want two subnets because i have a wifi accesspoint that can handle multiple ssid and vlan?

Ok, i have “re-configured” my network! Lot of thanks to you, the network is working very well and configuration is more clean and simple! :smiley:

I have added an Hairpin Nat for two internal webserver (192.168.1.150 and 192.168.1.63), all is working!

But… Sip is not registering! :frowning:


Here my new settings:
new-config.txt

Here a test, thanks!
test_4.pcap.txt

This appears to be from the LAN side only, do you also have a trace from the WAN side? I can see your device is sending REGISTER requests but doesn’t receive a response.

This could be because your provider is not implementing NAT traversal and the responses are going back to 192.168.1.22, or it could be that your F/W is blocking the responses.

A WAN side SIP trace should indicate what’s going on.

Which setting i have to use for do this trace correctly?