Hello !
I’m having some issues with my asterisk box: placing a call between two registered extensison takes around 10 secs. I noticed the AGI scripts coming with freepbx introduce this delay:
[Jan 2 15:48:12] VERBOSE[6224] logger.c: -- Executing [s@macro-exten-vm:6] Set("SIP/2707-9fb09260", "RT=30") in new stack
[Jan 2 15:48:12] VERBOSE[6224] logger.c: -- Executing [s@macro-exten-vm:7] Macro("SIP/2707-9fb09260", "record-enable|7960|IN") in new stack
[Jan 2 15:48:12] DEBUG[6224] pbx.c: Function result is '0'
[Jan 2 15:48:12] VERBOSE[6224] logger.c: -- Executing [s@macro-record-enable:1] GotoIf("SIP/2707-9fb09260", "0 > 0?2:4") in new stack
[Jan 2 15:48:12] VERBOSE[6224] logger.c: -- Goto (macro-record-enable,s,4)
[Jan 2 15:48:12] VERBOSE[6224] logger.c: -- Executing [s@macro-record-enable:4] DeadAGI("SIP/2707-9fb09260", "recordingcheck||1167749292.8") in new stack
[Jan 2 15:48:12] VERBOSE[6224] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
[Jan 2 15:48:17] VERBOSE[6224] logger.c: recordingcheck||1167749292.8: Inbound recording not enabled
[Jan 2 15:48:17] VERBOSE[6224] logger.c: -- AGI Script recordingcheck completed, returning 0
[Jan 2 15:48:17] VERBOSE[6224] logger.c: -- Executing [s@macro-record-enable:5] NoOp("SIP/2707-9fb09260", "No recording needed") in new stack
[Jan 2 15:48:17] VERBOSE[6224] logger.c: -- Executing [s@macro-exten-vm:8] Macro("SIP/2707-9fb09260", "dial|30|tr|7960") in new stack
[Jan 2 15:48:17] VERBOSE[6224] logger.c: -- Executing [s@macro-dial:1] DeadAGI("SIP/2707-9fb09260", "dialparties.agi") in new stack
[Jan 2 15:48:17] VERBOSE[6224] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
[Jan 2 15:48:22] VERBOSE[6224] logger.c: dialparties.agi: Starting New Dialparties.agi
[Jan 2 15:48:22] VERBOSE[6224] logger.c: dialparties.agi: priority is 1
[Jan 2 15:48:22] VERBOSE[6224] logger.c: dialparties.agi: Caller ID name is 'Vincent Thinselin' number is '2707'
[Jan 2 15:48:22] VERBOSE[6224] logger.c: dialparties.agi: Methodology of ring is 'none'
[Jan 2 15:48:22] VERBOSE[6224] logger.c: -- dialparties.agi: Added extension 7960 to extension map
[Jan 2 15:48:22] DEBUG[6224] db.c: Unable to find key '7960' in family 'CF'
[Jan 2 15:48:22] VERBOSE[6224] logger.c: -- dialparties.agi: Extension 7960 cf is disabled
[Jan 2 15:48:22] DEBUG[6224] db.c: Unable to find key '7960' in family 'DND'
[Jan 2 15:48:22] VERBOSE[6224] logger.c: -- dialparties.agi: Extension 7960 do not disturb is disabled
5 seconds lost because of recordingcheck and another 5 because of dialparties …
Do you have a clue on why I get this behavior ?
I have tried with the recent 1.4 and same thing with 1.2.14, all with freepbx
Running CentOS release 4.4 (Final)
Cheers,
Vincent.