Extension which is set on follow and then DISA

scenario:Call Transfer after IVR to an extension which is set on follow and then DISA…

Hi friends,

i am new, so help needed, i have simple requirement as validate caller and and provide dial tone “DISA” and keep this call recorded, but as need to ask user id and PIN so i made my own IVR which is validating caller and at the last stage of the call need to transfer this call to ext 1999 which is follow me by DISA.

FYI, my ext is 1001, when i call from my ext to 1999 is give me dial tone but when i call from IVR… it says all extensions busy.

following is what i am doing in my dial plan at last to provide dial tone…

[Disa-dialing]
exten => s,1,Playback(disa-predialtone)
exten => s,2,Dial(SIP/1999,10,“trM”)

result on terminal screen

– Goto (Disa-dialing,s,1)
– Executing [[email protected]:1] Playback(“SIP/1001-00000069”, “disa-predialtone”) in new stack
– <SIP/1001-00000069> Playing ‘disa-predialtone.slin’ (language ‘en’)
– Executing [[email protected]:2] Dial(“SIP/1001-00000069”, “SIP/1999,10,“trM””) in new stack
== Everyone is busy/congested at this time (1:0/0/1)

guide please.
Regards,
ADDY

1999 does not use SIP technology, try dialing “local/1999”

change to local not working but results changed…

now i am getting so much in output with congestion tone

– Executing [[email protected]:4] GotoIf(“SIP/1001-00000091”, “1?Disa-dialing,s,1:Disa-MainMenu,s,5”) in new stack
– Goto (Disa-dialing,s,1)
– Executing [[email protected]:1] Playback(“SIP/1001-00000091”, “disa-predialtone”) in new stack
– <SIP/1001-00000091> Playing ‘disa-predialtone.slin’ (language ‘en’)
– Executing [[email protected]:2] Dial(“SIP/1001-00000091”, “Local/1991,50,“trM””) in new stack
– Called Local/1991
– Executing [[email protected]:1] Macro(“Local/[email protected];2”, “exten-vm,novm,1991”) in new stack
– Executing [[email protected]:1] Macro(“Local/[email protected];2”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“Local/[email protected];2”, “AMPUSER=1001”) in new stack
– Executing [[email protected]:2] GotoIf(“Local/[email protected];2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,10)
– Executing [[email protected]:10] GotoIf(“Local/[email protected];2”, “0?continue”) in new stack
– Executing [[email protected]:11] Set(“Local/[email protected];2”, “__TTL=64”) in new stack
– Executing [[email protected]:12] GotoIf(“Local/[email protected];2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] Set(“Local/[email protected];2”, “CALLERID(number)=1001”) in new stack
– Executing [[email protected]:20] Set(“Local/[email protected];2”, “CALLERID(name)=device”) in new stack
– Executing [[email protected]:21] NoOp(“Local/[email protected];2”, “Using CallerID “device” <1001>”) in new stack
– Executing [[email protected]:2] Set(“Local/[email protected];2”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“Local/[email protected];2”, “VMBOX=novm”) in new stack
– Executing [[email protected]:4] Set(“Local/[email protected];2”, “__EXTTOCALL=1991”) in new stack
– Executing [[email protected]:5] Set(“Local/[email protected];2”, “CFUEXT=”) in new stack
– Executing [[email protected]:6] Set(“Local/[email protected];2”, “CFBEXT=”) in new stack
– Executing [[email protected]:7] Set(“Local/[email protected];2”, “RT=”"") in new stack
– Executing [[email protected]:8] Macro(“Local/[email protected];2”, “record-enable,1991,IN”) in new stack
– Executing [[email protected]:1] GotoIf(“Local/[email protected];2”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] ExecIf(“Local/[email protected];2”, “0?MacroExit()”) in new stack
– Executing [[email protected]:5] GotoIf(“Local/[email protected];2”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,15)
– Executing [[email protected]:15] GotoIf(“Local/[email protected];2”, “1?IN”) in new stack
– Goto (macro-record-enable,s,20)
– Executing [[email protected]:20] ExecIf(“Local/[email protected];2”, “0?MacroExit()”) in new stack
– Executing [[email protected]:21] NoOp(“Local/[email protected];2”, “Recording enable for 1991”) in new stack
– Executing [[email protected]:22] Set(“Local/[email protected];2”, “CALLFILENAME=20140502-023926-1398980366.167”) in new stack
– Executing [[email protected]:23] MixMonitor(“Local/[email protected];2”, “20140502-023926-1398980366.167.wav,”) in new stack
– Executing [[email protected]:24] Set(“Local/[email protected];2”, “CDR(userfield)=audio:20140502-023926-1398980366.167.wav”) in new stack
– Executing [[email protected]:25] MacroExit(“Local/[email protected];2”, “”) in new stack
– Executing [[email protected]:9] Macro(“Local/[email protected];2”, “dial-one,”",tr,1991") in new stack
– Executing [[email protected]:1] Set(“Local/[email protected];2”, “DEXTEN=1991”) in new stack
– Executing [[email protected]:2] Set(“Local/[email protected];2”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:3] GosubIf(“Local/[email protected];2”, “0?screen,1”) in new stack
– Executing [[email protected]:4] GosubIf(“Local/[email protected];2”, “0?cf,1”) in new stack
– Executing [[email protected]:5] GotoIf(“Local/[email protected];2”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [[email protected]:8] GotoIf(“Local/[email protected];2”, “0?nodial”) in new stack
– Executing [[email protected]:9] GotoIf(“Local/[email protected];2”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“Local/[email protected];2”, “EXTHASCW=”) in new stack
– Executing [[email protected]:11] GotoIf(“Local/[email protected];2”, “1?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,12)
– Executing [[email protected]:12] GotoIf(“Local/[email protected];2”, “0?docfu:skip3”) in new stack
– Goto (macro-dial-one,s,16)
– Executing [[email protected]:16] GotoIf(“Local/[email protected];2”, “1?next2:continue”) in new stack
– Goto (macro-dial-one,s,17)
– Executing [[email protected]:17] GotoIf(“Local/[email protected];2”, “1?continue”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [[email protected]:25] GotoIf(“Local/[email protected];2”, “0?nodial”) in new stack
– Executing [[email protected]:26] GosubIf(“Local/[email protected];2”, “1?dstring,1:dlocal,1”) in new stack
– Executing [[email protected]:1] Set(“Local/[email protected];2”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“Local/[email protected];2”, “DEVICES=1991”) in new stack
– Executing [[email protected]:3] ExecIf(“Local/[email protected];2”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“Local/[email protected];2”, “0?Set(DEVICES=991)”) in new stack
– Executing [[email protected]:5] Set(“Local/[email protected];2”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“Local/[email protected];2”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“Local/[email protected];2”, “THISDIAL=CUSTOM/1991”) in new stack
– Executing [[email protected]:8] GosubIf(“Local/[email protected];2”, “1?zap2dahdi,1”) in new stack
– Executing [[email protected]:1] ExecIf(“Local/[email protected];2”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“Local/[email protected];2”, “NEWDIAL=”) in new stack
– Executing [[email protected]:3] Set(“Local/[email protected];2”, “LOOPCNT2=1”) in new stack
– Executing [[email protected]:4] Set(“Local/[email protected];2”, “ITER2=1”) in new stack
– Executing [[email protected]:5] Set(“Local/[email protected];2”, “THISPART2=CUSTOM/1991”) in new stack
– Executing [[email protected]:6] ExecIf(“Local/[email protected];2”, “0?Set(THISPART2=DAHDITOM/1991)”) in new stack
– Executing [[email protected]:7] Set(“Local/[email protected];2”, “NEWDIAL=CUSTOM/1991&”) in new stack
– Executing [[email protected]:8] Set(“Local/[email protected];2”, “ITER2=2”) in new stack
– Executing [[email protected]:9] GotoIf(“Local/[email protected];2”, “0?begin2”) in new stack
– Executing [[email protected]:10] Set(“Local/[email protected];2”, “THISDIAL=CUSTOM/1991”) in new stack
– Executing [[email protected]:11] Return(“Local/[email protected];2”, “”) in new stack
– Executing [[email protected]:9] Set(“Local/[email protected];2”, “DSTRING=CUSTOM/1991&”) in new stack
– Executing [[email protected]:10] Set(“Local/[email protected];2”, “ITER=2”) in new stack
– Executing [[email protected]:11] GotoIf(“Local/[email protected];2”, “0?begin”) in new stack
– Executing [[email protected]:12] Set(“Local/[email protected];2”, “DSTRING=CUSTOM/1991”) in new stack
– Executing [[email protected]:13] Return(“Local/[email protected];2”, “”) in new stack
– Executing [[email protected]:27] GotoIf(“Local/[email protected];2”, “0?nodial”) in new stack
– Executing [[email protected]:28] GotoIf(“Local/[email protected];2”, “0?skiptrace”) in new stack
– Executing [[email protected]:29] GosubIf(“Local/[email protected];2”, “1?ctset,1:ctclear,1”) in new stack
– Executing [[email protected]:1] Set(“Local/[email protected];2”, “DB(CALLTRACE/1991)=1001”) in new stack
– Executing [[email protected]:2] Return(“Local/[email protected];2”, “”) in new stack
– Executing [[email protected]:30] Set(“Local/[email protected];2”, “D_OPTIONS=tr”) in new stack
– Executing [[email protected]:31] ExecIf(“Local/[email protected];2”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [[email protected]:32] ExecIf(“Local/[email protected];2”, “0?SIPAddHeader()”) in new stack
– Executing [[email protected]:33] ExecIf(“Local/[email protected];2”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:34] GosubIf(“Local/[email protected];2”, “0?qwait,1”) in new stack
– Executing [[email protected]:35] Set(“Local/[email protected];2”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:36] Set(“Local/[email protected];2”, “__KEEPCID=TRUE”) in new stack
== Begin MixMonitor Recording Local/[email protected];2
– Executing [[email protected]:37] Dial(“Local/[email protected];2”, “CUSTOM/1991,”",tr") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:38] ExecIf(“Local/[email protected];2”, “0?Set(DIALSTATUS=)”) in new stack
– Executing [[email protected]:39] GosubIf(“Local/[email protected];2”, “0?s-CHANUNAVAIL,1”) in new stack
– Executing [[email protected]:40] MacroExit(“Local/[email protected];2”, “”) in new stack
– Executing [[email protected]:10] GotoIf(“Local/[email protected];2”, “0?exit”) in new stack
– Executing [[email protected]:11] Set(“Local/[email protected];2”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [[email protected]:12] GosubIf(“Local/[email protected];2”, “0?docfu,1”) in new stack
– Executing [[email protected]:13] GosubIf(“Local/[email protected];2”, “0?docfb,1”) in new stack
– Executing [[email protected]:14] Set(“Local/[email protected];2”, “DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [[email protected]:15] NoOp(“Local/[email protected];2”, “Voicemail is ‘novm’”) in new stack
– Executing [[email protected]:16] GotoIf(“Local/[email protected];2”, “1?s-CHANUNAVAIL,1”) in new stack
– Goto (macro-exten-vm,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] NoOp(“Local/[email protected];2”, "IVR_RETVM: IVR_CONTEXT: ") in new stack
– Executing [[email protected]:2] GotoIf(“Local/[email protected];2”, “0?exit,1”) in new stack
– Executing [[email protected]:3] PlayTones(“Local/[email protected];2”, “congestion”) in new stack
– Executing [[email protected]:4] Congestion(“Local/[email protected];2”, “10”) in new stack
– Local/[email protected];1 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Auto fallthrough, channel ‘SIP/1001-00000091’ status is ‘CONGESTION’
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on ‘Local/[email protected];2’ in macro ‘exten-vm’
== Spawn extension (default, 1991, 1) exited non-zero on ‘Local/[email protected];2’
– Executing [[email protected]:1] Macro(“Local/[email protected];2”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“Local/[email protected];2”, “0?endmixmoncheck”) in new stack
– Executing [[email protected]:2] Set(“Local/[email protected];2”, “MIXMON_CALLFILENAME=/var/spool/asterisk/monitor/20140502-023926-1398980366.167.wav”) in new stack
– Executing [[email protected]:3] GotoIf(“Local/[email protected];2”, “1?defaultmixmondir”) in new stack
– Goto (macro-hangupcall,s,5)

you dialled local/1991, what happens when you do that from a phone?

i hear dial tone when i call from my extension, means it works

try

local/[email protected]

or include all needed contexts in your [default] context

no in result after exten => s,2,Dial(local/[email protected])…

can you please explain what this means “or include all needed contexts in your [default] context”

Thanks

I will defer to a better authority:-

https://wiki.asterisk.org/wiki/display/AST/Contexts,+Extensions,+and+Priorities

You need to learn this stuff before you try to do what you try to do :slight_smile:

i made actual extension, i made queue, i made virtual extension nothing working…
and via extension to extension calling its works with all of above.

any further suggestions…

Not really, IWFM

sharing is caring :slight_smile: if not secret so.

Regards,
ADDY