Ringall skips ringing the extensions and moves to the no answer option?

I’m trying to setup an inbound calling sequence that does a ringall for designated extensions and then if no answer goes to the IVR. When i set that up in freepbx as pseudo extension “600” and call it from an extension not part of the ringall group, it never rings the phones and goes right to the IVR. Any ideas?

My config looks like this…

Ubuntu 11 - 64 bit
dahdi-linux-complete-2.5.0.2+2.5.0.2 (compiled from source)
Asterisk 1.8.8.0 (compiled from source)
FreePBX 2.9.0.9

Here’s logging output… calling from extension 101 to 600 which should ring extension 100 before going the IVR.

This line in the log concerns me from below…

– Executing [s@macro-dial:4] NoOp(“SIP/101-00000005”, "Returned from dialparties with no extensions to call and DIALSTATUS: ") in new stack

CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [600@from-internal:1] Macro(“SIP/101-00000005”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/101-00000005”, “AMPUSER=101”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/101-00000005”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/101-00000005”, “1?Set(REALCALLERIDNUM=101)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/101-00000005”, “AMPUSER=101”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/101-00000005”, “AMPUSERCIDNAME=School Room”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/101-00000005”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/101-00000005”, “AMPUSERCID=101”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/101-00000005”, “CALLERID(all)=“School Room” <101>”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/101-00000005”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:10] ExecIf(“SIP/101-00000005”, “0?Set(GROUP(concurrency_limit)=101)”) in new stack
– Executing [s@macro-user-callerid:11] GosubIf(“SIP/101-00000005”, “7?sub-ccss,s,1(from-internal,600)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/101-00000005”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/101-00000005”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/101-00000005”, “0?monitor_config,1(from-internal,600):monitor_default,1(from-internal,600)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/101-00000005”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/101-00000005”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/101-00000005”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/101-00000005”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:13] Set(“SIP/101-00000005”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/101-00000005”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,25)
– Executing [s@macro-user-callerid:25] Set(“SIP/101-00000005”, “CALLERID(number)=101”) in new stack
– Executing [s@macro-user-callerid:26] Set(“SIP/101-00000005”, “CALLERID(name)=School Room”) in new stack
– Executing [s@macro-user-callerid:27] Set(“SIP/101-00000005”, “CHANNEL(language)=en”) in new stack
– Executing [600@from-internal:2] Macro(“SIP/101-00000005”, “blkvm-setifempty,”) in new stack
– Executing [s@macro-blkvm-setifempty:1] GotoIf(“SIP/101-00000005”, “1?init”) in new stack
– Goto (macro-blkvm-setifempty,s,4)
– Executing [s@macro-blkvm-setifempty:4] Set(“SIP/101-00000005”, “__BLKVM_CHANNEL=SIP/101-00000005”) in new stack
– Executing [s@macro-blkvm-setifempty:5] Set(“SIP/101-00000005”, “SHARED(BLKVM,SIP/101-00000005)=TRUE”) in new stack
– Executing [s@macro-blkvm-setifempty:6] Set(“SIP/101-00000005”, “GOSUB_RETVAL=TRUE”) in new stack
– Executing [s@macro-blkvm-setifempty:7] MacroExit(“SIP/101-00000005”, “”) in new stack
– Executing [600@from-internal:3] GotoIf(“SIP/101-00000005”, “1?skipov”) in new stack
– Goto (from-internal,600,6)
– Executing [600@from-internal:6] Set(“SIP/101-00000005”, “RRNODEST=”) in new stack
– Executing [600@from-internal:7] Set(“SIP/101-00000005”, “__NODEST=600”) in new stack
– Executing [600@from-internal:8] GosubIf(“SIP/101-00000005”, “0?sub-rgsetcid,s,1”) in new stack
– Executing [600@from-internal:9] Set(“SIP/101-00000005”, “RecordMethod=Group”) in new stack
– Executing [600@from-internal:10] Macro(“SIP/101-00000005”, “record-enable,100,Group”) in new stack
– Executing [s@macro-record-enable:1] MacroExit(“SIP/101-00000005”, “”) in new stack
– Executing [600@from-internal:11] Set(“SIP/101-00000005”, “RingGroupMethod=ringall”) in new stack
– Executing [600@from-internal:12] Macro(“SIP/101-00000005”, “dial,20,tr,100”) in new stack
– Executing [s@macro-dial:1] GotoIf(“SIP/101-00000005”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“SIP/101-00000005”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
– <SIP/101-00000005>AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:4] NoOp(“SIP/101-00000005”, "Returned from dialparties with no extensions to call and DIALSTATUS: ") in new stack
– Executing [600@from-internal:13] Set(“SIP/101-00000005”, “RingGroupMethod=”) in new stack
– Executing [600@from-internal:14] GotoIf(“SIP/101-00000005”, “0?nodest”) in new stack
– Executing [600@from-internal:15] Set(“SIP/101-00000005”, “__NODEST=”) in new stack
– Executing [600@from-internal:16] Macro(“SIP/101-00000005”, “blkvm-clr,”) in new stack
– Executing [s@macro-blkvm-clr:1] Set(“SIP/101-00000005”, “SHARED(BLKVM,SIP/101-00000005)=”) in new stack
– Executing [s@macro-blkvm-clr:2] Set(“SIP/101-00000005”, “GOSUB_RETVAL=”) in new stack
– Executing [s@macro-blkvm-clr:3] MacroExit(“SIP/101-00000005”, “”) in new stack
– Executing [600@from-internal:17] Goto(“SIP/101-00000005”, “ivr-2,s,1”) in new stack
– Goto (ivr-2,s,1)
– Executing [s@ivr-2:1] Set(“SIP/101-00000005”, “MSG=custom/main1”) in new stack
– Executing [s@ivr-2:2] Set(“SIP/101-00000005”, “LOOPCOUNT=0”) in new stack
– Executing [s@ivr-2:3] Set(“SIP/101-00000005”, “__DIR-CONTEXT=”) in new stack
– Executing [s@ivr-2:4] Set(“SIP/101-00000005”, “_IVR_CONTEXT_ivr-2=”) in new stack
– Executing [s@ivr-2:5] Set(“SIP/101-00000005”, “_IVR_CONTEXT=ivr-2”) in new stack
– Executing [s@ivr-2:6] GotoIf(“SIP/101-00000005”, “0?begin”) in new stack
– Executing [s@ivr-2:7] Answer(“SIP/101-00000005”, “”) in new stack
– Executing [s@ivr-2:8] Wait(“SIP/101-00000005”, “1”) in new stack
– Executing [s@ivr-2:9] Set(“SIP/101-00000005”, “TIMEOUT(digit)=3”) in new stack
– Digit timeout set to 3.000
– Executing [s@ivr-2:10] Set(“SIP/101-00000005”, “TIMEOUT(response)=10”) in new stack
– Response timeout set to 10.000
– Executing [s@ivr-2:11] Set(“SIP/101-00000005”, “__IVR_RETVM=”) in new stack
– Executing [s@ivr-2:12] ExecIf(“SIP/101-00000005”, “1?Background(custom/main1)”) in new stack
– <SIP/101-00000005> Playing ‘custom/main1.slin’ (language ‘en’)
== Spawn extension (ivr-2, s, 12) exited non-zero on ‘SIP/101-00000005’
– Executing [h@ivr-2:1] Hangup(“SIP/101-00000005”, “”) in new stack
== Spawn extension (ivr-2, h, 1) exited non-zero on ‘SIP/101-00000005’
> doing dnsmgr_lookup for ‘chicago-1a.vtnoc.net
> doing dnsmgr_lookup for 'chicago-1a.vtnoc.net
CLI>

I read in another thread that the dialparties.agi script probably has errors… i ran in from the command line… perl dialpartieis.agi

and recieved errors on the include for phpagi.php not found…

i read elsewhere to try and change the include to this…

require_once $config[‘ASTAGIDIR’]."/phpagi.php";

that didn’t work either as the paths referenced didn’t include the install location for my copy of phpagi.php which was in either…

locate phpagi.php
/usr/share/asterisk/agi-bin/phpagi.php
/usr/src/freepbx-2.9.0/amp_conf/agi-bin/phpagi.php

i changed the include in dialparties.php to be…

require_once “/usr/share/asterisk/agi-bin/phpagi.php”;

then when you run it, there’s no errors… now go try the ring group and surprise… it works!

It appears the fix has something to do with adding…
/usr/share/asterisk
to the path list of directories…