Hi Mikrotikkers,
Bit of a curly one with NAT and IAX2. We have just taken on a client and they we’re having issues with voice quality over their Data Connection. Originally they had two connections with the real IP being directly attached to their asterisk box onsite. We wanted to provide some redundancy over the DSL for voice and better QoS / monitoring of the Voice & Data lines.
Client has two connections, 1x DSL for DATA and 1xWireless for VOIP. We have installed an RB450G to do mangling, traffic priority and split up voice and data. Their QoS is much better now and they are happy about call quality.. but during this process we’ve introduced NAT to their VOIP server (onsite) and it is swapping peers with its other servers causing calls to drop half way through or depending on peer associated to not accept incoming calls.
We’ve setup a static route to the known Voice exchanges via the wireless link.
We’ve setup SRC-NAT and DST-NAT for all incoming/outgoing traffic over the Wireless (voice) interface.
What we see is it will register a couple of peers, then timeout drop them and register the other two. This will continue every few minutes or so back and forth. I’ve read a little bit about consistent NAT and port swapping causing SIP calls to drop but understood that IAX2 was immune to some of the NAT traversal issues we see with SIP.
\
- How do I implement Consistent NAT with Mikrotik (if this is an issue)?
- Any suggestions on getting this to work behind the NAT’d interface.
- We also see this with Ping & SSH. Connectivity comes and goes, depending on the routers mood.
At the moment we just NAT both ways and it feels like a connection state issue. But I’m not a mad routing guru. Any thoughts?
Here is a sample of the Asterisk Log
Mar 3 11:02:02 medrecruit asterisk[27661]: WARNING[21719] app_dial.c:1296 in dial_exec_full: Unable to create chann
el of type ‘IAX2’ (cause 20 - Unknown)
Mar 3 11:02:33 medrecruit asterisk[27661]: WARNING[21720] app_dial.c:1296 in dial_exec_full: Unable to create chann
el of type ‘IAX2’ (cause 20 - Unknown)
Mar 3 11:02:59 medrecruit asterisk[27661]: WARNING[21721] app_dial.c:1296 in dial_exec_full: Unable to create chann
el of type ‘IAX2’ (cause 20 - Unknown)
Mar 3 11:03:10 medrecruit asterisk[27661]: WARNING[21725] app_dial.c:1296 in dial_exec_full: Unable to create chann
el of type ‘IAX2’ (cause 20 - Unknown)
Mar 3 11:04:03 medrecruit asterisk[27661]: WARNING[21728] app_dial.c:1296 in dial_exec_full: Unable to create chann
el of type ‘IAX2’ (cause 20 - Unknown)
Mar 3 11:06:11 medrecruit asterisk[27661]: NOTICE[27676] chan_iax2.c:10270 in __iax2_poke_noanswer: Peer ‘6838602-d
ndn’ is now UNREACHABLE! Time: 71
Mar 3 11:07:40 medrecruit asterisk[27661]: NOTICE[27679] chan_iax2.c:9327 in socket_process: Peer ‘6838602-akl’ is
now REACHABLE! Time: 90
Mar 3 11:11:12 medrecruit asterisk[27661]: NOTICE[27676] chan_iax2.c:9327 in socket_process: Peer ‘6838602-dndn’ is
now REACHABLE! Time: 654
Thanks for your time!