Hi, I am facing this issue, where I get a delay of aroud five seconds when switching between contexts (through extension.conf) . This is how my extensions looks like. [salesivr] exten => _X.,1,NoOp(Incoming call from user ${EXTEN} and caller id ${CALLERID}) exten => _X.,2,Playback(emptyy) exten => _X.,3,Background(Main_Sales) exten => _X.,4,WaitExten(2) exten => _X.,5,Goto(_X.,3) exten => 0,1,Goto(SalesRep,s,1) exten => 1,1,Goto(Inquiry,s,1) exten => 9,1,Goto(_X.,3) [BalanceInquiry] ;extensions [Inquiry] ;extensions When I press a digit in _X,3 or _X,4 it takes some time before switching to the desired context. When switching context I see this on the cli Executing BackGround("SIP/103-41220030", "Main_Sales") in new stack -- Playing 'Main_Sales' (language 'en') == CDR updated on SIP/103-41220030 -- Executing Goto("SIP/103-41220030", "BalanceInquiry|s|1") in new stack -- Goto (BalanceInquiry,s,1) It seems the CDR update is eating up time, Can some one suggest whats going on here and how I can get out of this dilemma. Is there some way I can disable the CDR writing. Thanking you in advance, Danish. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070502/833c84ce/attachment-0001.htm
Eric "ManxPower" Wieling
2007-May-02 09:06 UTC
[asterisk-users] delay in switching between contexts
Danish Samad wrote:> Hi, > > I am facing this issue, where I get a delay of aroud five seconds when > switching between contexts (through extension.conf) . This is how my > extensions looks like. > > [salesivr] > exten => _X.,1,NoOp(Incoming call from user ${EXTEN} and caller id > ${CALLERID}) > exten => _X.,2,Playback(emptyy) > exten => _X.,3,Background(Main_Sales) > exten => _X.,4,WaitExten(2) > exten => _X.,5,Goto(_X.,3) > > exten => 0,1,Goto(SalesRep,s,1) > exten => 1,1,Goto(Inquiry,s,1) > exten => 9,1,Goto(_X.,3)Don't use . in your pattern. . says "wait for 1 or more digits, use a timeout to decide if the user is finished dialing"
Andrew Kohlsmith
2007-May-02 09:17 UTC
[asterisk-users] delay in switching between contexts
On Wednesday 02 May 2007 11:49 am, Danish Samad wrote:> [salesivr] > exten => _X.,1,NoOp(Incoming call from user ${EXTEN} and caller id > ${CALLERID}) > exten => _X.,2,Playback(emptyy) > exten => _X.,3,Background(Main_Sales) > exten => _X.,4,WaitExten(2)> When I press a digit in _X,3 or _X,4 it takes some time before switching to > the desired context. When switching context I see this on the cliThis is because you are telling asterisk to wait for one OR MORE digits, and it is waiting to see if you're going to dial any more digits before deciding that the entire extension has been entered. Use the various timeout functions to set a more appropriate timeout, or code your dialplan to only look for one digit. i.e. exten => _X (no trailing . (period)).> exten => _X.,5,Goto(_X.,3)This works, but looks very odd to me. Just specify the priority if you want to stay in the same extension... i.e. Goto(3). -A.