asterisk1*CLI> show dialplan ext-group [ Context 'ext-group' created by 'pbx_config' ] '1' => 1. Macro(rg-group|ringall|20||2001-2000) [pbx_config] 2. Macro(vm|2001) [pbx_config] extensions.conf [macro-rg-group] exten => s,1,GotoIf($[${CALLERIDNAME:0:${LEN(${RGPREFIX})}} != ${RGPREFIX}]?3:2) ; check for old prefix exten => s,2,SetCIDName(${CALLERIDNAME:${LEN(${RGPREFIX})}}) ; strip off old prefix exten => s,3,Setvar(RGPREFIX=${ARG2}) ; set new prefix exten => s,4,SetCIDName(${RGPREFIX}${CALLERIDNAME}) ; add prefix to callerid name exten => s,5,Setvar(RecordMethod=Group) ; set new prefix exten => s,6,Macro(record-enable,${MACRO_EXTEN},${RecordMethod}) exten => s,7,Macro(dial,${ARG1},${DIAL_OPTIONS},${ARG3}) log Connected to Asterisk 1.2.1 currently running on asterisk1 (pid = 2414) Verbosity is at least 30 -- Accepting UNAUTHENTICATED call from 64.26.157.230: > requested format = ulaw, > requested prefs = (ulaw|gsm), > actual format = gsm, > host prefs = (alaw|gsm|ulaw), > priority = mine -- Executing SetVar("IAX2/6477225658-5", "FROM_DID=6477225658") in new stack -- Executing SetVar("IAX2/6477225658-5", "FAX_RX=disabled") in new stack -- Executing Goto("IAX2/6477225658-5", "from-pstn|s|1") in new stack -- Goto (from-pstn,s,1) -- Executing GotoIf("IAX2/6477225658-5", "1?from-pstn-reghours|s|1:") in new stack -- Goto (from-pstn-reghours,s,1) -- Executing GotoIf("IAX2/6477225658-5", "1?from-pstn-reghours-nofax|s|1:2") in new stack -- Goto (from-pstn-reghours-nofax,s,1) -- Executing SetVar("IAX2/6477225658-5", "intype=GRP-1") in new stack -- Executing Cut("IAX2/6477225658-5", "intype=intype|-|1") in new stack -- Executing GotoIf("IAX2/6477225658-5", "0?4:5") in new stack -- Goto (from-pstn-reghours-nofax,s,5) -- Executing GotoIf("IAX2/6477225658-5", "1?6:7") in new stack -- Goto (from-pstn-reghours-nofax,s,6) -- Executing Goto("IAX2/6477225658-5", "ext-group|1|1") in new stack -- Goto (ext-group,1,1) -- Executing Macro("IAX2/6477225658-5", "rg-group|ringall|20||2001-2000") in new stack -- Executing GotoIf("IAX2/6477225658-5", "0?3:2") in new stack -- Goto (macro-rg-group,s,2) -- Executing SetCIDName("IAX2/6477225658-5", "") in new stack -- Executing SetVar("IAX2/6477225658-5", "RGPREFIX=20") in new stack -- Executing SetCIDName("IAX2/6477225658-5", "20") in new stack -- Executing SetVar("IAX2/6477225658-5", "RecordMethod=Group") in new stack -- Executing Macro("IAX2/6477225658-5", "record-enable|1|Group") in new stack -- Executing GotoIf("IAX2/6477225658-5", "0 > 0?2:4") in new stack -- Goto (macro-record-enable,s,4) -- Executing GotoIf("IAX2/6477225658-5", "0?5:8") in new stack -- Goto (macro-record-enable,s,8) -- Executing GotoIf("IAX2/6477225658-5", "1?9:12") in new stack -- Goto (macro-record-enable,s,9) -- Executing AGI("IAX2/6477225658-5", "recordingcheck") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck -- AGI Script recordingcheck completed, returning 0 -- Executing SetVar("IAX2/6477225658-5", "CALLFILENAME=g1-20060114-205610-1137290169.423") in new stack -- Executing Goto("IAX2/6477225658-5", "s|14") in new stack -- Goto (macro-record-enable,s,14) -- Executing GotoIf("IAX2/6477225658-5", "0?15:99") in new stack -- Goto (macro-record-enable,s,99) -- Executing NoOp("IAX2/6477225658-5", "NO RECORDING NEEDED") in new stack -- Executing Macro("IAX2/6477225658-5", "dial|ringall|tr|") in new stack -- Executing GotoIf("IAX2/6477225658-5", "0?4:2") in new stack -- Goto (macro-dial,s,2) -- Executing GotoIf("IAX2/6477225658-5", "0?4:3") in new stack -- Goto (macro-dial,s,3) -- Executing SetCIDName("IAX2/6477225658-5", "") in new stack -- Executing AGI("IAX2/6477225658-5", "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 = IAX2/6477225658-5 -- dialparties.agi: callerid = 6137997322 -- dialparties.agi: context = macro-dial -- dialparties.agi: callington = 0 -- dialparties.agi: dnid = unknown -- dialparties.agi: request = dialparties.agi -- dialparties.agi: calleridname = 20 -- dialparties.agi: extension = s -- dialparties.agi: language = en -- dialparties.agi: uniqueid = 1137290169.423 -- dialparties.agi: callingpres = 0 -- dialparties.agi: type = IAX2 -- dialparties.agi: rdnis = unknown -- dialparties.agi: callingtns = 0 -- dialparties.agi: enhanced = 0.0 dialparties.agi: Caller ID name and number are '6137997322' dialparties.agi: Methodology of ring is 'none' -- AGI Script Executing Application: (NoOp) Options: () -- AGI Script dialparties.agi completed, returning 0 -- Executing NoOp("IAX2/6477225658-5", "Returned from dialparties with no extensions to call") in new stack -- Executing SetVar("IAX2/6477225658-5", "DIALSTATUS=BUSY") in new stack -- Executing Macro("IAX2/6477225658-5", "vm|2001") in new stack -- Executing Goto("IAX2/6477225658-5", "s-|1") in new stack -- Goto (macro-vm,s-,1) -- Executing VoiceMail("IAX2/6477225658-5", "u2001") in new stack -- Playing '/var/spool/asterisk/voicemail/default/2001/unavail' (language 'en') == Spawn extension (macro-vm, s-, 1) exited non-zero on 'IAX2/6477225658-5' in macro 'vm' == Spawn extension (ext-group, 1, 2) exited non-zero on 'IAX2/6477225658-5' -- Hungup 'IAX2/6477225658-5'