[asterisk-users] dialplan goto - bad priority

marek cervajs64 at gmail.com
Mon Sep 6 08:22:37 CDT 2021


hi,

i have this dialplan

[incoming]
exten => _X./_+421XXXXXXXXX,1,noop(cut +421 from CALLER)
exten => _X./_+421XXXXXXXXX,n,Set(CALLERID(num)=${CALLERID(num):4})
exten => _X./_+421XXXXXXXXX,n,goto(${CONTEXT},${EXTEN},1)
exten => _X.,1,noop(main block)
exten => _X.,n,noop(main block #2)
exten => _X.,n,Set(GWNAME=out)

my problem is when call arrive with +421 so i want strip this example 
prefix from callerid

then i expecting that call jump(goto) to the line

exten => _X.,1,noop(main block)

but it jumps to

exten => _X.,n,Set(GWNAME=out)

any idea of this behavior?

Marek







More information about the asterisk-users mailing list