Incoming 2 rings pstn line

I explored freepbx 32 bit and 64 bit and i just have only one issue. When anyone calls our incoming numbers, callers hear 4-5 rings before they hear IVR.
I want when anyone calls our numbers, it rings 2 times and should go into the IVR.

How is this possible?

There are a few things that can cause an inbound delay. Are you even sure the delay is being caused by your PBX and not the provider? Provide the (sanitized) asterisk full log lines from an inbound call, the time stamps will tell you where the delay is.

Well when i place the telephone wireto normal handset phone it rings same time. In asterisk it seems it cant identify signal fast. Below is the log:

2016-04-15 10:21:27] VERBOSE[25251][C-00000033] sig_analog.c: – Starting simple switch on ‘DAHDI/2-1’
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:1] NoOp(“DAHDI/2-1”, "Entering from-dahdi with DID == ") in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:2] Ringing(“DAHDI/2-1”, “”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:3] Set(“DAHDI/2-1”, “DID=s”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:4] NoOp(“DAHDI/2-1”, “DID is now s”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:5] GotoIf(“DAHDI/2-1”, “1?dahdiok:checkzap”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Goto (from-analog,s,9)
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:9] NoOp(“DAHDI/2-1”, “Is a DAHDi Channel”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:10] Set(“DAHDI/2-1”, “CHAN=2-1”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:11] Set(“DAHDI/2-1”, “CHAN=2”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:12] Macro(“DAHDI/2-1”, “from-dahdi-2,s,1”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:1] NoOp(“DAHDI/2-1”, “Entering macro-from-dahdi-2 with DID = s and setting to: 3311663”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:2] Set(“DAHDI/2-1”, “__FROM_DID=3311663”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:3] Goto(“DAHDI/2-1”, “from-trunk,3311663,1”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Goto (from-trunk,3311663,1)
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] app_macro.c: == Channel ‘DAHDI/2-1’ jumping out of macro ‘from-dahdi-2’
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:1] Set(“DAHDI/2-1”, “__FROM_DID=3311663”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:2] Gosub(“DAHDI/2-1”, “sub-record-check,s,1(in,3311663,dontcare)”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:1] GotoIf(“DAHDI/2-1”, “0?initialized”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:2] Set(“DAHDI/2-1”, “__REC_STATUS=INITIALIZED”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:3] Set(“DAHDI/2-1”, “NOW=1460672497”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:4] Set(“DAHDI/2-1”, “__DAY=15”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:5] Set(“DAHDI/2-1”, “__MONTH=04”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:6] Set(“DAHDI/2-1”, “__YEAR=2016”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:7] Set(“DAHDI/2-1”, “__TIMESTR=20160415-102137”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:8] Set(“DAHDI/2-1”, “__FROMEXTEN=unknown”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:9] Set(“DAHDI/2-1”, “__MON_FMT=wav”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:10] NoOp(“DAHDI/2-1”, “Recordings initialized”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:11] ExecIf(“DAHDI/2-1”, “0?Set(ARG3=dontcare)”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:12] Set(“DAHDI/2-1”, “REC_POLICY_MODE_SAVE=”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:13] ExecIf(“DAHDI/2-1”, “0?Set(REC_STATUS=NO)”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:14] GotoIf(“DAHDI/2-1”, “2?checkaction”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Goto (sub-record-check,s,17)
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:17] GotoIf(“DAHDI/2-1”, “1?sub-record-check,in,1”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Goto (sub-record-check,in,1)
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:1] NoOp(“DAHDI/2-1”, “Inbound Recording Check to 3311663”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:2] Set(“DAHDI/2-1”, “FROMEXTEN=unknown”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:3] ExecIf(“DAHDI/2-1”, “0?Set(FROMEXTEN=)”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:4] Gosub(“DAHDI/2-1”, “recordcheck,1(dontcare,in,3311663)”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:1] NoOp(“DAHDI/2-1”, “Starting recording check against dontcare”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:2] Goto(“DAHDI/2-1”, “dontcare”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Goto (sub-record-check,recordcheck,3)
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:3] Return(“DAHDI/2-1”, “”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:5] Return(“DAHDI/2-1”, “”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:3] Set(“DAHDI/2-1”, “CDR(did)=3311663”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:4] ExecIf(“DAHDI/2-1”, “1 ?Set(CALLERID(name)=)”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:5] Set(“DAHDI/2-1”, “CHANNEL(musicclass)=default”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:6] Set(“DAHDI/2-1”, “__MOHCLASS=default”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:7] Ringing(“DAHDI/2-1”, “”) in new stack
[2016-04-15 10:21:37] WARNING[25251][C-00000033] func_channel.c: Unknown or unavailable item requested: ‘reversecharge’
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:8] GotoIf(“DAHDI/2-1”, “0?macro-hangupcall”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:9] Set(“DAHDI/2-1”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:10] Set(“DAHDI/2-1”, “CALLERPRES()=allowed_not_screened”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:11] Goto(“DAHDI/2-1”, “ivr-1,s,1”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Goto (ivr-1,s,1)
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:1] Set(“DAHDI/2-1”, “TIMEOUT_LOOPCOUNT=0”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:2] Set(“DAHDI/2-1”, “INVALID_LOOPCOUNT=0”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:3] Set(“DAHDI/2-1”, “_IVR_CONTEXT_ivr-1=”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:4] Set(“DAHDI/2-1”, “_IVR_CONTEXT=ivr-1”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:5] Set(“DAHDI/2-1”, “__IVR_RETVM=”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:6] GotoIf(“DAHDI/2-1”, “0?skip”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:7] Answer(“DAHDI/2-1”, “”) in new stack
[2016-04-15 10:21:37] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:8] Wait(“DAHDI/2-1”, “1”) in new stack
[2016-04-15 10:21:38] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:9] Set(“DAHDI/2-1”, “IVR_MSG=custom/deepti-fnal”) in new stack
[2016-04-15 10:21:38] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:10] Set(“DAHDI/2-1”, “TIMEOUT(digit)=3”) in new stack
[2016-04-15 10:21:38] VERBOSE[25251][C-00000033] func_timeout.c: – Digit timeout set to 3.000
[2016-04-15 10:21:38] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:11] ExecIf(“DAHDI/2-1”, “1?Background(custom/deepti-fnal)”) in new stack
[2016-04-15 10:21:38] VERBOSE[25251][C-00000033] file.c: – <DAHDI/2-1> Playing ‘custom/deepti-fnal.slin’ (language ‘en’)
[2016-04-15 10:21:49] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:12] WaitExten(“DAHDI/2-1”, “10,”) in new stack
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] pbx.c: – Timeout on DAHDI/2-1, going to ‘t’
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:1] Set(“DAHDI/2-1”, “TIMEOUT_LOOPCOUNT=1”) in new stack
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:2] GotoIf(“DAHDI/2-1”, “0?final”) in new stack
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:3] Set(“DAHDI/2-1”, “IVR_MSG=no-valid-responce-pls-try-again”) in new stack
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:4] Goto(“DAHDI/2-1”, “s,start”) in new stack
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] pbx.c: – Goto (ivr-1,s,10)
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:10] Set(“DAHDI/2-1”, “TIMEOUT(digit)=3”) in new stack
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] func_timeout.c: – Digit timeout set to 3.000
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:11] ExecIf(“DAHDI/2-1”, “1?Background(no-valid-responce-pls-try-again)”) in new stack
[2016-04-15 10:21:59] VERBOSE[25251][C-00000033] file.c: – <DAHDI/2-1> Playing ‘no-valid-responce-pls-try-again.slin’ (language ‘en’)
[2016-04-15 10:22:03] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:12] WaitExten(“DAHDI/2-1”, “10,”) in new stack
[2016-04-15 10:22:09] VERBOSE[25251][C-00000033] pbx.c: == Spawn extension (ivr-1, s, 12) exited non-zero on ‘DAHDI/2-1’
[2016-04-15 10:22:09] VERBOSE[25251][C-00000033] pbx.c: – Executing [[email protected]:1] Hangup(“DAHDI/2-1”, “”) in new stack
[2016-04-15 10:22:09] VERBOSE[25251][C-00000033] pbx.c: == Spawn extension (ivr-1, h, 1) exited non-zero on ‘DAHDI/2-1’
[2016-04-15 10:22:09] VERBOSE[25251][C-00000033] sig_analog.c: – Hanging up on ‘DAHDI/2-1’
[2016-04-15 10:22:09] VERBOSE[25251][C-00000033] chan_dahdi.c: – Hungup ‘DAHDI/2-1’

When Caller ID is presented, it’s presented between the first and second ring. It goes like this:

  • Ring (Asterisk is now waiting for callerid)
  • CallerID Should be sent here
  • Ring (The call is now INSIDE asterisk and that line above is triggered)

However, if callerID is not received, then asterisk will wait, just to make sure, before passing the call off to the dialplan.

You need to either ask your provider to send CallerID, or, turn off CallerID detection in your Dahdi channel.

1 Like

Hi

I just realise the global setting option is there in dahdi channel. So i just turned off caller ID and immediate answer to yes. It works fine now… Thanks very much for your help. Will review how it is going and will give feedback.