Elastix slow to route calls

I have elastix 1.6.7 running on a dedicated box (Dell XPS, Intel Celeron 2.6GHz, plenty of memory) and a TDM400P clone card with 2 FXO and 2 FXS. I also have a number of SIP phones. All this is in my Home office. The two trunks are connected to separate BT lines: one for home and one for the business.
All seems to be working OK. Inbound calls are routed straight to a call group that rings a subset of the internal phones: depending on which inbound line is ringing.
The problem is the delay between the call coming in and the extensions starting to ring. This is of the order of 2-3 rings (as seen from the outside and from phones that are connected directly to the outside trunks. The flash PBX screen shows the appropriate trunk ringing straight away but it takes too long for Asterisk to process the call.

Is there any way to speed this up?

Gareth

This isn’t an Asterisk problem. You may want to seek help from the Elastix forums or FreePBX forums as that is probably where your issue resides. Also, to help us troubleshoot (if you really think it is an Asterisk issue), please provide some call logs so that we can give you detailed information.

Thanks. I’ll do that.

I have the same problem, i dial and the call takes too long to dial, this is my cli> output:

– Executing [2232874@from-internal:1] Macro(“SIP/2001-08e072b8”, “user-callerid|SKIPTTL|”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/2001-08e072b8”, “AMPUSER=2001”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/2001-08e072b8”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/2001-08e072b8”, “1|Set|REALCALLERIDNUM=2001”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/2001-08e072b8”, “AMPUSER=2001”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/2001-08e072b8”, “AMPUSERCIDNAME=2001”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/2001-08e072b8”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/2001-08e072b8”, “AMPUSERCID=2001”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/2001-08e072b8”, “CALLERID(all)=“2001” <2001>”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“SIP/2001-08e072b8”, “0|Set|CHANNEL(language)=”) in new stack
– Executing [s@macro-user-callerid:10] GotoIf(“SIP/2001-08e072b8”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [s@macro-user-callerid:19] NoOp(“SIP/2001-08e072b8”, “Using CallerID “2001” <2001>”) in new stack
– Executing [2232874@from-internal:2] Set(“SIP/2001-08e072b8”, “_NODEST=”) in new stack
– Executing [2232874@from-internal:3] Macro(“SIP/2001-08e072b8”, “record-enable|2001|OUT|”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/2001-08e072b8”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/2001-08e072b8”, “recordingcheck|20100423-111658|1272039418.17”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100423-111658|1272039418.17: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] MacroExit(“SIP/2001-08e072b8”, “”) in new stack
– Executing [2232874@from-internal:4] Macro(“SIP/2001-08e072b8”, “dialout-trunk|2|2232874||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/2001-08e072b8”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/2001-08e072b8”, “0?sub-pincheck|s|1”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/2001-08e072b8”, “0?disabletrunk|1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/2001-08e072b8”, “DIAL_NUMBER=2232874”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/2001-08e072b8”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/2001-08e072b8”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/2001-08e072b8”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/2001-08e072b8”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/2001-08e072b8”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/2001-08e072b8”, “outbound-callerid|2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/2001-08e072b8”, “0|SetCallerPres|”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/2001-08e072b8”, “0|Set|REALCALLERIDNUM=2001”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/2001-08e072b8”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/2001-08e072b8”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/2001-08e072b8”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/2001-08e072b8”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/2001-08e072b8”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/2001-08e072b8”, “0|Set|CALLERID(all)=”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/2001-08e072b8”, “0|Set|CALLERID(all)=”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/2001-08e072b8”, “0|SetCallerPres|prohib_passed_screen”) in new stack
– Executing [s@macro-dialout-trunk:12] ExecIf(“SIP/2001-08e072b8”, “1|AGI|fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern 00511+[2-8]. matched. 2232874 -> 2232874
– AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:13] Set(“SIP/2001-08e072b8”, “OUTNUM=2232874”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/2001-08e072b8”, “custom=SIP/trunk1”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/2001-08e072b8”, “0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)”) in new stack
– Executing [s@macro-dialout-trunk:16] Macro(“SIP/2001-08e072b8”, “dialout-trunk-predial-hook|”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/2001-08e072b8”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/2001-08e072b8”, “0?bypass|1”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/2001-08e072b8”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:19] Dial(“SIP/2001-08e072b8”, “SIP/trunk1/12232874|300|”) in new stack
– Called trunk1/2232874
– SIP/trunk1-08e4a308 is making progress passing it to SIP/2001-08e072b8

the delay is between lines …-- Executing [s@macro-dialout-trunk:19] and – Called trunk1/4.
after that it starts dialing
that delay es about 10 sec