Adventures with SIP
Having moved office we decided to upgrade our phone system and route all our outbound calls via Engin (SIP Service provider) after a bit of setup we have everything working nicely, with one exception, outbound calls would drop after about 5 minutes and 30 seconds.
A bit of googling quickly showed that we were not alone, this led me to the following :-
http://whirlpool.net.au/index.cfm?a=wiki&tag=VoIP_engin_5m32
Which explains that Engin (and others) periodically send a re-INVITE request for a number of quite valid reasons that I won't discuss here.
That's all very well but I couldn't quite see why these re-INVITE's wern't making it through my router, I could clearly see that a dynamic NAT entry existed that should have allowed the Engin server to send these SIP packets to my PBX.
So after a bit more sleuthing here's what I found:-
The re-INVITEs are sent from a different IP address to the Engin SIP gateway that the call was initially set up through!!!!
So in my case I re-configured my router to port forward ALL incoming UDP packets with a destination port of 5060 to my PBX and hey presto no more dropped outbound calls.
