Long time until Incoming call is forwarded to extionsion

Hi,

I’m a newbie regarding asterisk and hope you can help me :smile:

Following version is running on my system:
Asterisk 1.2.1-BRIstuffed-0.3.0-PRE-1f built by root @ asterisk1.local on a i686 running Linux

Problem is:

I have one extionsion (200), SoftPhone (xten). When i have an incoming call it will be forwarded to this extionsion. But it take around 10 seconds until softphone receive the call and rings.

I can see that call is recognized immediantly from asterisk but
at the step “–[color=red] dialparties.agi: Checking CW and CFB status for extension 200”[/color] it takes over 10 seconds until call is forwarded to extionsion 200 and phone is ringing.

I tested to route incoming call to digital receptionist and this works fine. Call comes in and i can here the voicefile immediantly. Only forwarding to extension works very slow.

Can you help me, cause i have no idea what i can do.

Here is my debugg-output…

-- Going to extension s|1 because of immediate=yes
-- Accepting voice call from '1785258118' to 's' on channel 0/1, span 1
-- Executing SetVar("Zap/1-1", "FROM_DID=s") in new stack
-- Executing SetVar("Zap/1-1", "FAX_RX=disabled") in new stack
-- Executing Goto("Zap/1-1", "ext-local|200|1") in new stack
-- Goto (ext-local,200,1)
-- Executing Macro("Zap/1-1", "exten-vm|novm|200") in new stack
-- Executing Macro("Zap/1-1", "user-callerid") in new stack
-- Executing DBget("Zap/1-1", "AMPUSER=DEVICE/1785258118/user") in new stack
-- DBget: varname=AMPUSER, family=DEVICE, key=1785258118/user
-- DBget: Value not found in database.
-- Executing DBget("Zap/1-1", "AMPUSERCIDNAME=AMPUSER//cidname") in new stack
-- DBget: varname=AMPUSERCIDNAME, family=AMPUSER, key=/cidname
-- DBget: Value not found in database.
-- Executing GotoIf("Zap/1-1", "1?5") in new stack
-- Goto (macro-user-callerid,s,5)
-- Executing NoOp("Zap/1-1", "Using CallerID 1785258118") in new stack
-- Executing SetVar("Zap/1-1", "FROMCONTEXT=exten-vm") in new stack
-- Executing Macro("Zap/1-1", "record-enable|200|IN") in new stack
-- Executing GotoIf("Zap/1-1", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing AGI("Zap/1-1", "recordingcheck|20060125-124702|asterisk-30104-1138189622.7") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck

recordingcheck|20060125-124702|asterisk-30104-1138189622.7: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Zap/1-1”, “No recording needed”) in new stack
– Executing Macro(“Zap/1-1”, “dial|15|tr|200”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?4:2”) in new stack
– Goto (macro-dial,s,2)
– Executing GotoIf(“Zap/1-1”, “0?5:4”) in new stack
– Goto (macro-dial,s,4)
– Executing AGI(“Zap/1-1”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
– dialparties.agi: priority = 4
– dialparties.agi: callingani2 = 0
– dialparties.agi: accountcode =
– dialparties.agi: channel = Zap/1-1
– dialparties.agi: callerid = 1785258118
– dialparties.agi: context = macro-dial
– dialparties.agi: callington = 33
– dialparties.agi: dnid = 1579065
– dialparties.agi: request = dialparties.agi
– dialparties.agi: calleridname = unknown
– dialparties.agi: extension = s
– dialparties.agi: language = de
– dialparties.agi: uniqueid = asterisk-30104-1138189622.7
– dialparties.agi: callingpres = 0
– dialparties.agi: type = Zap
– dialparties.agi: rdnis = unknown
– dialparties.agi: callingtns = 0
– dialparties.agi: enhanced = 0.0
dialparties.agi: Caller ID name and number are '1785258118’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 200 to extension map
– dialparties.agi: Extension 200 cf is disabled
– dialparties.agi: Extension 200 do not disturb is disabled
– dialparties.agi: Checking CW and CFB status for extension 200
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
– dialparties.agi: Correct AMPMGRUSER and AMPMGRPASS
dialparties.agi: Extension 200 is available…skipping checks
== Manager ‘admin’ logged off from 127.0.0.1
– dialparties.agi: DbSet CALLTRACE/200 to 1785258118
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“Zap/1-1”, “SIP/200|15|tr”) in new stack
– Called 200
– SIP/200-5836 is ringing

Thanks very much,
Neils :laughing: