We have a dedicated Asterisk 1.8 server running as a front end SIP server for authenticated and internal users only, using SDSL 2MB/2MB, in the UK. The provider of our internet also is the provider of our outgoing SIP(so there is no internal hop), and intotal there are a few hops which are mostly LAN routers with a total of 30ms to the sip server.
- Everything works fine in the office. No delays.
- Everything works fine using extension dialling from two outside lines. Ie bot extensions are at home using home br= broadband of 512mb.. there is roughly 100-200ms delay on both channels- which is fine.
The problem occurs when any extension, office, or home user dials out using a Trunk. Out Main one or even voipcheap.
The outgoing audio get to the "mobile" phone for test sake in not more than 250ms- that's perfect. But when the person on the "mobile" replies, the audio returns after 500-750ms.
I have not timed anything exactly but that's what it feels like. I tried running channel stats in CLI - jitter is 0, lost is 0
I mainly use aLaw codec, but i started forcing other like g729, g726 - Jitter is off, but even when its on it makes no difference (to my ear) the returning delay is still there.All these codecs are supported by my SIP servers, and all SIP clients connect using aLaw codec, and the aLaw has the lest translation time.. but I am not sure if it actually translating it somewhere along the line, at should just pass through.
I do not know how to debug/trace the returning channel issue. Where is the delay, what can i do to try and resolve this.
The problem is that people start talking over each other because the delay out and in is different and confuses people, it would be better if the delay was the same. but i think 500ms is too much for the time and effort we spent setting up dedicated internet and server.
--Edit my sip settings
host=[voiproip] username=[myusernme] secret=[secret] type=peer context=from-trunk-sip-GREY
 deny=0.0.0.0/0.0.0.0 secret=[secret] dtmfmode=rfc2833 canreinvite=no context=from-internal host=dynamic trustrpid=yes sendrpid=no type=friend nat=no port=5060 qualify=yes qualifyfreq=60 transport=udp encryption=no callgroup= pickupgroup= dial=SIP/16 mailbox=16@default permit=0.0.0.0/0.0.0.0 callerid=device <16> callcounter=yes faxdetect=no cc_monitor_policy=generic
resolve nothing special.
Does anybody have some advice?